JSONSchema
ts
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;
}
快捷链接
P$comment
P$id
P$ref
P$schema
PadditionalItems
PadditionalProperties
PallOf
PallowComments
PallowTrailingCommas
PanyOf
Pconst
Pcontains
Pdefault
PdefaultSnippets
Pdefinitions
Pdependencies
PdeprecationMessage
Pdescription
PdoNotSuggest
Pelse
Penum
PenumDescriptions
PerrorMessage
Pexamples
PexclusiveMaximum
PexclusiveMinimum
Pformat
Pid
Pif
Pitems
PmarkdownDescription
PmarkdownEnumDescriptions
PmaxItems
PmaxLength
PmaxProperties
Pmaximum
PminItems
PminLength
PminProperties
Pminimum
PmultipleOf
Pnot
PoneOf
Ppattern
PpatternErrorMessage
PpatternProperties
Pproperties
PpropertyNames
Prequired
PsuggestSortText
Pthen
Ptitle
Ptype
PuniqueItems
$comment
- 类型:
string
$id
- 类型:
string
$ref
- 类型:
string
$schema
- 类型:
string
additionalItems
additionalProperties
allOf
- 类型:JSONSchemaRef[]
allowComments
- 类型:
boolean
allowTrailingCommas
- 类型:
boolean
anyOf
- 类型:JSONSchemaRef[]
const
- 类型:
any
contains
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
enum
- 类型:
any[]
enumDescriptions
- 类型:
string[]
errorMessage
- 类型:
string
examples
- 类型:
any[]
exclusiveMaximum
- 类型:
number | boolean
exclusiveMinimum
- 类型:
number | boolean
format
- 类型:
string
id
- 类型:
string
if
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
oneOf
- 类型:JSONSchemaRef[]
pattern
- 类型:
string
patternErrorMessage
- 类型:
string
patternProperties
properties
propertyNames
required
- 类型:
string[]
suggestSortText
- 类型:
string
then
title
- 类型:
string
type
- 类型:
string | string[]
uniqueItems
- 类型:
boolean