{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/banyan-systems/main/json-schema/banyan-systems-error-json-schema.json", "title": "Error", "x-generated": "2026-10-14", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/banyan-systems-sensitive-data-vault-openapi.yml#/components/schemas/ErrorJSON", "properties": { "key": { "additionalProperties": { "description": "A map of id field to id identifying the object the error is about.", "type": "string" }, "type": "object" }, "message": { "description": "A human readable message describing the error.", "type": "string" }, "validations": { "items": { "$ref": "#/$defs/ValidationJSON" }, "type": "array" } }, "required": [ "message" ], "type": "object", "$defs": { "FieldTypesJSON": { "anyOf": [ { "format": "binary", "title": "Binary Field", "type": "string" }, { "title": "Boolean Field", "type": "boolean" }, { "format": "binary", "maxLength": 1, "minLength": 1, "title": "Byte Field", "type": "string" }, { "title": "Integer Field", "type": "integer" }, { "format": "int32", "title": "Integer32 Field", "type": "integer" }, { "format": "int64", "title": "Integer64 Field", "type": "integer" }, { "format": "double", "title": "Double Field", "type": "number" }, { "format": "uuid", "title": "Banyan ID", "type": "string" }, { "format": "uri", "title": "URI", "type": "string" }, { "format": "date-time", "title": "Timestamp", "type": "string" }, { "format": "decimal", "minLength": 1, "title": "Amount", "type": "string" } ] }, "ValidationJSON": { "properties": { "field": { "description": "The field that failed validation.", "type": "string" }, "message": { "description": "A human readable message describing the validation error.", "type": "string" }, "value": { "$ref": "#/$defs/FieldTypesJSON" } }, "required": [ "field", "message" ], "type": "object" } } }