You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the schema had a problem where the "properties" portion needs to be eliminated. I discovered this by testing the example using ajv which told me that the schema had problems worth digging into:
$ ajv -s ./example_schema.json -d example.yaml
strict mode: missing type "object" for keyword "additionalProperties" at "#" (strictTypes)
strict mode: missing type "object" for keyword "properties" at "#/items" (strictTypes)
example.yaml valid
In the example below, the pajv certifies that the YAML file contains a list of strings. However, the Python yaml module parses the data into a map.
The schema (example_schema.json):
The data file (example.yaml):
The validation:
Python test code (example.py):
The outcome from the Python code:
Either Python's built in YAML parser is wrong about this or pajv is. I am not an expert, but....
The text was updated successfully, but these errors were encountered: