Implementation

The following page provides implementation advices how to properly process a TypeSchema.

Type detection

The following algorithm shows how to detect the correct type of a schema.

Reference resolution

*in JsonSchema $ref is a JSON pointer which can resolve to arbitrary locations or even into remote files. In TypeSchema we can only resolve schemas under the definitions location at the local schema. To be backwards compatible we strip the JSON pointer in future version it is possible to directly reference the schema by the name.

Intersection resolving

The following algorithm shows how to merge all sub schemas of an intersection type into one schema.