-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
schema.ts
58 lines (57 loc) · 2.3 KB
/
schema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import type { BaseModel } from './base';
import type { ExtensionsMixinInterface, ExternalDocumentationMixinInterface } from './mixins';
import type { v2 } from '../spec-types';
export interface SchemaInterface extends BaseModel<v2.AsyncAPISchemaObject>, ExtensionsMixinInterface, ExternalDocumentationMixinInterface {
$comment(): string | undefined;
$id(): string | undefined;
$schema(): string;
additionalItems(): boolean | SchemaInterface;
additionalProperties(): boolean | SchemaInterface;
allOf(): Array<SchemaInterface> | undefined;
anyOf(): Array<SchemaInterface> | undefined;
const(): any;
contains(): SchemaInterface | undefined;
contentEncoding(): string | undefined;
contentMediaType(): string | undefined;
default(): any;
definitions(): Record<string, SchemaInterface> | undefined;
description(): string | undefined;
dependencies(): Record<string, SchemaInterface | Array<string>> | undefined;
deprecated(): boolean;
discriminator(): string | undefined;
else(): SchemaInterface | undefined;
enum(): Array<any> | undefined;
examples(): Array<any> | undefined;
exclusiveMaximum(): number | undefined;
exclusiveMinimum(): number | undefined;
format(): string | undefined;
id(): string;
isBooleanSchema(): boolean;
if(): SchemaInterface | undefined;
isCircular(): boolean;
items(): SchemaInterface | Array<SchemaInterface> | undefined;
maximum(): number | undefined;
maxItems(): number | undefined;
maxLength(): number | undefined;
maxProperties(): number | undefined;
minimum(): number | undefined;
minItems(): number | undefined;
minLength(): number | undefined;
minProperties(): number | undefined;
multipleOf(): number | undefined;
not(): SchemaInterface | undefined;
oneOf(): Array<SchemaInterface> | undefined;
pattern(): string | undefined;
patternProperties(): Record<string, SchemaInterface> | undefined;
properties(): Record<string, SchemaInterface> | undefined;
property(name: string): SchemaInterface | undefined;
propertyNames(): SchemaInterface | undefined;
readOnly(): boolean | undefined;
required(): Array<string> | undefined;
schemaFormat(): string
then(): SchemaInterface | undefined;
title(): string | undefined;
type(): string | Array<string> | undefined;
uniqueItems(): boolean | undefined;
writeOnly(): boolean | undefined;
}