The json schema for the simulation factory. This is intended to be used as a submodule.
A Schema object has two static methods that you need to know:
Validate()
takes an Object, validates the schema, and returns the Object if validation succeeds, or throws an error if validation failsFromJSON()
takes a JSON string, validates the schema, and returns the parsed Object if validation succeeds, or throws an error if validation fails.
In order to create a json schema, simply create a class that extends Schema. Override the static schema
variable with your json-schema compliant javascript Object. In fancy cases, any of Schema's static methods can be overriden. Ensure your new module calls your class' RegisterSchema()
static method.