@rxap/open-api 19.0.1-dev.4 → 19.0.1-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +24 -26
- package/compodoc/changelog.html +2 -0
- package/compodoc/dependencies.html +7 -7
- package/compodoc/index.html +26 -20
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +3 -2
- package/docs/documentation.json +737 -1472
- package/docs/html/assets/hierarchy.js +1 -0
- package/docs/{assets → html/assets}/highlight.css +13 -6
- package/docs/html/assets/icons.js +18 -0
- package/docs/html/assets/icons.svg +1 -0
- package/docs/{assets → html/assets}/main.js +5 -4
- package/docs/html/assets/navigation.js +1 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1611 -0
- package/docs/html/classes/OpenApiConfigService.html +17 -0
- package/docs/html/classes/OpenApiHttpResponseError.html +22 -0
- package/docs/html/classes/RxapOpenApiError.html +26 -0
- package/docs/html/classes/SchemaValidationMixin.html +16 -0
- package/docs/html/functions/AssertOpenApiV3.html +1 -0
- package/docs/html/functions/IsOpenApiV3.html +1 -0
- package/docs/html/functions/IsReferenceObject.html +1 -0
- package/docs/html/functions/NotContainsReferenceObjects.html +1 -0
- package/docs/html/functions/OpenApiInit.html +1 -0
- package/docs/html/index.html +33 -0
- package/docs/html/interfaces/OpenApiInitOptions.html +6 -0
- package/docs/html/interfaces/OpenApiMetaData.html +9 -0
- package/docs/html/interfaces/OperationObjectWithMetadata.html +15 -0
- package/docs/html/interfaces/SchemaValidationResponse.html +5 -0
- package/docs/html/modules.html +1 -0
- package/docs/html/types/OperationMap.html +1 -0
- package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +1 -0
- package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +1 -0
- package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +1 -0
- package/docs/html/variables/DISABLE_VALIDATION.html +1 -0
- package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +1 -0
- package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +1 -0
- package/docs/markdown/README.md +37 -0
- package/docs/markdown/classes/OpenApiConfigService.md +217 -0
- package/docs/markdown/classes/OpenApiHttpResponseError.md +205 -0
- package/docs/markdown/classes/RxapOpenApiError.md +265 -0
- package/docs/markdown/classes/SchemaValidationMixin.md +258 -0
- package/docs/markdown/functions/AssertOpenApiV3.md +21 -0
- package/docs/markdown/functions/IsOpenApiV3.md +21 -0
- package/docs/markdown/functions/IsReferenceObject.md +21 -0
- package/docs/markdown/functions/NotContainsReferenceObjects.md +25 -0
- package/docs/markdown/functions/OpenApiInit.md +25 -0
- package/docs/markdown/globals.md +40 -0
- package/docs/markdown/interfaces/OpenApiInitOptions.md +30 -0
- package/docs/markdown/interfaces/OpenApiMetaData.md +71 -0
- package/docs/markdown/interfaces/OperationObjectWithMetadata.md +177 -0
- package/docs/markdown/interfaces/SchemaValidationResponse.md +45 -0
- package/docs/markdown/type-aliases/OperationMap.md +11 -0
- package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +11 -0
- package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +11 -0
- package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +11 -0
- package/docs/markdown/variables/DISABLE_VALIDATION.md +11 -0
- package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +11 -0
- package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +11 -0
- package/docs/wiki/Class.OpenApiConfigService.md +213 -0
- package/docs/wiki/Class.OpenApiHttpResponseError.md +201 -0
- package/docs/wiki/Class.RxapOpenApiError.md +261 -0
- package/docs/wiki/Class.SchemaValidationMixin.md +254 -0
- package/docs/wiki/Function.AssertOpenApiV3.md +17 -0
- package/docs/wiki/Function.IsOpenApiV3.md +17 -0
- package/docs/wiki/Function.IsReferenceObject.md +17 -0
- package/docs/wiki/Function.NotContainsReferenceObjects.md +21 -0
- package/docs/wiki/Function.OpenApiInit.md +21 -0
- package/docs/wiki/Home.md +33 -0
- package/docs/wiki/Interface.OpenApiInitOptions.md +26 -0
- package/docs/wiki/Interface.OpenApiMetaData.md +67 -0
- package/docs/wiki/Interface.OperationObjectWithMetadata.md +173 -0
- package/docs/wiki/Interface.SchemaValidationResponse.md +41 -0
- package/docs/wiki/TypeAlias.OperationMap.md +7 -0
- package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +7 -0
- package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +7 -0
- package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +7 -0
- package/docs/wiki/Variable.DISABLE_VALIDATION.md +7 -0
- package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +7 -0
- package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +7 -0
- package/docs/wiki/_Sidebar.md +36 -0
- package/docs/wiki/globals.md +36 -0
- package/package.json +22 -21
- package/docs/assets/icons.js +0 -15
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1412
- package/docs/classes/OpenApiConfigService.html +0 -26
- package/docs/classes/OpenApiHttpResponseError.html +0 -22
- package/docs/classes/RxapOpenApiError.html +0 -26
- package/docs/classes/SchemaValidationMixin.html +0 -18
- package/docs/functions/AssertOpenApiV3.html +0 -1
- package/docs/functions/IsOpenApiV3.html +0 -1
- package/docs/functions/IsReferenceObject.html +0 -1
- package/docs/functions/NotContainsReferenceObjects.html +0 -1
- package/docs/functions/OpenApiInit.html +0 -1
- package/docs/index.html +0 -28
- package/docs/interfaces/OpenApiInitOptions.html +0 -6
- package/docs/interfaces/OpenApiMetaData.html +0 -9
- package/docs/interfaces/OperationObjectWithMetadata.html +0 -15
- package/docs/interfaces/SchemaValidationResponse.html +0 -5
- package/docs/modules.html +0 -21
- package/docs/types/OperationMap.html +0 -1
- package/docs/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +0 -1
- package/docs/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +0 -1
- package/docs/variables/DISABLE_SCHEMA_VALIDATION.html +0 -1
- package/docs/variables/DISABLE_VALIDATION.html +0 -1
- package/docs/variables/RXAP_OPEN_API_CONFIG.html +0 -1
- package/docs/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +0 -1
- /package/docs/{.nojekyll → html/.nojekyll} +0 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / SchemaValidationMixin
|
|
6
|
+
|
|
7
|
+
# Class: SchemaValidationMixin\<Response, Parameters, RequestBody\>
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:31](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L31)
|
|
10
|
+
|
|
11
|
+
## Type Parameters
|
|
12
|
+
|
|
13
|
+
• **Response** = `any`
|
|
14
|
+
|
|
15
|
+
• **Parameters** *extends* `Record`\<`string`, `any`\> \| `void` = `any`
|
|
16
|
+
|
|
17
|
+
• **RequestBody** = `any`
|
|
18
|
+
|
|
19
|
+
## Constructors
|
|
20
|
+
|
|
21
|
+
### new SchemaValidationMixin()
|
|
22
|
+
|
|
23
|
+
> **new SchemaValidationMixin**\<`Response`, `Parameters`, `RequestBody`\>(): [`SchemaValidationMixin`](SchemaValidationMixin.md)\<`Response`, `Parameters`, `RequestBody`\>
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
[`SchemaValidationMixin`](SchemaValidationMixin.md)\<`Response`, `Parameters`, `RequestBody`\>
|
|
28
|
+
|
|
29
|
+
## Properties
|
|
30
|
+
|
|
31
|
+
### disableSchemaValidation?
|
|
32
|
+
|
|
33
|
+
> `protected` `optional` **disableSchemaValidation**: `boolean`
|
|
34
|
+
|
|
35
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:35](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L35)
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### STRICT
|
|
40
|
+
|
|
41
|
+
> `static` **STRICT**: `boolean` = `false`
|
|
42
|
+
|
|
43
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:33](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L33)
|
|
44
|
+
|
|
45
|
+
## Methods
|
|
46
|
+
|
|
47
|
+
### buildHttpHeaders()
|
|
48
|
+
|
|
49
|
+
> **buildHttpHeaders**(`operationParameters`, `parameters`?): `HttpHeaders`
|
|
50
|
+
|
|
51
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:293](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L293)
|
|
52
|
+
|
|
53
|
+
#### Parameters
|
|
54
|
+
|
|
55
|
+
##### operationParameters
|
|
56
|
+
|
|
57
|
+
`ParameterObject`[]
|
|
58
|
+
|
|
59
|
+
##### parameters?
|
|
60
|
+
|
|
61
|
+
`Parameters`
|
|
62
|
+
|
|
63
|
+
#### Returns
|
|
64
|
+
|
|
65
|
+
`HttpHeaders`
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### buildHttpOptions()
|
|
70
|
+
|
|
71
|
+
> **buildHttpOptions**(`operation`, `parameters`?, `requestBody`?, `ignoreUndefined`?): `HttpRemoteMethodParameter`
|
|
72
|
+
|
|
73
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:367](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L367)
|
|
74
|
+
|
|
75
|
+
Converts open api parameters into the corresponding http options to
|
|
76
|
+
create a http request. The transformation is guided by the openapi definition
|
|
77
|
+
|
|
78
|
+
#### Parameters
|
|
79
|
+
|
|
80
|
+
##### operation
|
|
81
|
+
|
|
82
|
+
[`OperationObjectWithMetadata`](../interfaces/OperationObjectWithMetadata.md)
|
|
83
|
+
|
|
84
|
+
##### parameters?
|
|
85
|
+
|
|
86
|
+
`Parameters`
|
|
87
|
+
|
|
88
|
+
##### requestBody?
|
|
89
|
+
|
|
90
|
+
`RequestBody`
|
|
91
|
+
|
|
92
|
+
##### ignoreUndefined?
|
|
93
|
+
|
|
94
|
+
`boolean` = `true`
|
|
95
|
+
|
|
96
|
+
#### Returns
|
|
97
|
+
|
|
98
|
+
`HttpRemoteMethodParameter`
|
|
99
|
+
|
|
100
|
+
***
|
|
101
|
+
|
|
102
|
+
### buildHttpParams()
|
|
103
|
+
|
|
104
|
+
> **buildHttpParams**(`operationParameters`, `parameters`?, `ignoreUndefined`?): `HttpParams`
|
|
105
|
+
|
|
106
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:244](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L244)
|
|
107
|
+
|
|
108
|
+
#### Parameters
|
|
109
|
+
|
|
110
|
+
##### operationParameters
|
|
111
|
+
|
|
112
|
+
`ParameterObject`[]
|
|
113
|
+
|
|
114
|
+
##### parameters?
|
|
115
|
+
|
|
116
|
+
`Parameters`
|
|
117
|
+
|
|
118
|
+
##### ignoreUndefined?
|
|
119
|
+
|
|
120
|
+
`boolean` = `true`
|
|
121
|
+
|
|
122
|
+
#### Returns
|
|
123
|
+
|
|
124
|
+
`HttpParams`
|
|
125
|
+
|
|
126
|
+
***
|
|
127
|
+
|
|
128
|
+
### buildHttpPathParams()
|
|
129
|
+
|
|
130
|
+
> **buildHttpPathParams**(`operationParameters`, `parameters`?): `Record`\<`string`, `string`\>
|
|
131
|
+
|
|
132
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:333](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L333)
|
|
133
|
+
|
|
134
|
+
#### Parameters
|
|
135
|
+
|
|
136
|
+
##### operationParameters
|
|
137
|
+
|
|
138
|
+
`ParameterObject`[]
|
|
139
|
+
|
|
140
|
+
##### parameters?
|
|
141
|
+
|
|
142
|
+
`Parameters`
|
|
143
|
+
|
|
144
|
+
#### Returns
|
|
145
|
+
|
|
146
|
+
`Record`\<`string`, `string`\>
|
|
147
|
+
|
|
148
|
+
***
|
|
149
|
+
|
|
150
|
+
### validateParameters()
|
|
151
|
+
|
|
152
|
+
> `protected` **validateParameters**(`operation`, `parameters`?, `strict`?): `void`
|
|
153
|
+
|
|
154
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:45](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L45)
|
|
155
|
+
|
|
156
|
+
Validates the parameters against the schema specified in the operation object
|
|
157
|
+
|
|
158
|
+
#### Parameters
|
|
159
|
+
|
|
160
|
+
##### operation
|
|
161
|
+
|
|
162
|
+
[`OperationObjectWithMetadata`](../interfaces/OperationObjectWithMetadata.md)
|
|
163
|
+
|
|
164
|
+
##### parameters?
|
|
165
|
+
|
|
166
|
+
`Parameters`
|
|
167
|
+
|
|
168
|
+
##### strict?
|
|
169
|
+
|
|
170
|
+
`boolean` = `false`
|
|
171
|
+
|
|
172
|
+
#### Returns
|
|
173
|
+
|
|
174
|
+
`void`
|
|
175
|
+
|
|
176
|
+
***
|
|
177
|
+
|
|
178
|
+
### validateRequestBody()
|
|
179
|
+
|
|
180
|
+
> **validateRequestBody**(`operation`, `body`?, `strict`?): `void`
|
|
181
|
+
|
|
182
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:189](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L189)
|
|
183
|
+
|
|
184
|
+
#### Parameters
|
|
185
|
+
|
|
186
|
+
##### operation
|
|
187
|
+
|
|
188
|
+
[`OperationObjectWithMetadata`](../interfaces/OperationObjectWithMetadata.md)
|
|
189
|
+
|
|
190
|
+
##### body?
|
|
191
|
+
|
|
192
|
+
`RequestBody`
|
|
193
|
+
|
|
194
|
+
##### strict?
|
|
195
|
+
|
|
196
|
+
`boolean` = `false`
|
|
197
|
+
|
|
198
|
+
#### Returns
|
|
199
|
+
|
|
200
|
+
`void`
|
|
201
|
+
|
|
202
|
+
***
|
|
203
|
+
|
|
204
|
+
### validateResponse()
|
|
205
|
+
|
|
206
|
+
> `protected` **validateResponse**(`operation`, `response`, `strict`): `void`
|
|
207
|
+
|
|
208
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:122](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L122)
|
|
209
|
+
|
|
210
|
+
Validates the http response against the schema specified in the operation object
|
|
211
|
+
|
|
212
|
+
#### Parameters
|
|
213
|
+
|
|
214
|
+
##### operation
|
|
215
|
+
|
|
216
|
+
[`OperationObjectWithMetadata`](../interfaces/OperationObjectWithMetadata.md)
|
|
217
|
+
|
|
218
|
+
##### response
|
|
219
|
+
|
|
220
|
+
[`SchemaValidationResponse`](../interfaces/SchemaValidationResponse.md)\<`Response`\>
|
|
221
|
+
|
|
222
|
+
##### strict
|
|
223
|
+
|
|
224
|
+
`boolean` = `false`
|
|
225
|
+
|
|
226
|
+
#### Returns
|
|
227
|
+
|
|
228
|
+
`void`
|
|
229
|
+
|
|
230
|
+
***
|
|
231
|
+
|
|
232
|
+
### validationError()
|
|
233
|
+
|
|
234
|
+
> **validationError**(`message`, `strict`, `schema`?, `value`?): `void`
|
|
235
|
+
|
|
236
|
+
Defined in: [packages/angular/open-api/src/lib/schema-validation.mixin.ts:222](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/schema-validation.mixin.ts#L222)
|
|
237
|
+
|
|
238
|
+
#### Parameters
|
|
239
|
+
|
|
240
|
+
##### message
|
|
241
|
+
|
|
242
|
+
`string`
|
|
243
|
+
|
|
244
|
+
##### strict
|
|
245
|
+
|
|
246
|
+
`boolean`
|
|
247
|
+
|
|
248
|
+
##### schema?
|
|
249
|
+
|
|
250
|
+
`ReferenceObject` | `SchemaObject`
|
|
251
|
+
|
|
252
|
+
##### value?
|
|
253
|
+
|
|
254
|
+
`any`
|
|
255
|
+
|
|
256
|
+
#### Returns
|
|
257
|
+
|
|
258
|
+
`void`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / AssertOpenApiV3
|
|
6
|
+
|
|
7
|
+
# Function: AssertOpenApiV3()
|
|
8
|
+
|
|
9
|
+
> **AssertOpenApiV3**(`obj`?): `asserts obj is Document<{}>`
|
|
10
|
+
|
|
11
|
+
Defined in: [packages/angular/open-api/src/lib/utilities.ts:16](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/utilities.ts#L16)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### obj?
|
|
16
|
+
|
|
17
|
+
`any`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`asserts obj is Document<{}>`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / IsOpenApiV3
|
|
6
|
+
|
|
7
|
+
# Function: IsOpenApiV3()
|
|
8
|
+
|
|
9
|
+
> **IsOpenApiV3**(`obj`?): `obj is Document<{}>`
|
|
10
|
+
|
|
11
|
+
Defined in: [packages/angular/open-api/src/lib/utilities.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/utilities.ts#L12)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### obj?
|
|
16
|
+
|
|
17
|
+
`any`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`obj is Document<{}>`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / IsReferenceObject
|
|
6
|
+
|
|
7
|
+
# Function: IsReferenceObject()
|
|
8
|
+
|
|
9
|
+
> **IsReferenceObject**(`obj`?): `obj is ReferenceObject`
|
|
10
|
+
|
|
11
|
+
Defined in: [packages/angular/open-api/src/lib/utilities.ts:4](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/utilities.ts#L4)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### obj?
|
|
16
|
+
|
|
17
|
+
`any`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`obj is ReferenceObject`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / NotContainsReferenceObjects
|
|
6
|
+
|
|
7
|
+
# Function: NotContainsReferenceObjects()
|
|
8
|
+
|
|
9
|
+
> **NotContainsReferenceObjects**\<`T`\>(`array`?): `array is T[]`
|
|
10
|
+
|
|
11
|
+
Defined in: [packages/angular/open-api/src/lib/utilities.ts:8](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/utilities.ts#L8)
|
|
12
|
+
|
|
13
|
+
## Type Parameters
|
|
14
|
+
|
|
15
|
+
• **T**
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
|
|
19
|
+
### array?
|
|
20
|
+
|
|
21
|
+
(`undefined` \| `ReferenceObject` \| `T`)[]
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`array is T[]`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / OpenApiInit
|
|
6
|
+
|
|
7
|
+
# Function: OpenApiInit()
|
|
8
|
+
|
|
9
|
+
> **OpenApiInit**(`environment`, `options`): `undefined` \| `Promise`\<`void`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [packages/angular/open-api/src/lib/open-api-init.ts:20](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api-init.ts#L20)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### environment
|
|
16
|
+
|
|
17
|
+
`Environment`
|
|
18
|
+
|
|
19
|
+
### options
|
|
20
|
+
|
|
21
|
+
[`OpenApiInitOptions`](../interfaces/OpenApiInitOptions.md) = `{}`
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`undefined` \| `Promise`\<`void`\>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[**@rxap/open-api**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# @rxap/open-api
|
|
6
|
+
|
|
7
|
+
## Classes
|
|
8
|
+
|
|
9
|
+
- [OpenApiConfigService](classes/OpenApiConfigService.md)
|
|
10
|
+
- [OpenApiHttpResponseError](classes/OpenApiHttpResponseError.md)
|
|
11
|
+
- [RxapOpenApiError](classes/RxapOpenApiError.md)
|
|
12
|
+
- [SchemaValidationMixin](classes/SchemaValidationMixin.md)
|
|
13
|
+
|
|
14
|
+
## Interfaces
|
|
15
|
+
|
|
16
|
+
- [OpenApiInitOptions](interfaces/OpenApiInitOptions.md)
|
|
17
|
+
- [OpenApiMetaData](interfaces/OpenApiMetaData.md)
|
|
18
|
+
- [OperationObjectWithMetadata](interfaces/OperationObjectWithMetadata.md)
|
|
19
|
+
- [SchemaValidationResponse](interfaces/SchemaValidationResponse.md)
|
|
20
|
+
|
|
21
|
+
## Type Aliases
|
|
22
|
+
|
|
23
|
+
- [OperationMap](type-aliases/OperationMap.md)
|
|
24
|
+
|
|
25
|
+
## Variables
|
|
26
|
+
|
|
27
|
+
- [DEFAULT\_OPEN\_API\_DATA\_SOURCE\_META\_DATA](variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md)
|
|
28
|
+
- [DEFAULT\_OPEN\_API\_REMOTE\_METHOD\_META\_DATA](variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md)
|
|
29
|
+
- [DISABLE\_SCHEMA\_VALIDATION](variables/DISABLE_SCHEMA_VALIDATION.md)
|
|
30
|
+
- [DISABLE\_VALIDATION](variables/DISABLE_VALIDATION.md)
|
|
31
|
+
- [RXAP\_OPEN\_API\_CONFIG](variables/RXAP_OPEN_API_CONFIG.md)
|
|
32
|
+
- [RXAP\_OPEN\_API\_STRICT\_VALIDATOR](variables/RXAP_OPEN_API_STRICT_VALIDATOR.md)
|
|
33
|
+
|
|
34
|
+
## Functions
|
|
35
|
+
|
|
36
|
+
- [AssertOpenApiV3](functions/AssertOpenApiV3.md)
|
|
37
|
+
- [IsOpenApiV3](functions/IsOpenApiV3.md)
|
|
38
|
+
- [IsReferenceObject](functions/IsReferenceObject.md)
|
|
39
|
+
- [NotContainsReferenceObjects](functions/NotContainsReferenceObjects.md)
|
|
40
|
+
- [OpenApiInit](functions/OpenApiInit.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / OpenApiInitOptions
|
|
6
|
+
|
|
7
|
+
# Interface: OpenApiInitOptions
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/angular/open-api/src/lib/open-api-init.ts:6](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api-init.ts#L6)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### load?
|
|
14
|
+
|
|
15
|
+
> `optional` **load**: `boolean` \| \{ `openApiUrl`: `string`; \}
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/angular/open-api/src/lib/open-api-init.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api-init.ts#L11)
|
|
18
|
+
|
|
19
|
+
true - load the open api config file from the default url
|
|
20
|
+
default url: openapi.json
|
|
21
|
+
|
|
22
|
+
***
|
|
23
|
+
|
|
24
|
+
### origin?
|
|
25
|
+
|
|
26
|
+
> `optional` **origin**: `string`
|
|
27
|
+
|
|
28
|
+
Defined in: [packages/angular/open-api/src/lib/open-api-init.ts:17](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api-init.ts#L17)
|
|
29
|
+
|
|
30
|
+
The location origin prefix for the open api base urls if the base url is not absolute. defaults to location.origin
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / OpenApiMetaData
|
|
6
|
+
|
|
7
|
+
# Interface: OpenApiMetaData
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.meta-data.ts:4](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.meta-data.ts#L4)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `BaseRemoteMethodMetadata`
|
|
14
|
+
|
|
15
|
+
## Indexable
|
|
16
|
+
|
|
17
|
+
\[`key`: `string`\]: `any`
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### id
|
|
22
|
+
|
|
23
|
+
> **id**: `string`
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.meta-data.ts:17](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.meta-data.ts#L17)
|
|
26
|
+
|
|
27
|
+
#### Overrides
|
|
28
|
+
|
|
29
|
+
`BaseRemoteMethodMetadata.id`
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### operation?
|
|
34
|
+
|
|
35
|
+
> `optional` **operation**: `string` \| [`OperationObjectWithMetadata`](OperationObjectWithMetadata.md)
|
|
36
|
+
|
|
37
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.meta-data.ts:8](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.meta-data.ts#L8)
|
|
38
|
+
|
|
39
|
+
The operation object with path and method
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### refresh?
|
|
44
|
+
|
|
45
|
+
> `optional` **refresh**: (`Type`\<`Refreshable`\> \| `InjectionToken`\<`Refreshable`\> \| `AbstractType`\<`Refreshable`\>)[]
|
|
46
|
+
|
|
47
|
+
Defined in: [packages/angular/remote-method/src/lib/base.remote-method.ts:24](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/remote-method/src/lib/base.remote-method.ts#L24)
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
`BaseRemoteMethodMetadata.refresh`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### serverId?
|
|
56
|
+
|
|
57
|
+
> `optional` **serverId**: `string`
|
|
58
|
+
|
|
59
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.meta-data.ts:16](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.meta-data.ts#L16)
|
|
60
|
+
|
|
61
|
+
used to specify the target server for the reset api operation
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### serverIndex?
|
|
66
|
+
|
|
67
|
+
> `optional` **serverIndex**: `number`
|
|
68
|
+
|
|
69
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.meta-data.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.meta-data.ts#L12)
|
|
70
|
+
|
|
71
|
+
The index of the server object in the servers array in the open api config
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
[**@rxap/open-api**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/open-api](../globals.md) / OperationObjectWithMetadata
|
|
6
|
+
|
|
7
|
+
# Interface: OperationObjectWithMetadata
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.ts:3](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.ts#L3)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `OperationObject`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### callbacks?
|
|
18
|
+
|
|
19
|
+
> `optional` **callbacks**: `object`
|
|
20
|
+
|
|
21
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:224
|
|
22
|
+
|
|
23
|
+
#### Index Signature
|
|
24
|
+
|
|
25
|
+
\[`callback`: `string`\]: `ReferenceObject` \| `CallbackObject`
|
|
26
|
+
|
|
27
|
+
#### Inherited from
|
|
28
|
+
|
|
29
|
+
`OpenAPIV3.OperationObject.callbacks`
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### deprecated?
|
|
34
|
+
|
|
35
|
+
> `optional` **deprecated**: `boolean`
|
|
36
|
+
|
|
37
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:227
|
|
38
|
+
|
|
39
|
+
#### Inherited from
|
|
40
|
+
|
|
41
|
+
`OpenAPIV3.OperationObject.deprecated`
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### description?
|
|
46
|
+
|
|
47
|
+
> `optional` **description**: `string`
|
|
48
|
+
|
|
49
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:218
|
|
50
|
+
|
|
51
|
+
#### Inherited from
|
|
52
|
+
|
|
53
|
+
`OpenAPIV3.OperationObject.description`
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### externalDocs?
|
|
58
|
+
|
|
59
|
+
> `optional` **externalDocs**: `ExternalDocumentationObject`
|
|
60
|
+
|
|
61
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:219
|
|
62
|
+
|
|
63
|
+
#### Inherited from
|
|
64
|
+
|
|
65
|
+
`OpenAPIV3.OperationObject.externalDocs`
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### method
|
|
70
|
+
|
|
71
|
+
> **method**: `string`
|
|
72
|
+
|
|
73
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.ts:5](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.ts#L5)
|
|
74
|
+
|
|
75
|
+
***
|
|
76
|
+
|
|
77
|
+
### operationId?
|
|
78
|
+
|
|
79
|
+
> `optional` **operationId**: `string`
|
|
80
|
+
|
|
81
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:220
|
|
82
|
+
|
|
83
|
+
#### Inherited from
|
|
84
|
+
|
|
85
|
+
`OpenAPIV3.OperationObject.operationId`
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
89
|
+
### parameters?
|
|
90
|
+
|
|
91
|
+
> `optional` **parameters**: (`ReferenceObject` \| `ParameterObject`)[]
|
|
92
|
+
|
|
93
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:221
|
|
94
|
+
|
|
95
|
+
#### Inherited from
|
|
96
|
+
|
|
97
|
+
`OpenAPIV3.OperationObject.parameters`
|
|
98
|
+
|
|
99
|
+
***
|
|
100
|
+
|
|
101
|
+
### path
|
|
102
|
+
|
|
103
|
+
> **path**: `string`
|
|
104
|
+
|
|
105
|
+
Defined in: [packages/angular/open-api/src/lib/open-api.ts:4](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/open-api.ts#L4)
|
|
106
|
+
|
|
107
|
+
***
|
|
108
|
+
|
|
109
|
+
### requestBody?
|
|
110
|
+
|
|
111
|
+
> `optional` **requestBody**: `ReferenceObject` \| `RequestBodyObject`
|
|
112
|
+
|
|
113
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:222
|
|
114
|
+
|
|
115
|
+
#### Inherited from
|
|
116
|
+
|
|
117
|
+
`OpenAPIV3.OperationObject.requestBody`
|
|
118
|
+
|
|
119
|
+
***
|
|
120
|
+
|
|
121
|
+
### responses
|
|
122
|
+
|
|
123
|
+
> **responses**: `ResponsesObject`
|
|
124
|
+
|
|
125
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:223
|
|
126
|
+
|
|
127
|
+
#### Inherited from
|
|
128
|
+
|
|
129
|
+
`OpenAPIV3.OperationObject.responses`
|
|
130
|
+
|
|
131
|
+
***
|
|
132
|
+
|
|
133
|
+
### security?
|
|
134
|
+
|
|
135
|
+
> `optional` **security**: `SecurityRequirementObject`[]
|
|
136
|
+
|
|
137
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:228
|
|
138
|
+
|
|
139
|
+
#### Inherited from
|
|
140
|
+
|
|
141
|
+
`OpenAPIV3.OperationObject.security`
|
|
142
|
+
|
|
143
|
+
***
|
|
144
|
+
|
|
145
|
+
### servers?
|
|
146
|
+
|
|
147
|
+
> `optional` **servers**: `ServerObject`[]
|
|
148
|
+
|
|
149
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:229
|
|
150
|
+
|
|
151
|
+
#### Inherited from
|
|
152
|
+
|
|
153
|
+
`OpenAPIV3.OperationObject.servers`
|
|
154
|
+
|
|
155
|
+
***
|
|
156
|
+
|
|
157
|
+
### summary?
|
|
158
|
+
|
|
159
|
+
> `optional` **summary**: `string`
|
|
160
|
+
|
|
161
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:217
|
|
162
|
+
|
|
163
|
+
#### Inherited from
|
|
164
|
+
|
|
165
|
+
`OpenAPIV3.OperationObject.summary`
|
|
166
|
+
|
|
167
|
+
***
|
|
168
|
+
|
|
169
|
+
### tags?
|
|
170
|
+
|
|
171
|
+
> `optional` **tags**: `string`[]
|
|
172
|
+
|
|
173
|
+
Defined in: node\_modules/openapi-types/dist/index.d.ts:216
|
|
174
|
+
|
|
175
|
+
#### Inherited from
|
|
176
|
+
|
|
177
|
+
`OpenAPIV3.OperationObject.tags`
|