addedInput schema / additionalProperties
Added value: +false
addedInput schema / properties / instance / description
Added value: +"JSON document to validate. Accepts a parsed value (object, array, number, boolean, null) or a raw-JSON string, which is parsed when it looks like JSON."
removedInput schema / properties / instance / properties
Removed value: -{
- "age": {
- "type": "integer"
- },
- "name": {
- "type": "string"
- }
-}
removedInput schema / properties / instance / required
Removed value: -[
- "name",
- "age"
-]
changedInput schema / properties / instance / type
Previous value: -"object"New value: +[
+ "object",
+ "array",
+ "string",
+ "number",
+ "boolean",
+ "null"
+]
addedInput schema / properties / schema / description
Added value: +"JSON Schema to validate against, as an object/boolean or a raw-JSON string. Draft is auto-detected from its $schema URI (defaults to Draft 2020-12)."
removedInput schema / properties / schema / properties
Removed value: -{
- "properties": {
- "properties": {
- "age": {
- "properties": {
- "type": {
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "name": {
- "properties": {
- "type": {
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- }
- },
- "required": [
- "name",
- "age"
- ],
- "type": "object"
- },
- "required": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "type": {
- "type": "string"
- }
-}
removedInput schema / properties / schema / required
Removed value: -[
- "type",
- "required",
- "properties"
-]
changedInput schema / properties / schema / type
Previous value: -"object"New value: +[
+ "object",
+ "string",
+ "boolean"
+]
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "properties": {
+ "operation": {
+ "description": "Always validate.",
+ "type": "string"
+ },
+ "result": {
+ "description": "The validation result payload.",
+ "properties": {
+ "errorCount": {
+ "description": "Number of entries in errors (0 when valid).",
+ "type": "integer"
+ },
+ "errors": {
+ "description": "One entry per constraint violation; empty when valid.",
+ "items": {
+ "properties": {
+ "instancePath": {
+ "description": "JSON Pointer to the offending location in the instance.",
+ "type": "string"
+ },
+ "keyword": {
+ "description": "Failing JSON Schema keyword (type, required, enum, pattern, and similar).",
+ "type": "string"
+ },
+ "message": {
+ "description": "Human-readable Ajv error message.",
+ "type": "string"
+ },
+ "params": {
+ "description": "Keyword-specific detail (allowed values, limits, missing property).",
+ "type": "object"
+ },
+ "schemaPath": {
+ "description": "JSON Pointer to the failing keyword in the schema.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "schemaVersion": {
+ "description": "Detected schema draft label, for example Draft 2020-12.",
+ "type": "string"
+ },
+ "valid": {
+ "description": "True when the instance satisfies the schema.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "success": {
+ "description": "True when validation ran (independent of whether the instance was valid).",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}