Closed Chumachenko closed 2 years ago
For example:
schema1.yml
schema2.yml
Mai i use schema.add_include(dict) in the schema2.yml included config1.yml file? I mean e.g:
schema2.yml
schema.add_include(path/schema1)
Hi, thanks for using Yamale.
The add_include()
API only takes a Python dict
, so you'll first need to load the yaml and then pass the resulting dict
into that method. However, that's only possible when validating using the Python API. Yamale doesn't provide a way to specify this from within a schema file.
Thanks
Hello. I have a question about Yamale validator. Mai i create a one general validation schema.yaml and use than in in another schemas? Should i use schema.add_include(dict) ?
Thanks in advance