anyconfig.schema module.
New in version 0.0.11: Added new API gen_schema() to generate schema object
New in version 0.0.10: Added new API validate() to validate config with JSON schema
Validate target object with given schema object, loaded from JSON schema.
See also: https://python-jsonschema.readthedocs.org/en/latest/validate/
Parae obj: | Target object (a dict or a dict-like object) to validate |
---|---|
Parameters: |
|
Returns: | (True if validation succeeded else False, error message) |
Generate a node represents JSON schema object with type annotation added for given object node.
Parameters: |
|
---|---|
Returns: | Another MergeableDict instance represents JSON schema of items |
Generate a node represents JSON schema object with type annotation added for given object node.
Parameters: |
|
---|---|
Yield: | Another MergeableDict instance represents JSON schema of object |
Generate a node represents JSON schema object with type annotation added for given object node.
Parameters: |
|
---|---|
Returns: | Another MergeableDict instance represents JSON schema of this node |