check_schema

asdf.schema.check_schema(schema, validate_default=True)[source]

Check a given schema to make sure it is valid YAML schema.

Parameters:
schemadict

The schema object, as returned by load_schema.

validate_defaultbool, optional

Set to True to validate the content of the default field against the schema.