yamlexchange validate
This command validates a YAML file without reading the Next Design project. Use this to find errors in the YAML before importing.
Omitting --metamodel validates only the syntax and structure.
This command does not check whether the model corresponding to the id written in the YAML actually exists. You can check for existence using yamlexchange import's --dry-run.
This command returns (0) if the validation was successful, (1) if there are warnings, and (2) if there are errors.
It also displays a message in the console indicating the command execution result.
Syntax
yamlexchange validate --in <yaml> [--metamodel <metamodel yaml>] [--report <path>]
Options
-
--in <yaml>(required)
Specifies the YAML file to be validated. -
--metamodel <metamodel yaml>
Specifies the metamodel information file (nd.metamodel.yaml). If specified, class names, field names, etc., will also be validated.
See Metamodel Information File for details. -
--report <path>
Writes the execution results to a JSON file. See Execution Report for details.