Schemas

class geojson_modelica_translator.geojson.schemas.Schemas

Bases: object

Class to hold the various schemas

__init__()

Load in the schemas

Methods

__init__()

Load in the schemas

retrieve(name)

name of the schema to retrieve

validate(name, instance)

Validate an instance against a loaded schema

retrieve(name)

name of the schema to retrieve

validate(name, instance)

Validate an instance against a loaded schema

Parameters:
  • name – str, name of the schema to validate against

  • instance – dict, instance to validate

Returns: