@rxap/open-api 19.0.1-dev.2 → 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 +12 -0
- package/README.md +24 -26
- package/compodoc/changelog.html +6 -0
- package/compodoc/dependencies.html +8 -8
- 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 +23 -22
- 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,261 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / RxapOpenApiError
|
|
2
|
+
|
|
3
|
+
# Class: RxapOpenApiError
|
|
4
|
+
|
|
5
|
+
Defined in: [packages/angular/open-api/src/lib/error.ts:3](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/error.ts#L3)
|
|
6
|
+
|
|
7
|
+
## Extends
|
|
8
|
+
|
|
9
|
+
- `RxapError`
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### new RxapOpenApiError()
|
|
14
|
+
|
|
15
|
+
> **new RxapOpenApiError**(`message`, `code`?, `scope`?): [`RxapOpenApiError`](../wiki/Class.RxapOpenApiError)
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/angular/open-api/src/lib/error.ts:5](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/open-api/src/lib/error.ts#L5)
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
##### message
|
|
22
|
+
|
|
23
|
+
`string`
|
|
24
|
+
|
|
25
|
+
##### code?
|
|
26
|
+
|
|
27
|
+
`string`
|
|
28
|
+
|
|
29
|
+
##### scope?
|
|
30
|
+
|
|
31
|
+
`string`
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
[`RxapOpenApiError`](../wiki/Class.RxapOpenApiError)
|
|
36
|
+
|
|
37
|
+
#### Overrides
|
|
38
|
+
|
|
39
|
+
`RxapError.constructor`
|
|
40
|
+
|
|
41
|
+
## Properties
|
|
42
|
+
|
|
43
|
+
### \_packageName
|
|
44
|
+
|
|
45
|
+
> `protected` **\_packageName**: `string`
|
|
46
|
+
|
|
47
|
+
Defined in: [packages/utilities/src/lib/error.ts:6](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L6)
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
`RxapError._packageName`
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### code?
|
|
56
|
+
|
|
57
|
+
> `readonly` `optional` **code**: `string`
|
|
58
|
+
|
|
59
|
+
Defined in: [packages/utilities/src/lib/error.ts:8](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L8)
|
|
60
|
+
|
|
61
|
+
#### Inherited from
|
|
62
|
+
|
|
63
|
+
`RxapError.code`
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### message
|
|
68
|
+
|
|
69
|
+
> **message**: `string`
|
|
70
|
+
|
|
71
|
+
Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1077
|
|
72
|
+
|
|
73
|
+
#### Inherited from
|
|
74
|
+
|
|
75
|
+
`RxapError.message`
|
|
76
|
+
|
|
77
|
+
***
|
|
78
|
+
|
|
79
|
+
### name
|
|
80
|
+
|
|
81
|
+
> **name**: `string`
|
|
82
|
+
|
|
83
|
+
Defined in: node\_modules/typescript/lib/lib.es5.d.ts:1076
|
|
84
|
+
|
|
85
|
+
#### Inherited from
|
|
86
|
+
|
|
87
|
+
`RxapError.name`
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### scope?
|
|
92
|
+
|
|
93
|
+
> `readonly` `optional` **scope**: `string`
|
|
94
|
+
|
|
95
|
+
Defined in: [packages/utilities/src/lib/error.ts:9](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L9)
|
|
96
|
+
|
|
97
|
+
#### Inherited from
|
|
98
|
+
|
|
99
|
+
`RxapError.scope`
|
|
100
|
+
|
|
101
|
+
***
|
|
102
|
+
|
|
103
|
+
### stack?
|
|
104
|
+
|
|
105
|
+
> `readonly` `optional` **stack**: `string`
|
|
106
|
+
|
|
107
|
+
Defined in: [packages/utilities/src/lib/error.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L10)
|
|
108
|
+
|
|
109
|
+
#### Inherited from
|
|
110
|
+
|
|
111
|
+
`RxapError.stack`
|
|
112
|
+
|
|
113
|
+
## Accessors
|
|
114
|
+
|
|
115
|
+
### className
|
|
116
|
+
|
|
117
|
+
#### Get Signature
|
|
118
|
+
|
|
119
|
+
> **get** **className**(): `undefined` \| `string`
|
|
120
|
+
|
|
121
|
+
Defined in: [packages/utilities/src/lib/error.ts:23](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L23)
|
|
122
|
+
|
|
123
|
+
##### Returns
|
|
124
|
+
|
|
125
|
+
`undefined` \| `string`
|
|
126
|
+
|
|
127
|
+
#### Inherited from
|
|
128
|
+
|
|
129
|
+
`RxapError.className`
|
|
130
|
+
|
|
131
|
+
***
|
|
132
|
+
|
|
133
|
+
### packageName
|
|
134
|
+
|
|
135
|
+
#### Get Signature
|
|
136
|
+
|
|
137
|
+
> **get** **packageName**(): `string`
|
|
138
|
+
|
|
139
|
+
Defined in: [packages/utilities/src/lib/error.ts:19](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L19)
|
|
140
|
+
|
|
141
|
+
##### Returns
|
|
142
|
+
|
|
143
|
+
`string`
|
|
144
|
+
|
|
145
|
+
#### Inherited from
|
|
146
|
+
|
|
147
|
+
`RxapError.packageName`
|
|
148
|
+
|
|
149
|
+
## Methods
|
|
150
|
+
|
|
151
|
+
### ~~addSubPackageName()~~
|
|
152
|
+
|
|
153
|
+
> `protected` **addSubPackageName**(`subPackageName`): `void`
|
|
154
|
+
|
|
155
|
+
Defined in: [packages/utilities/src/lib/error.ts:64](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L64)
|
|
156
|
+
|
|
157
|
+
**`Internal`**
|
|
158
|
+
|
|
159
|
+
Add's the sub package name to the current package name.
|
|
160
|
+
|
|
161
|
+
current package name -> with sub package name
|
|
162
|
+
@rxap/package -> @rxap/package/sub
|
|
163
|
+
|
|
164
|
+
#### Parameters
|
|
165
|
+
|
|
166
|
+
##### subPackageName
|
|
167
|
+
|
|
168
|
+
`string`
|
|
169
|
+
|
|
170
|
+
The sub package name
|
|
171
|
+
|
|
172
|
+
#### Returns
|
|
173
|
+
|
|
174
|
+
`void`
|
|
175
|
+
|
|
176
|
+
#### Deprecated
|
|
177
|
+
|
|
178
|
+
removed
|
|
179
|
+
|
|
180
|
+
#### Inherited from
|
|
181
|
+
|
|
182
|
+
`RxapError.addSubPackageName`
|
|
183
|
+
|
|
184
|
+
***
|
|
185
|
+
|
|
186
|
+
### setPackageName()
|
|
187
|
+
|
|
188
|
+
> `protected` **setPackageName**(`packageName`): `void`
|
|
189
|
+
|
|
190
|
+
Defined in: [packages/utilities/src/lib/error.ts:74](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L74)
|
|
191
|
+
|
|
192
|
+
**`Internal`**
|
|
193
|
+
|
|
194
|
+
Sets the package name
|
|
195
|
+
|
|
196
|
+
#### Parameters
|
|
197
|
+
|
|
198
|
+
##### packageName
|
|
199
|
+
|
|
200
|
+
`string`
|
|
201
|
+
|
|
202
|
+
The new package name
|
|
203
|
+
|
|
204
|
+
#### Returns
|
|
205
|
+
|
|
206
|
+
`void`
|
|
207
|
+
|
|
208
|
+
#### Inherited from
|
|
209
|
+
|
|
210
|
+
`RxapError.setPackageName`
|
|
211
|
+
|
|
212
|
+
***
|
|
213
|
+
|
|
214
|
+
### ~~setSubPackageName()~~
|
|
215
|
+
|
|
216
|
+
> `protected` **setSubPackageName**(`subPackageName`): `void`
|
|
217
|
+
|
|
218
|
+
Defined in: [packages/utilities/src/lib/error.ts:49](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L49)
|
|
219
|
+
|
|
220
|
+
**`Internal`**
|
|
221
|
+
|
|
222
|
+
Add's the sub package name to the current package name.
|
|
223
|
+
|
|
224
|
+
current package name -> with sub package name
|
|
225
|
+
@rxap/package -> @rxap/package/sub
|
|
226
|
+
|
|
227
|
+
#### Parameters
|
|
228
|
+
|
|
229
|
+
##### subPackageName
|
|
230
|
+
|
|
231
|
+
`string`
|
|
232
|
+
|
|
233
|
+
The sub package name
|
|
234
|
+
|
|
235
|
+
#### Returns
|
|
236
|
+
|
|
237
|
+
`void`
|
|
238
|
+
|
|
239
|
+
#### Deprecated
|
|
240
|
+
|
|
241
|
+
use addSubPackageName instead
|
|
242
|
+
|
|
243
|
+
#### Inherited from
|
|
244
|
+
|
|
245
|
+
`RxapError.setSubPackageName`
|
|
246
|
+
|
|
247
|
+
***
|
|
248
|
+
|
|
249
|
+
### toJSON()
|
|
250
|
+
|
|
251
|
+
> **toJSON**(): `object`
|
|
252
|
+
|
|
253
|
+
Defined in: [packages/utilities/src/lib/error.ts:27](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/utilities/src/lib/error.ts#L27)
|
|
254
|
+
|
|
255
|
+
#### Returns
|
|
256
|
+
|
|
257
|
+
`object`
|
|
258
|
+
|
|
259
|
+
#### Inherited from
|
|
260
|
+
|
|
261
|
+
`RxapError.toJSON`
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / SchemaValidationMixin
|
|
2
|
+
|
|
3
|
+
# Class: SchemaValidationMixin\<Response, Parameters, RequestBody\>
|
|
4
|
+
|
|
5
|
+
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)
|
|
6
|
+
|
|
7
|
+
## Type Parameters
|
|
8
|
+
|
|
9
|
+
• **Response** = `any`
|
|
10
|
+
|
|
11
|
+
• **Parameters** *extends* `Record`\<`string`, `any`\> \| `void` = `any`
|
|
12
|
+
|
|
13
|
+
• **RequestBody** = `any`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new SchemaValidationMixin()
|
|
18
|
+
|
|
19
|
+
> **new SchemaValidationMixin**\<`Response`, `Parameters`, `RequestBody`\>(): [`SchemaValidationMixin`](../wiki/Class.SchemaValidationMixin)\<`Response`, `Parameters`, `RequestBody`\>
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`SchemaValidationMixin`](../wiki/Class.SchemaValidationMixin)\<`Response`, `Parameters`, `RequestBody`\>
|
|
24
|
+
|
|
25
|
+
## Properties
|
|
26
|
+
|
|
27
|
+
### disableSchemaValidation?
|
|
28
|
+
|
|
29
|
+
> `protected` `optional` **disableSchemaValidation**: `boolean`
|
|
30
|
+
|
|
31
|
+
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)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### STRICT
|
|
36
|
+
|
|
37
|
+
> `static` **STRICT**: `boolean` = `false`
|
|
38
|
+
|
|
39
|
+
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)
|
|
40
|
+
|
|
41
|
+
## Methods
|
|
42
|
+
|
|
43
|
+
### buildHttpHeaders()
|
|
44
|
+
|
|
45
|
+
> **buildHttpHeaders**(`operationParameters`, `parameters`?): `HttpHeaders`
|
|
46
|
+
|
|
47
|
+
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)
|
|
48
|
+
|
|
49
|
+
#### Parameters
|
|
50
|
+
|
|
51
|
+
##### operationParameters
|
|
52
|
+
|
|
53
|
+
`ParameterObject`[]
|
|
54
|
+
|
|
55
|
+
##### parameters?
|
|
56
|
+
|
|
57
|
+
`Parameters`
|
|
58
|
+
|
|
59
|
+
#### Returns
|
|
60
|
+
|
|
61
|
+
`HttpHeaders`
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### buildHttpOptions()
|
|
66
|
+
|
|
67
|
+
> **buildHttpOptions**(`operation`, `parameters`?, `requestBody`?, `ignoreUndefined`?): `HttpRemoteMethodParameter`
|
|
68
|
+
|
|
69
|
+
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)
|
|
70
|
+
|
|
71
|
+
Converts open api parameters into the corresponding http options to
|
|
72
|
+
create a http request. The transformation is guided by the openapi definition
|
|
73
|
+
|
|
74
|
+
#### Parameters
|
|
75
|
+
|
|
76
|
+
##### operation
|
|
77
|
+
|
|
78
|
+
[`OperationObjectWithMetadata`](../wiki/Interface.OperationObjectWithMetadata)
|
|
79
|
+
|
|
80
|
+
##### parameters?
|
|
81
|
+
|
|
82
|
+
`Parameters`
|
|
83
|
+
|
|
84
|
+
##### requestBody?
|
|
85
|
+
|
|
86
|
+
`RequestBody`
|
|
87
|
+
|
|
88
|
+
##### ignoreUndefined?
|
|
89
|
+
|
|
90
|
+
`boolean` = `true`
|
|
91
|
+
|
|
92
|
+
#### Returns
|
|
93
|
+
|
|
94
|
+
`HttpRemoteMethodParameter`
|
|
95
|
+
|
|
96
|
+
***
|
|
97
|
+
|
|
98
|
+
### buildHttpParams()
|
|
99
|
+
|
|
100
|
+
> **buildHttpParams**(`operationParameters`, `parameters`?, `ignoreUndefined`?): `HttpParams`
|
|
101
|
+
|
|
102
|
+
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)
|
|
103
|
+
|
|
104
|
+
#### Parameters
|
|
105
|
+
|
|
106
|
+
##### operationParameters
|
|
107
|
+
|
|
108
|
+
`ParameterObject`[]
|
|
109
|
+
|
|
110
|
+
##### parameters?
|
|
111
|
+
|
|
112
|
+
`Parameters`
|
|
113
|
+
|
|
114
|
+
##### ignoreUndefined?
|
|
115
|
+
|
|
116
|
+
`boolean` = `true`
|
|
117
|
+
|
|
118
|
+
#### Returns
|
|
119
|
+
|
|
120
|
+
`HttpParams`
|
|
121
|
+
|
|
122
|
+
***
|
|
123
|
+
|
|
124
|
+
### buildHttpPathParams()
|
|
125
|
+
|
|
126
|
+
> **buildHttpPathParams**(`operationParameters`, `parameters`?): `Record`\<`string`, `string`\>
|
|
127
|
+
|
|
128
|
+
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)
|
|
129
|
+
|
|
130
|
+
#### Parameters
|
|
131
|
+
|
|
132
|
+
##### operationParameters
|
|
133
|
+
|
|
134
|
+
`ParameterObject`[]
|
|
135
|
+
|
|
136
|
+
##### parameters?
|
|
137
|
+
|
|
138
|
+
`Parameters`
|
|
139
|
+
|
|
140
|
+
#### Returns
|
|
141
|
+
|
|
142
|
+
`Record`\<`string`, `string`\>
|
|
143
|
+
|
|
144
|
+
***
|
|
145
|
+
|
|
146
|
+
### validateParameters()
|
|
147
|
+
|
|
148
|
+
> `protected` **validateParameters**(`operation`, `parameters`?, `strict`?): `void`
|
|
149
|
+
|
|
150
|
+
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)
|
|
151
|
+
|
|
152
|
+
Validates the parameters against the schema specified in the operation object
|
|
153
|
+
|
|
154
|
+
#### Parameters
|
|
155
|
+
|
|
156
|
+
##### operation
|
|
157
|
+
|
|
158
|
+
[`OperationObjectWithMetadata`](../wiki/Interface.OperationObjectWithMetadata)
|
|
159
|
+
|
|
160
|
+
##### parameters?
|
|
161
|
+
|
|
162
|
+
`Parameters`
|
|
163
|
+
|
|
164
|
+
##### strict?
|
|
165
|
+
|
|
166
|
+
`boolean` = `false`
|
|
167
|
+
|
|
168
|
+
#### Returns
|
|
169
|
+
|
|
170
|
+
`void`
|
|
171
|
+
|
|
172
|
+
***
|
|
173
|
+
|
|
174
|
+
### validateRequestBody()
|
|
175
|
+
|
|
176
|
+
> **validateRequestBody**(`operation`, `body`?, `strict`?): `void`
|
|
177
|
+
|
|
178
|
+
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)
|
|
179
|
+
|
|
180
|
+
#### Parameters
|
|
181
|
+
|
|
182
|
+
##### operation
|
|
183
|
+
|
|
184
|
+
[`OperationObjectWithMetadata`](../wiki/Interface.OperationObjectWithMetadata)
|
|
185
|
+
|
|
186
|
+
##### body?
|
|
187
|
+
|
|
188
|
+
`RequestBody`
|
|
189
|
+
|
|
190
|
+
##### strict?
|
|
191
|
+
|
|
192
|
+
`boolean` = `false`
|
|
193
|
+
|
|
194
|
+
#### Returns
|
|
195
|
+
|
|
196
|
+
`void`
|
|
197
|
+
|
|
198
|
+
***
|
|
199
|
+
|
|
200
|
+
### validateResponse()
|
|
201
|
+
|
|
202
|
+
> `protected` **validateResponse**(`operation`, `response`, `strict`): `void`
|
|
203
|
+
|
|
204
|
+
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)
|
|
205
|
+
|
|
206
|
+
Validates the http response against the schema specified in the operation object
|
|
207
|
+
|
|
208
|
+
#### Parameters
|
|
209
|
+
|
|
210
|
+
##### operation
|
|
211
|
+
|
|
212
|
+
[`OperationObjectWithMetadata`](../wiki/Interface.OperationObjectWithMetadata)
|
|
213
|
+
|
|
214
|
+
##### response
|
|
215
|
+
|
|
216
|
+
[`SchemaValidationResponse`](../wiki/Interface.SchemaValidationResponse)\<`Response`\>
|
|
217
|
+
|
|
218
|
+
##### strict
|
|
219
|
+
|
|
220
|
+
`boolean` = `false`
|
|
221
|
+
|
|
222
|
+
#### Returns
|
|
223
|
+
|
|
224
|
+
`void`
|
|
225
|
+
|
|
226
|
+
***
|
|
227
|
+
|
|
228
|
+
### validationError()
|
|
229
|
+
|
|
230
|
+
> **validationError**(`message`, `strict`, `schema`?, `value`?): `void`
|
|
231
|
+
|
|
232
|
+
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)
|
|
233
|
+
|
|
234
|
+
#### Parameters
|
|
235
|
+
|
|
236
|
+
##### message
|
|
237
|
+
|
|
238
|
+
`string`
|
|
239
|
+
|
|
240
|
+
##### strict
|
|
241
|
+
|
|
242
|
+
`boolean`
|
|
243
|
+
|
|
244
|
+
##### schema?
|
|
245
|
+
|
|
246
|
+
`ReferenceObject` | `SchemaObject`
|
|
247
|
+
|
|
248
|
+
##### value?
|
|
249
|
+
|
|
250
|
+
`any`
|
|
251
|
+
|
|
252
|
+
#### Returns
|
|
253
|
+
|
|
254
|
+
`void`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / AssertOpenApiV3
|
|
2
|
+
|
|
3
|
+
# Function: AssertOpenApiV3()
|
|
4
|
+
|
|
5
|
+
> **AssertOpenApiV3**(`obj`?): `asserts obj is Document<{}>`
|
|
6
|
+
|
|
7
|
+
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)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### obj?
|
|
12
|
+
|
|
13
|
+
`any`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`asserts obj is Document<{}>`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / IsOpenApiV3
|
|
2
|
+
|
|
3
|
+
# Function: IsOpenApiV3()
|
|
4
|
+
|
|
5
|
+
> **IsOpenApiV3**(`obj`?): `obj is Document<{}>`
|
|
6
|
+
|
|
7
|
+
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)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### obj?
|
|
12
|
+
|
|
13
|
+
`any`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`obj is Document<{}>`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / IsReferenceObject
|
|
2
|
+
|
|
3
|
+
# Function: IsReferenceObject()
|
|
4
|
+
|
|
5
|
+
> **IsReferenceObject**(`obj`?): `obj is ReferenceObject`
|
|
6
|
+
|
|
7
|
+
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)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### obj?
|
|
12
|
+
|
|
13
|
+
`any`
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`obj is ReferenceObject`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / NotContainsReferenceObjects
|
|
2
|
+
|
|
3
|
+
# Function: NotContainsReferenceObjects()
|
|
4
|
+
|
|
5
|
+
> **NotContainsReferenceObjects**\<`T`\>(`array`?): `array is T[]`
|
|
6
|
+
|
|
7
|
+
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)
|
|
8
|
+
|
|
9
|
+
## Type Parameters
|
|
10
|
+
|
|
11
|
+
• **T**
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### array?
|
|
16
|
+
|
|
17
|
+
(`undefined` \| `ReferenceObject` \| `T`)[]
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`array is T[]`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / OpenApiInit
|
|
2
|
+
|
|
3
|
+
# Function: OpenApiInit()
|
|
4
|
+
|
|
5
|
+
> **OpenApiInit**(`environment`, `options`): `undefined` \| `Promise`\<`void`\>
|
|
6
|
+
|
|
7
|
+
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)
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
### environment
|
|
12
|
+
|
|
13
|
+
`Environment`
|
|
14
|
+
|
|
15
|
+
### options
|
|
16
|
+
|
|
17
|
+
[`OpenApiInitOptions`](../wiki/Interface.OpenApiInitOptions) = `{}`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`undefined` \| `Promise`\<`void`\>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
This package provides tools for working with OpenAPI specifications in Angular applications. It includes services for configuring and loading OpenAPI definitions, validating requests and responses against schemas, and handling errors. It also offers utilities for building HTTP requests based on OpenAPI definitions.
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@rxap/open-api)
|
|
4
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
6
|
+
[](https://github.com/prettier/prettier)
|
|
8
|
+

|
|
10
|
+

|
|
11
|
+
 -
|
|
12
|
+
[Installation](../wiki/#installation)
|
|
13
|
+
- [Generators](../wiki/#generators)
|
|
14
|
+
- [init](../wiki/#init)
|
|
15
|
+
|
|
16
|
+
# Installation **Add the package to your workspace:** ```bash yarn add
|
|
17
|
+
@rxap/open-api
|
|
18
|
+
```
|
|
19
|
+
**Install peer dependencies:** ```bash yarn add
|
|
20
|
+
@angular/common@^19.1.3 @angular/core@^19.1.3 @rxap/config@^19.0.1-dev.4 @rxap/data-source@^19.0.1-dev.4 @rxap/environment@^19.0.1-dev.4 @rxap/mixin@^16.0.12-dev.4 @rxap/remote-method@^19.0.1-dev.4 @rxap/rxjs@^1.1.12-dev.4 @rxap/utilities@^16.4.2-dev.4 ajv@^8.12.0 openapi-types@^10.0.0 rxjs@^7.8.1
|
|
21
|
+
```
|
|
22
|
+
**Execute the init generator:** ```bash yarn nx g
|
|
23
|
+
@rxap/open-api:init ```
|
|
24
|
+
# Generators
|
|
25
|
+
|
|
26
|
+
##
|
|
27
|
+
init
|
|
28
|
+
>
|
|
29
|
+
Initialize the package in the workspace
|
|
30
|
+
|
|
31
|
+
```bash nx g
|
|
32
|
+
@rxap/open-api:init
|
|
33
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[@rxap/open-api](../wiki/globals) / OpenApiInitOptions
|
|
2
|
+
|
|
3
|
+
# Interface: OpenApiInitOptions
|
|
4
|
+
|
|
5
|
+
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)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### load?
|
|
10
|
+
|
|
11
|
+
> `optional` **load**: `boolean` \| \{ `openApiUrl`: `string`; \}
|
|
12
|
+
|
|
13
|
+
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)
|
|
14
|
+
|
|
15
|
+
true - load the open api config file from the default url
|
|
16
|
+
default url: openapi.json
|
|
17
|
+
|
|
18
|
+
***
|
|
19
|
+
|
|
20
|
+
### origin?
|
|
21
|
+
|
|
22
|
+
> `optional` **origin**: `string`
|
|
23
|
+
|
|
24
|
+
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)
|
|
25
|
+
|
|
26
|
+
The location origin prefix for the open api base urls if the base url is not absolute. defaults to location.origin
|