DOSDP provides a validation interface for both CLI and Python.
$ dosdp validate -i <test.yaml or 'test folder'>
from dosdp import validator
validator.validate("test.yaml")
DOSDP validates given argument if it is a yaml/yml file. If argument is a folder, validates all pattern files located in the given directory.
- Test converstion of YAML to JSON
- Validate against JSON schema (e.g. see dosdp_schema.md and dosdp_schema.yaml)
- Test that all var names in printf statements are valid (declared) for the pattern
- Checks quoted names in the printf_owl field correspond to dictionary entries in the pattern.