Create an empty schema
It MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.
Create ArraySchema
Create BooleanSchema
The value of this keyword MAY be of any type, including null.
Make copy of current schema with modified values
Add custom validation functions. Since custom validators didn't supported by JSON Schema, I used AJV custom keywords to add such functionality
There are no restrictions placed on the value of this keyword.
The "definitions" keywords provides a standardized location for schema authors to inline re-usable JSON Schemas into a more general schema. There are no restrictions placed on the values within the array.
It can be used to decorate a user interface with information about the data produced by this user interface. A description provides explanation about the purpose of the instance described by the schema.
Validate provided data with current schema using ajv, if validation failed function will throw error
The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique.
The value of this keyword MUST be an array. There are no restrictions placed on the values within the array.
It defines a URI for the schema, and the base URI that other URI references within the schema are resolved against.
an #id
This validation outcome of this keyword's subschema has no direct effect on the overall validation result. Rather, it controls which of the "then" or "else" keywords are evaluated. When "if" is present, and the instance successfully validates against its subschema, then validation succeeds against this keyword if the instance also successfully validates against this keyword's subschema.
When "if" is present, and the instance fails to validate against its subschema, then validation succeeds against this keyword if the instance successfully validates against this keyword's subschema.
Check the type of the provided value. Used custom ajv keyword.
Create NumericSchema(integer)
Create ArraySchema
It MUST be a valid JSON Schema.
Create NullSchema
Create NumericSchema(number)
Create ObjectSchema
It MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.
Should be used only with ObjectSchema. By default all properties in Object Schema are required. This will make them optional
Because the differences between JSON Schemas and Open API (Swagger) it can be handy to arbitrary modify the schema injecting a fragment
an arbitrary JSON Schema to inject
The value must be a valid id e.g. #properties/foo
Set $schema property
Create ObjectSchema
Create StringSchema
It can be used to decorate a user interface with information about the data produced by this user interface. A title will preferably be short.
Validate provided data with current schema using ajv, does not throw errors
It returns all the schema values
Generated using TypeDoc
It MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.
{ allOf: [ {} ] }
https://json-schema.org/latest/json-schema-validation.html#rfc.section.6.7.1