trestle.core.commands.partial_object_validate
trestle.core.commands.partial_object_validate ¤
Trestle schema-validate command.
Attributes¤
logger = logging.getLogger(__name__) module-attribute ¤
Classes¤
PartialObjectValidate ¤
Bases: CommandBase
flowchart TD
trestle.core.commands.partial_object_validate.PartialObjectValidate[PartialObjectValidate]
trestle.core.commands.command_docs.CommandBase[CommandBase]
trestle.core.commands.command_docs.CommandBase --> trestle.core.commands.partial_object_validate.PartialObjectValidate
click trestle.core.commands.partial_object_validate.PartialObjectValidate href "" "trestle.core.commands.partial_object_validate.PartialObjectValidate"
click trestle.core.commands.command_docs.CommandBase href "" "trestle.core.commands.command_docs.CommandBase"
Direct validation any oscal object in a file, including list objects.
Source code in trestle/core/commands/partial_object_validate.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
Attributes¤
name = 'partial-object-validate' class-attribute instance-attribute ¤
Functions¤
partial_object_validate(file_path, element_string) classmethod ¤
Run a schema validation on a file inferring file type based on element string.
Source code in trestle/core/commands/partial_object_validate.py
72 73 74 75 76 77 78 79 80 81 82 83 | |
Functions¤
handler: python