json.schema.Schema

An json.schema.Schema class represents a JSON Schema.

class json.schema.Schema

Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a NotImplementedError exception.

Class methods

classmethod json.schema.Schema.convert_jsonschema_to_xmlschema_from_buffer(type cls, buf, *, catalog=None, **kargs)

Converts the buffer buf containing a JSON Schema document to an XML Schema document. Returns a tuple with a string containing the XML Schema content and an xml.ErrorLog object. Optional user XML catalogs can be specified with the catalog argument. Other conversion options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_jsonschema2xsd.htm for a list of available options. Any errors and warnings reported during the conversion can be accessed through the returned xml.ErrorLog object.

classmethod json.schema.Schema.convert_jsonschema_to_xmlschema_from_url(type cls, url, *, catalog=None, **kargs)

Converts the JSON Schema document at the given url to an XML Schema document. Returns a tuple with a string containing the XML Schema content and an xml.ErrorLog object. Optional user XML catalogs can be specified with the catalog argument. Other conversion options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_jsonschema2xsd.htm for a list of available options. Any errors and warnings reported during the conversion can be accessed through the returned xml.ErrorLog object.

classmethod json.schema.Schema.convert_xmlschema_to_jsonschema_from_buffer(type cls, buf, *, catalog=None, **kargs)

Converts the buffer buf containing an XML Schema document to a JSON Schema document. Returns a tuple with a string containing the JSON Schema content and an xml.ErrorLog object. Optional user XML catalogs can be specified with the catalog argument. Other conversion options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_xsd2jsonschema.htm for a list of available options. Any errors and warnings reported during the conversion can be accessed through the returned xml.ErrorLog object.

classmethod json.schema.Schema.convert_xmlschema_to_jsonschema_from_url(type cls, url, *, catalog=None, **kargs)

Converts the XML Schema document at the given url to a JSON Schema document. Returns a tuple with a string containing the JSON Schema content and an xml.ErrorLog object. Optional user XML catalogs can be specified with the catalog argument. Other conversion options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_xsd2jsonschema.htm for a list of available options. Any errors and warnings reported during the conversion can be accessed through the returned xml.ErrorLog object.

classmethod json.schema.Schema.create_from_buffer(type cls, buf, *, catalog=None, **kargs)

Returns a tuple with a json.schema.Schema and xml.ErrorLog object. Constructs a new json.schema.Schema object after parsing the JSON content in the given buffer according to the JSON schema draft 4 specification. Optional user XML catalogs can be specified with the catalog argument. Other validation options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_valjsonschema.html for a list of available options. Any errors and warnings reported during the validation can be accessed through the returned xml.ErrorLog object.

classmethod json.schema.Schema.create_from_url(type cls, url, *, catalog=None, **kargs)

Returns a tuple with a json.schema.Schema and xml.ErrorLog object. Constructs a new json.schema.Schema object after parsing the JSON content from the given url according to the JSON schema draft 4 specification. Optional user XML catalogs can be specified with the catalog argument. Other validation options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_valjsonschema.html for a list of available options. Any errors and warnings reported during the validation can be accessed through the returned xml.ErrorLog object.

classmethod json.schema.Schema.validate_buffer(type cls, buf, *, catalog=None, **kargs)

Validates the JSON Schema document from the given buffer buf according to the JSON schema draft 4 specification and returns xml.ErrorLog object with the results. Optional user XML catalogs can be specified with the catalog argument. Other validation options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_valjsonschema.html for a list of available options. Any errors and warnings reported during the validation can be accessed through the returned xml.ErrorLog object.

classmethod json.schema.Schema.validate_url(type cls, url, *, catalog=None, **kargs)

Validates the JSON Schema document at the given url according to the JSON schema draft 4 specification and returns xml.ErrorLog object with the results. Optional user XML catalogs can be specified with the catalog argument. Other validation options can be specified using additional kargs. Please consult the RaptorXML CLI documentation http://manual.altova.com/RaptorXML/raptorxmlxbrlserver/rxcli_jsonavro_valjsonschema.html for a list of available options. Any errors and warnings reported during the validation can be accessed through the returned xml.ErrorLog object.

Attributes

json.schema.Schema.uri

Returns the URI of the document (after any catalog mappings) that was used to actually open the document and read its content.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__