@@ -8,88 +8,89 @@ import {
8
8
} from '@fosfad/json-schema-typescript-definitions' ;
9
9
import { Discriminator } from './discriminator' ;
10
10
import { ExternalDocumentation } from './externalDocumentation' ;
11
+ import { Reference } from './reference' ;
11
12
import { XML } from './xml' ;
12
13
13
14
export interface NullOasSchema extends NullJsonSchema {
14
- allOf ?: Array < NullOasSchema > ;
15
- anyOf ?: Array < NullOasSchema > ;
15
+ allOf ?: Array < NullOasSchema | Reference > ;
16
+ anyOf ?: Array < NullOasSchema | Reference > ;
16
17
externalDocs ?: ExternalDocumentation ,
17
- not ?: NullOasSchema ;
18
- oneOf ?: Array < NullOasSchema > ;
18
+ not ?: NullOasSchema | Reference ;
19
+ oneOf ?: Array < NullOasSchema | Reference > ;
19
20
xml ?: XML ;
20
21
}
21
22
22
23
export interface BooleanOasSchema extends BooleanJsonSchema {
23
- allOf ?: Array < BooleanOasSchema > ;
24
- anyOf ?: Array < BooleanOasSchema > ;
24
+ allOf ?: Array < BooleanOasSchema | Reference > ;
25
+ anyOf ?: Array < BooleanOasSchema | Reference > ;
25
26
externalDocs ?: ExternalDocumentation ,
26
- not ?: BooleanOasSchema ;
27
- oneOf ?: Array < BooleanOasSchema > ;
27
+ not ?: BooleanOasSchema | Reference ;
28
+ oneOf ?: Array < BooleanOasSchema | Reference > ;
28
29
xml ?: XML ;
29
30
}
30
31
31
32
export interface StringOasSchema extends StringJsonSchema {
32
- allOf ?: Array < StringOasSchema > ;
33
- anyOf ?: Array < StringOasSchema > ;
33
+ allOf ?: Array < StringOasSchema | Reference > ;
34
+ anyOf ?: Array < StringOasSchema | Reference > ;
34
35
externalDocs ?: ExternalDocumentation ,
35
- not ?: StringOasSchema ;
36
- oneOf ?: Array < StringOasSchema > ;
36
+ not ?: StringOasSchema | Reference ;
37
+ oneOf ?: Array < StringOasSchema | Reference > ;
37
38
xml ?: XML ;
38
39
}
39
40
40
41
export interface NumberOasSchema extends NumberJsonSchema {
41
- allOf ?: Array < NumberOasSchema > ;
42
- anyOf ?: Array < NumberOasSchema > ;
42
+ allOf ?: Array < NumberOasSchema | Reference > ;
43
+ anyOf ?: Array < NumberOasSchema | Reference > ;
43
44
externalDocs ?: ExternalDocumentation ,
44
- not ?: NumberOasSchema ;
45
- oneOf ?: Array < NumberOasSchema > ;
45
+ not ?: NumberOasSchema | Reference ;
46
+ oneOf ?: Array < NumberOasSchema | Reference > ;
46
47
xml ?: XML ;
47
48
}
48
49
49
50
export interface IntegerOasSchema extends IntegerJsonSchema {
50
- allOf ?: Array < IntegerOasSchema > ;
51
- anyOf ?: Array < IntegerOasSchema > ;
51
+ allOf ?: Array < IntegerOasSchema | Reference > ;
52
+ anyOf ?: Array < IntegerOasSchema | Reference > ;
52
53
externalDocs ?: ExternalDocumentation ,
53
- not ?: IntegerOasSchema ;
54
- oneOf ?: Array < IntegerOasSchema > ;
54
+ not ?: IntegerOasSchema | Reference ;
55
+ oneOf ?: Array < IntegerOasSchema | Reference > ;
55
56
xml ?: XML ;
56
57
}
57
58
58
59
export interface ArrayOasSchema extends ArrayJsonSchema {
59
- allOf ?: Array < ArrayOasSchema > ;
60
- anyOf ?: Array < ArrayOasSchema > ;
61
- contains ?: OasSchema ;
60
+ allOf ?: Array < ArrayOasSchema | Reference > ;
61
+ anyOf ?: Array < ArrayOasSchema | Reference > ;
62
+ contains ?: OasSchema | Reference ;
62
63
externalDocs ?: ExternalDocumentation ,
63
- items ?: OasSchema ;
64
- not ?: ArrayOasSchema ;
65
- oneOf ?: Array < ArrayOasSchema > ;
66
- prefixItems ?: Array < OasSchema > ;
64
+ items ?: OasSchema | Reference ;
65
+ not ?: ArrayOasSchema | Reference ;
66
+ oneOf ?: Array < ArrayOasSchema | Reference > ;
67
+ prefixItems ?: Array < OasSchema | Reference > ;
67
68
xml ?: XML ;
68
69
}
69
70
70
71
export interface ObjectOasSchema extends ObjectJsonSchema {
71
- allOf ?: Array < ObjectOasSchema > ;
72
- anyOf ?: Array < ObjectOasSchema > ;
72
+ allOf ?: Array < ObjectOasSchema | Reference > ;
73
+ anyOf ?: Array < ObjectOasSchema | Reference > ;
73
74
discriminator ?: Discriminator ;
74
75
externalDocs ?: ExternalDocumentation ,
75
- not ?: ObjectOasSchema ;
76
- oneOf ?: Array < ObjectOasSchema > ;
76
+ not ?: ObjectOasSchema | Reference ;
77
+ oneOf ?: Array < ObjectOasSchema | Reference > ;
77
78
patternProperties ?: {
78
- [ propertyNameRegex : string ] : OasSchema ;
79
+ [ propertyNameRegex : string ] : OasSchema | Reference ;
79
80
} ;
80
81
properties ?: {
81
- [ propertyName : string ] : OasSchema ;
82
+ [ propertyName : string ] : OasSchema | Reference ;
82
83
} ;
83
- propertyNames ?: OasSchema ;
84
+ propertyNames ?: OasSchema | Reference ;
84
85
xml ?: XML ;
85
86
}
86
87
87
88
export interface AnyOasSchema extends AnyJsonSchema {
88
- allOf ?: Array < OasSchema > ;
89
- anyOf ?: Array < OasSchema > ;
89
+ allOf ?: Array < OasSchema | Reference > ;
90
+ anyOf ?: Array < OasSchema | Reference > ;
90
91
externalDocs ?: ExternalDocumentation ,
91
- not ?: OasSchema ;
92
- oneOf ?: Array < OasSchema > ;
92
+ not ?: OasSchema | Reference ;
93
+ oneOf ?: Array < OasSchema | Reference > ;
93
94
xml ?: XML ;
94
95
}
95
96
0 commit comments