import { type JSONSchema } from "https://dotland.deno.dev/x/json_schema_aot@0.2.1/json-schema.ts";
This interface represents all of the JSON Schema functionality that is supported by this module.
Properties
optional
$defs: JSONSchemaDefinitionsBy convention, subschema are defined here and referenced elsewhere.
optional
definitions: JSONSchemaDefinitionsThis is the old name for $defs
(allowed here for compatibility).
String indicating the format of a string type. The "date" and "date-time" formats have special handling: when validating, Date objects are tolerated; when parsing, the string is converted to a Date object.
optional
additionalProperties: boolean | JSONSchemaBy default, extra properties (beyond what's specified in properties
) of any type are allowed. Set to false to disallow extra properties. Set to a specific type to type check extra properties.
optional
anyOf: JSONSchema[]optional
allOf: JSONSchema[]