interface JSONSchema {
    $id?: string;
    $ref?: string;
    $schema?: string;
    additionalItems?: boolean | JSONSchema;
    additionalProperties?: boolean | JSONSchema;
    allOf?: (boolean | JSONSchema)[];
    anyOf?: (boolean | JSONSchema)[];
    const?: any;
    contains?: boolean | JSONSchema;
    contentEncoding?: string;
    contentMediaType?: string;
    contentSchema?: boolean | JSONSchema;
    default?: any;
    definitions?: Dict<boolean | JSONSchema>;
    dependentRequired?: Dict<boolean | string[] | JSONSchema>;
    dependentSchemas?: Dict<boolean | JSONSchema>;
    description?: string;
    else?: boolean | JSONSchema;
    enum?: any[];
    examples?: any[];
    exclusiveMaximum?: number;
    exclusiveMinimum?: number;
    format?: string;
    if?: boolean | JSONSchema;
    items?: boolean | JSONSchema | (boolean | JSONSchema)[];
    maxContains?: number;
    maximum?: number;
    maxItems?: number;
    maxLength?: number;
    maxProperties?: number;
    minContains?: number;
    minimum?: number;
    minItems?: number;
    minLength?: number;
    minProperties?: number;
    multipleOf?: number;
    not?: boolean | JSONSchema;
    oneOf?: (boolean | JSONSchema)[];
    pattern?: string;
    patternProperties?: Dict<boolean | JSONSchema>;
    prefixItems?: (boolean | JSONSchema)[];
    properties?: Dict<boolean | JSONSchema>;
    propertyNames?: boolean | JSONSchema;
    readOnly?: boolean;
    required?: string[];
    then?: boolean | JSONSchema;
    title?: string;
    type?: JSONSchemaType | JSONSchemaType[];
    unevaluatedItems?: boolean | JSONSchema;
    unevaluatedProperties?: boolean | JSONSchema;
    uniqueItems?: boolean;
    writeOnly?: boolean;
    [key: string]: any;
}

Hierarchy (view full)

Indexable

  • [key: string]: any

Properties

$id?: string
$ref?: string
$schema?: string
additionalItems?: boolean | JSONSchema
additionalProperties?: boolean | JSONSchema
allOf?: (boolean | JSONSchema)[]
anyOf?: (boolean | JSONSchema)[]
const?: any
contains?: boolean | JSONSchema
contentEncoding?: string
contentMediaType?: string
contentSchema?: boolean | JSONSchema
default?: any
definitions?: Dict<boolean | JSONSchema>
dependentRequired?: Dict<boolean | string[] | JSONSchema>
dependentSchemas?: Dict<boolean | JSONSchema>
description?: string
else?: boolean | JSONSchema
enum?: any[]
examples?: any[]
exclusiveMaximum?: number
exclusiveMinimum?: number
format?: string
if?: boolean | JSONSchema
items?: boolean | JSONSchema | (boolean | JSONSchema)[]
maxContains?: number
maximum?: number
maxItems?: number
maxLength?: number
maxProperties?: number
minContains?: number
minimum?: number
minItems?: number
minLength?: number
minProperties?: number
multipleOf?: number
not?: boolean | JSONSchema
oneOf?: (boolean | JSONSchema)[]
pattern?: string
patternProperties?: Dict<boolean | JSONSchema>
prefixItems?: (boolean | JSONSchema)[]
properties?: Dict<boolean | JSONSchema>
propertyNames?: boolean | JSONSchema
readOnly?: boolean
required?: string[]
then?: boolean | JSONSchema
title?: string
unevaluatedItems?: boolean | JSONSchema
unevaluatedProperties?: boolean | JSONSchema
uniqueItems?: boolean
writeOnly?: boolean