interface JSONSchema {
    $comment?: string;
    $id?: string;
    $ref?: string;
    $schema?: string;
    additionalItems?: JSONSchemaRef;
    additionalProperties?: JSONSchemaRef;
    allOf?: JSONSchemaRef[];
    allowComments?: boolean;
    allowTrailingCommas?: boolean;
    anyOf?: JSONSchemaRef[];
    const?: any;
    contains?: JSONSchemaRef;
    default?: any;
    defaultSnippets?: {
        body?: any;
        bodyText?: string;
        description?: string;
        label?: string;
        markdownDescription?: string;
    }[];
    definitions?: {
        [name: string]: JSONSchema;
    };
    dependencies?: JSONSchemaMap | {
        [prop: string]: string[];
    };
    deprecationMessage?: string;
    description?: string;
    doNotSuggest?: boolean;
    else?: JSONSchemaRef;
    enum?: any[];
    enumDescriptions?: string[];
    errorMessage?: string;
    examples?: any[];
    exclusiveMaximum?: number | boolean;
    exclusiveMinimum?: number | boolean;
    format?: string;
    id?: string;
    if?: JSONSchemaRef;
    items?: JSONSchemaRef | JSONSchemaRef[];
    markdownDescription?: string;
    markdownEnumDescriptions?: string[];
    maxItems?: number;
    maxLength?: number;
    maxProperties?: number;
    maximum?: number;
    minItems?: number;
    minLength?: number;
    minProperties?: number;
    minimum?: number;
    multipleOf?: number;
    not?: JSONSchemaRef;
    oneOf?: JSONSchemaRef[];
    pattern?: string;
    patternErrorMessage?: string;
    patternProperties?: JSONSchemaMap;
    properties?: JSONSchemaMap;
    propertyNames?: JSONSchemaRef;
    required?: string[];
    suggestSortText?: string;
    then?: JSONSchemaRef;
    title?: string;
    type?: string | string[];
    uniqueItems?: boolean;
}

Properties

$comment?: string
$id?: string
$ref?: string
$schema?: string
additionalItems?: JSONSchemaRef
additionalProperties?: JSONSchemaRef
allOf?: JSONSchemaRef[]
allowComments?: boolean
allowTrailingCommas?: boolean
anyOf?: JSONSchemaRef[]
const?: any
contains?: JSONSchemaRef
default?: any
defaultSnippets?: {
    body?: any;
    bodyText?: string;
    description?: string;
    label?: string;
    markdownDescription?: string;
}[]

Type declaration

  • Optional body?: any
  • Optional bodyText?: string
  • Optional description?: string
  • Optional label?: string
  • Optional markdownDescription?: string
definitions?: {
    [name: string]: JSONSchema;
}

Type declaration

dependencies?: JSONSchemaMap | {
    [prop: string]: string[];
}

Type declaration

  • [prop: string]: string[]
deprecationMessage?: string
description?: string
doNotSuggest?: boolean
enum?: any[]
enumDescriptions?: string[]
errorMessage?: string
examples?: any[]
exclusiveMaximum?: number | boolean
exclusiveMinimum?: number | boolean
format?: string
id?: string
markdownDescription?: string
markdownEnumDescriptions?: string[]
maxItems?: number
maxLength?: number
maxProperties?: number
maximum?: number
minItems?: number
minLength?: number
minProperties?: number
minimum?: number
multipleOf?: number
oneOf?: JSONSchemaRef[]
pattern?: string
patternErrorMessage?: string
patternProperties?: JSONSchemaMap
properties?: JSONSchemaMap
propertyNames?: JSONSchemaRef
required?: string[]
suggestSortText?: string
title?: string
type?: string | string[]
uniqueItems?: boolean