It MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.
It MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.
The value of this keyword MAY be of any type, including null.
An array instance is valid against "contains" if at least one of its elements is valid against the given schema.
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.
This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself. If "items" is a schema, validation succeeds if all elements in the array successfully validate against that schema. If "items" is an array of schemas, validation succeeds if each element of the instance validates against the schema at the same position, if any. Omitting this keyword has the same behavior as an empty schema.
An array instance is valid against "minItems" if its size is greater than, or equal to, the value of this keyword. Omitting this keyword has the same behavior as a value of 0.
An array instance is valid against "minItems" if its size is greater than, or equal to, the value of this keyword. Omitting this keyword has the same behavior as a value of 0.
It MUST be a valid JSON Schema.
It MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.
Make schema optional in {ObjectSchema}
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
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.
If this keyword has boolean value false, the instance validates successfully. If it has boolean value true, the instance validates successfully if all of its elements are unique. Omitting this keyword has the same behavior as a value of false.
Validate provided data with current schema using ajv, does not throw errors
It returns all the schema values
Generated using TypeDoc
This keyword determines how child instances validate for arrays, and does not directly validate the immediate instance itself.
https://json-schema.org/latest/json-schema-validation.html#rfc.section.6.4.2