@rxap/open-api 19.0.1-dev.4 → 19.0.1

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +24 -26
  3. package/compodoc/changelog.html +9 -0
  4. package/compodoc/dependencies.html +7 -7
  5. package/compodoc/index.html +26 -20
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/miscellaneous/variables.html +26 -0
  8. package/compodoc/properties.html +3 -2
  9. package/docs/documentation.json +737 -1472
  10. package/docs/html/assets/hierarchy.js +1 -0
  11. package/docs/{assets → html/assets}/highlight.css +13 -6
  12. package/docs/html/assets/icons.js +18 -0
  13. package/docs/html/assets/icons.svg +1 -0
  14. package/docs/{assets → html/assets}/main.js +5 -4
  15. package/docs/html/assets/navigation.js +1 -0
  16. package/docs/html/assets/search.js +1 -0
  17. package/docs/html/assets/style.css +1611 -0
  18. package/docs/html/classes/OpenApiConfigService.html +17 -0
  19. package/docs/html/classes/OpenApiHttpResponseError.html +22 -0
  20. package/docs/html/classes/RxapOpenApiError.html +26 -0
  21. package/docs/html/classes/SchemaValidationMixin.html +16 -0
  22. package/docs/html/functions/AssertOpenApiV3.html +1 -0
  23. package/docs/html/functions/IsOpenApiV3.html +1 -0
  24. package/docs/html/functions/IsReferenceObject.html +1 -0
  25. package/docs/html/functions/NotContainsReferenceObjects.html +1 -0
  26. package/docs/html/functions/OpenApiInit.html +1 -0
  27. package/docs/html/index.html +33 -0
  28. package/docs/html/interfaces/OpenApiInitOptions.html +6 -0
  29. package/docs/html/interfaces/OpenApiMetaData.html +9 -0
  30. package/docs/html/interfaces/OperationObjectWithMetadata.html +15 -0
  31. package/docs/html/interfaces/SchemaValidationResponse.html +5 -0
  32. package/docs/html/modules.html +1 -0
  33. package/docs/html/types/OperationMap.html +1 -0
  34. package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +1 -0
  35. package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +1 -0
  36. package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +1 -0
  37. package/docs/html/variables/DISABLE_VALIDATION.html +1 -0
  38. package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +1 -0
  39. package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +1 -0
  40. package/docs/markdown/README.md +37 -0
  41. package/docs/markdown/classes/OpenApiConfigService.md +217 -0
  42. package/docs/markdown/classes/OpenApiHttpResponseError.md +205 -0
  43. package/docs/markdown/classes/RxapOpenApiError.md +265 -0
  44. package/docs/markdown/classes/SchemaValidationMixin.md +258 -0
  45. package/docs/markdown/functions/AssertOpenApiV3.md +21 -0
  46. package/docs/markdown/functions/IsOpenApiV3.md +21 -0
  47. package/docs/markdown/functions/IsReferenceObject.md +21 -0
  48. package/docs/markdown/functions/NotContainsReferenceObjects.md +25 -0
  49. package/docs/markdown/functions/OpenApiInit.md +25 -0
  50. package/docs/markdown/globals.md +40 -0
  51. package/docs/markdown/interfaces/OpenApiInitOptions.md +30 -0
  52. package/docs/markdown/interfaces/OpenApiMetaData.md +71 -0
  53. package/docs/markdown/interfaces/OperationObjectWithMetadata.md +177 -0
  54. package/docs/markdown/interfaces/SchemaValidationResponse.md +45 -0
  55. package/docs/markdown/type-aliases/OperationMap.md +11 -0
  56. package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +11 -0
  57. package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +11 -0
  58. package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +11 -0
  59. package/docs/markdown/variables/DISABLE_VALIDATION.md +11 -0
  60. package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +11 -0
  61. package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +11 -0
  62. package/docs/wiki/Class.OpenApiConfigService.md +213 -0
  63. package/docs/wiki/Class.OpenApiHttpResponseError.md +201 -0
  64. package/docs/wiki/Class.RxapOpenApiError.md +261 -0
  65. package/docs/wiki/Class.SchemaValidationMixin.md +254 -0
  66. package/docs/wiki/Function.AssertOpenApiV3.md +17 -0
  67. package/docs/wiki/Function.IsOpenApiV3.md +17 -0
  68. package/docs/wiki/Function.IsReferenceObject.md +17 -0
  69. package/docs/wiki/Function.NotContainsReferenceObjects.md +21 -0
  70. package/docs/wiki/Function.OpenApiInit.md +21 -0
  71. package/docs/wiki/Home.md +33 -0
  72. package/docs/wiki/Interface.OpenApiInitOptions.md +26 -0
  73. package/docs/wiki/Interface.OpenApiMetaData.md +67 -0
  74. package/docs/wiki/Interface.OperationObjectWithMetadata.md +173 -0
  75. package/docs/wiki/Interface.SchemaValidationResponse.md +41 -0
  76. package/docs/wiki/TypeAlias.OperationMap.md +7 -0
  77. package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +7 -0
  78. package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +7 -0
  79. package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +7 -0
  80. package/docs/wiki/Variable.DISABLE_VALIDATION.md +7 -0
  81. package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +7 -0
  82. package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +7 -0
  83. package/docs/wiki/_Sidebar.md +36 -0
  84. package/docs/wiki/globals.md +36 -0
  85. package/package.json +22 -21
  86. package/docs/assets/icons.js +0 -15
  87. package/docs/assets/icons.svg +0 -1
  88. package/docs/assets/navigation.js +0 -1
  89. package/docs/assets/search.js +0 -1
  90. package/docs/assets/style.css +0 -1412
  91. package/docs/classes/OpenApiConfigService.html +0 -26
  92. package/docs/classes/OpenApiHttpResponseError.html +0 -22
  93. package/docs/classes/RxapOpenApiError.html +0 -26
  94. package/docs/classes/SchemaValidationMixin.html +0 -18
  95. package/docs/functions/AssertOpenApiV3.html +0 -1
  96. package/docs/functions/IsOpenApiV3.html +0 -1
  97. package/docs/functions/IsReferenceObject.html +0 -1
  98. package/docs/functions/NotContainsReferenceObjects.html +0 -1
  99. package/docs/functions/OpenApiInit.html +0 -1
  100. package/docs/index.html +0 -28
  101. package/docs/interfaces/OpenApiInitOptions.html +0 -6
  102. package/docs/interfaces/OpenApiMetaData.html +0 -9
  103. package/docs/interfaces/OperationObjectWithMetadata.html +0 -15
  104. package/docs/interfaces/SchemaValidationResponse.html +0 -5
  105. package/docs/modules.html +0 -21
  106. package/docs/types/OperationMap.html +0 -1
  107. package/docs/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +0 -1
  108. package/docs/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +0 -1
  109. package/docs/variables/DISABLE_SCHEMA_VALIDATION.html +0 -1
  110. package/docs/variables/DISABLE_VALIDATION.html +0 -1
  111. package/docs/variables/RXAP_OPEN_API_CONFIG.html +0 -1
  112. package/docs/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +0 -1
  113. /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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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
+ [![npm version](https://img.shields.io/npm/v/@rxap/open-api?style=flat-square)](https://www.npmjs.com/package/@rxap/open-api)
4
+ [![commitizen
5
+ friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/)
6
+ [![styled with
7
+ prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
8
+ ![Libraries.io dependency status for latest release, scoped npm
9
+ package](https://img.shields.io/librariesio/release/npm/@rxap/open-api)
10
+ ![npm](https://img.shields.io/npm/dm/@rxap/open-api)
11
+ ![NPM](https://img.shields.io/npm/l/@rxap/open-api) -
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.5 @rxap/data-source@^19.0.1-dev.5 @rxap/environment@^19.0.1-dev.5 @rxap/mixin@^16.0.12-dev.5 @rxap/remote-method@^19.0.1-dev.5 @rxap/rxjs@^1.1.12-dev.5 @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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/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