You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.4 KiB
89 lines
2.4 KiB
3 years ago
|
/**
|
||
|
* A JSON Schema 4.0 definition for an OpenAPI Specification
|
||
|
*/
|
||
|
export interface JsonSchemaDraft4 {
|
||
|
id?: string;
|
||
|
$schema?: string;
|
||
|
title?: string;
|
||
|
description?: string;
|
||
|
multipleOf?: number;
|
||
|
maximum?: number;
|
||
|
exclusiveMaximum?: boolean;
|
||
|
minimum?: number;
|
||
|
exclusiveMinimum?: boolean;
|
||
|
maxLength?: number;
|
||
|
minLength?: number;
|
||
|
pattern?: string;
|
||
|
additionalItems?: boolean | JsonSchemaDraft4;
|
||
|
items?: JsonSchemaDraft4 | JsonSchemaDraft4[];
|
||
|
maxItems?: number;
|
||
|
minItems?: number;
|
||
|
uniqueItems?: boolean;
|
||
|
maxProperties?: number;
|
||
|
minProperties?: number;
|
||
|
required?: string[];
|
||
|
additionalProperties?: boolean | JsonSchemaDraft4;
|
||
|
definitions?: {
|
||
|
[name: string]: JsonSchemaDraft4;
|
||
|
};
|
||
|
properties?: {
|
||
|
[name: string]: JsonSchemaDraft4;
|
||
|
};
|
||
|
patternProperties?: {
|
||
|
[name: string]: JsonSchemaDraft4;
|
||
|
};
|
||
|
dependencies?: {
|
||
|
[name: string]: JsonSchemaDraft4 | string[];
|
||
|
};
|
||
|
enum?: string[];
|
||
|
type?: string | string[];
|
||
|
allOf?: JsonSchemaDraft4[];
|
||
|
anyOf?: JsonSchemaDraft4[];
|
||
|
oneOf?: JsonSchemaDraft4[];
|
||
|
not?: JsonSchemaDraft4;
|
||
|
}
|
||
|
/**
|
||
|
* A JSON Schema 2020-12 definition for an OpenAPI Specification
|
||
|
*/
|
||
|
export interface JsonSchemaDraft202012 {
|
||
|
$id?: string;
|
||
|
$schema?: string;
|
||
|
title?: string;
|
||
|
description?: string;
|
||
|
multipleOf?: number;
|
||
|
maximum?: number;
|
||
|
exclusiveMaximum?: boolean;
|
||
|
minimum?: number;
|
||
|
exclusiveMinimum?: boolean;
|
||
|
maxLength?: number;
|
||
|
minLength?: number;
|
||
|
pattern?: string;
|
||
|
additionalItems?: boolean | JsonSchemaDraft202012;
|
||
|
items?: JsonSchemaDraft202012 | JsonSchemaDraft202012[];
|
||
|
maxItems?: number;
|
||
|
minItems?: number;
|
||
|
uniqueItems?: boolean;
|
||
|
maxProperties?: number;
|
||
|
minProperties?: number;
|
||
|
required?: string[];
|
||
|
additionalProperties?: boolean | JsonSchemaDraft202012;
|
||
|
$defs?: {
|
||
|
[name: string]: JsonSchemaDraft202012;
|
||
|
};
|
||
|
properties?: {
|
||
|
[name: string]: JsonSchemaDraft202012;
|
||
|
};
|
||
|
patternProperties?: {
|
||
|
[name: string]: JsonSchemaDraft202012;
|
||
|
};
|
||
|
dependencies?: {
|
||
|
[name: string]: JsonSchemaDraft202012 | string[];
|
||
|
};
|
||
|
enum?: string[];
|
||
|
type?: string | string[];
|
||
|
allOf?: JsonSchemaDraft202012[];
|
||
|
anyOf?: JsonSchemaDraft202012[];
|
||
|
oneOf?: JsonSchemaDraft202012[];
|
||
|
not?: JsonSchemaDraft202012;
|
||
|
}
|