@rxap/open-api 19.3.0-dev.0 → 19.3.0-dev.2
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 +16 -0
- package/compodoc/changelog.html +14 -0
- package/compodoc/classes/SchemaValidationMixin.html +37 -32
- package/compodoc/dependencies.html +2 -2
- package/compodoc/interfaces/SchemaValidationResponse.html +17 -12
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +223 -0
- package/compodoc/miscellaneous/variables.html +2 -1
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +650 -151
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/OpenApiConfigService.html +3 -3
- package/docs/html/classes/OpenApiHttpResponseError.html +4 -4
- package/docs/html/classes/RxapOpenApiError.html +5 -5
- package/docs/html/classes/SchemaValidationMixin.html +5 -5
- package/docs/html/functions/AssertOpenApiV3.html +1 -1
- package/docs/html/functions/IsOpenApiV3.html +1 -1
- package/docs/html/functions/IsReferenceObject.html +1 -1
- package/docs/html/functions/NotContainsReferenceObjects.html +1 -1
- package/docs/html/functions/OpenApiInit.html +1 -1
- package/docs/html/functions/getJsonContentSchema.html +1 -0
- package/docs/html/functions/getJsonSchema.html +1 -0
- package/docs/html/functions/hasJsonContentSchema.html +1 -0
- package/docs/html/functions/hasJsonSchema.html +1 -0
- package/docs/html/functions/injectOpenApiBaseUrlHttpInterceptorFn.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/OpenApiInitOptions.html +3 -3
- package/docs/html/interfaces/OpenApiMetaData.html +5 -5
- package/docs/html/interfaces/OperationObjectWithMetadata.html +2 -2
- package/docs/html/interfaces/SchemaValidationResponse.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/OperationMap.html +1 -1
- package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +1 -1
- package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +1 -1
- package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +1 -1
- package/docs/html/variables/DISABLE_VALIDATION.html +1 -1
- package/docs/html/variables/OPEN_API_OPERATION.html +1 -1
- package/docs/html/variables/OPEN_API_OPERATION_ID.html +1 -1
- package/docs/html/variables/OPEN_API_SERVER_ID.html +1 -1
- package/docs/html/variables/OPEN_API_SERVER_INDEX.html +1 -1
- package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +1 -1
- package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/OpenApiConfigService.md +14 -14
- package/docs/markdown/classes/OpenApiHttpResponseError.md +7 -7
- package/docs/markdown/classes/RxapOpenApiError.md +13 -13
- package/docs/markdown/classes/SchemaValidationMixin.md +13 -13
- package/docs/markdown/functions/AssertOpenApiV3.md +2 -2
- package/docs/markdown/functions/IsOpenApiV3.md +2 -2
- package/docs/markdown/functions/IsReferenceObject.md +2 -2
- package/docs/markdown/functions/NotContainsReferenceObjects.md +2 -2
- package/docs/markdown/functions/OpenApiInit.md +2 -2
- package/docs/markdown/functions/getJsonContentSchema.md +21 -0
- package/docs/markdown/functions/getJsonSchema.md +21 -0
- package/docs/markdown/functions/hasJsonContentSchema.md +25 -0
- package/docs/markdown/functions/hasJsonSchema.md +21 -0
- package/docs/markdown/functions/injectOpenApiBaseUrlHttpInterceptorFn.md +2 -2
- package/docs/markdown/globals.md +6 -2
- package/docs/markdown/interfaces/OpenApiInitOptions.md +4 -4
- package/docs/markdown/interfaces/OpenApiMetaData.md +7 -7
- package/docs/markdown/interfaces/OperationObjectWithMetadata.md +4 -4
- package/docs/markdown/interfaces/SchemaValidationResponse.md +6 -6
- package/docs/markdown/type-aliases/OperationMap.md +2 -2
- package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +2 -2
- package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +2 -2
- package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +2 -2
- package/docs/markdown/variables/DISABLE_VALIDATION.md +2 -2
- package/docs/markdown/variables/OPEN_API_OPERATION.md +2 -2
- package/docs/markdown/variables/OPEN_API_OPERATION_ID.md +2 -2
- package/docs/markdown/variables/OPEN_API_SERVER_ID.md +2 -2
- package/docs/markdown/variables/OPEN_API_SERVER_INDEX.md +2 -2
- package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +2 -2
- package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +2 -2
- package/docs/wiki/Class.OpenApiConfigService.md +13 -13
- package/docs/wiki/Class.OpenApiHttpResponseError.md +6 -6
- package/docs/wiki/Class.RxapOpenApiError.md +12 -12
- package/docs/wiki/Class.SchemaValidationMixin.md +12 -12
- package/docs/wiki/Function.AssertOpenApiV3.md +1 -1
- package/docs/wiki/Function.IsOpenApiV3.md +1 -1
- package/docs/wiki/Function.IsReferenceObject.md +1 -1
- package/docs/wiki/Function.NotContainsReferenceObjects.md +1 -1
- package/docs/wiki/Function.OpenApiInit.md +1 -1
- package/docs/wiki/Function.getJsonContentSchema.md +17 -0
- package/docs/wiki/Function.getJsonSchema.md +17 -0
- package/docs/wiki/Function.hasJsonContentSchema.md +21 -0
- package/docs/wiki/Function.hasJsonSchema.md +17 -0
- package/docs/wiki/Function.injectOpenApiBaseUrlHttpInterceptorFn.md +1 -1
- package/docs/wiki/Interface.OpenApiInitOptions.md +3 -3
- package/docs/wiki/Interface.OpenApiMetaData.md +6 -6
- package/docs/wiki/Interface.OperationObjectWithMetadata.md +3 -3
- package/docs/wiki/Interface.SchemaValidationResponse.md +5 -5
- package/docs/wiki/TypeAlias.OperationMap.md +1 -1
- package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +1 -1
- package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +1 -1
- package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +1 -1
- package/docs/wiki/Variable.DISABLE_VALIDATION.md +1 -1
- package/docs/wiki/Variable.OPEN_API_OPERATION.md +1 -1
- package/docs/wiki/Variable.OPEN_API_OPERATION_ID.md +1 -1
- package/docs/wiki/Variable.OPEN_API_SERVER_ID.md +1 -1
- package/docs/wiki/Variable.OPEN_API_SERVER_INDEX.md +1 -1
- package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +1 -1
- package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +1 -1
- package/docs/wiki/_Sidebar.md +4 -0
- package/docs/wiki/globals.md +5 -1
- package/fesm2022/rxap-open-api.mjs +47 -14
- package/fesm2022/rxap-open-api.mjs.map +1 -1
- package/http-resource/lib/types.d.ts +1 -1
- package/lib/utilities.d.ts +6 -0
- package/package.json +6 -6
|
@@ -114,6 +114,18 @@
|
|
|
114
114
|
<li>
|
|
115
115
|
<a href="#AssertOpenApiV3" title="src/lib/utilities.ts" ><b>AssertOpenApiV3</b> (src/.../utilities.ts)</a>
|
|
116
116
|
</li>
|
|
117
|
+
<li>
|
|
118
|
+
<a href="#getJsonContentSchema" title="src/lib/utilities.ts" ><b>getJsonContentSchema</b> (src/.../utilities.ts)</a>
|
|
119
|
+
</li>
|
|
120
|
+
<li>
|
|
121
|
+
<a href="#getJsonSchema" title="src/lib/utilities.ts" ><b>getJsonSchema</b> (src/.../utilities.ts)</a>
|
|
122
|
+
</li>
|
|
123
|
+
<li>
|
|
124
|
+
<a href="#hasJsonContentSchema" title="src/lib/utilities.ts" ><b>hasJsonContentSchema</b> (src/.../utilities.ts)</a>
|
|
125
|
+
</li>
|
|
126
|
+
<li>
|
|
127
|
+
<a href="#hasJsonSchema" title="src/lib/utilities.ts" ><b>hasJsonSchema</b> (src/.../utilities.ts)</a>
|
|
128
|
+
</li>
|
|
117
129
|
<li>
|
|
118
130
|
<a href="#initGenerator" title="src/generators/init/generator.ts" ><b>initGenerator</b> (src/.../generator.ts)</a>
|
|
119
131
|
</li>
|
|
@@ -199,6 +211,217 @@
|
|
|
199
211
|
</tr>
|
|
200
212
|
</tbody>
|
|
201
213
|
</table>
|
|
214
|
+
<table class="table table-sm table-bordered">
|
|
215
|
+
<tbody>
|
|
216
|
+
<tr>
|
|
217
|
+
<td class="col-md-4">
|
|
218
|
+
<a name="getJsonContentSchema"></a>
|
|
219
|
+
<span class="name">
|
|
220
|
+
<span ><b>getJsonContentSchema</b></span>
|
|
221
|
+
<a href="#getJsonContentSchema"><span class="icon ion-ios-link"></span></a>
|
|
222
|
+
</span>
|
|
223
|
+
</td>
|
|
224
|
+
</tr>
|
|
225
|
+
<tr>
|
|
226
|
+
<td class="col-md-4">
|
|
227
|
+
<code>getJsonContentSchema(data)</code>
|
|
228
|
+
</td>
|
|
229
|
+
</tr>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
<tr>
|
|
235
|
+
<td class="col-md-4">
|
|
236
|
+
|
|
237
|
+
<div class="io-description">
|
|
238
|
+
<b>Parameters :</b>
|
|
239
|
+
|
|
240
|
+
<table class="params">
|
|
241
|
+
<thead>
|
|
242
|
+
<tr>
|
|
243
|
+
<td>Name</td>
|
|
244
|
+
<td>Optional</td>
|
|
245
|
+
</tr>
|
|
246
|
+
</thead>
|
|
247
|
+
<tbody>
|
|
248
|
+
<tr>
|
|
249
|
+
<td>data</td>
|
|
250
|
+
|
|
251
|
+
<td>
|
|
252
|
+
No
|
|
253
|
+
</td>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
</tr>
|
|
257
|
+
</tbody>
|
|
258
|
+
</table>
|
|
259
|
+
</div>
|
|
260
|
+
<div class="io-description">
|
|
261
|
+
<b>Returns : </b> <code>OpenAPIV3.SchemaObject | null</code>
|
|
262
|
+
|
|
263
|
+
</div>
|
|
264
|
+
<div class="io-description">
|
|
265
|
+
|
|
266
|
+
</div>
|
|
267
|
+
</td>
|
|
268
|
+
</tr>
|
|
269
|
+
</tbody>
|
|
270
|
+
</table>
|
|
271
|
+
<table class="table table-sm table-bordered">
|
|
272
|
+
<tbody>
|
|
273
|
+
<tr>
|
|
274
|
+
<td class="col-md-4">
|
|
275
|
+
<a name="getJsonSchema"></a>
|
|
276
|
+
<span class="name">
|
|
277
|
+
<span ><b>getJsonSchema</b></span>
|
|
278
|
+
<a href="#getJsonSchema"><span class="icon ion-ios-link"></span></a>
|
|
279
|
+
</span>
|
|
280
|
+
</td>
|
|
281
|
+
</tr>
|
|
282
|
+
<tr>
|
|
283
|
+
<td class="col-md-4">
|
|
284
|
+
<code>getJsonSchema(map: Record)</code>
|
|
285
|
+
</td>
|
|
286
|
+
</tr>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
<tr>
|
|
292
|
+
<td class="col-md-4">
|
|
293
|
+
|
|
294
|
+
<div class="io-description">
|
|
295
|
+
<b>Parameters :</b>
|
|
296
|
+
|
|
297
|
+
<table class="params">
|
|
298
|
+
<thead>
|
|
299
|
+
<tr>
|
|
300
|
+
<td>Name</td>
|
|
301
|
+
<td>Type</td>
|
|
302
|
+
<td>Optional</td>
|
|
303
|
+
</tr>
|
|
304
|
+
</thead>
|
|
305
|
+
<tbody>
|
|
306
|
+
<tr>
|
|
307
|
+
<td>map</td>
|
|
308
|
+
<td>
|
|
309
|
+
<code>Record</code>
|
|
310
|
+
</td>
|
|
311
|
+
|
|
312
|
+
<td>
|
|
313
|
+
No
|
|
314
|
+
</td>
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
</tr>
|
|
318
|
+
</tbody>
|
|
319
|
+
</table>
|
|
320
|
+
</div>
|
|
321
|
+
</td>
|
|
322
|
+
</tr>
|
|
323
|
+
</tbody>
|
|
324
|
+
</table>
|
|
325
|
+
<table class="table table-sm table-bordered">
|
|
326
|
+
<tbody>
|
|
327
|
+
<tr>
|
|
328
|
+
<td class="col-md-4">
|
|
329
|
+
<a name="hasJsonContentSchema"></a>
|
|
330
|
+
<span class="name">
|
|
331
|
+
<span ><b>hasJsonContentSchema</b></span>
|
|
332
|
+
<a href="#hasJsonContentSchema"><span class="icon ion-ios-link"></span></a>
|
|
333
|
+
</span>
|
|
334
|
+
</td>
|
|
335
|
+
</tr>
|
|
336
|
+
<tr>
|
|
337
|
+
<td class="col-md-4">
|
|
338
|
+
<code>hasJsonContentSchema(data)</code>
|
|
339
|
+
</td>
|
|
340
|
+
</tr>
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
<tr>
|
|
346
|
+
<td class="col-md-4">
|
|
347
|
+
|
|
348
|
+
<div class="io-description">
|
|
349
|
+
<b>Parameters :</b>
|
|
350
|
+
|
|
351
|
+
<table class="params">
|
|
352
|
+
<thead>
|
|
353
|
+
<tr>
|
|
354
|
+
<td>Name</td>
|
|
355
|
+
<td>Optional</td>
|
|
356
|
+
</tr>
|
|
357
|
+
</thead>
|
|
358
|
+
<tbody>
|
|
359
|
+
<tr>
|
|
360
|
+
<td>data</td>
|
|
361
|
+
|
|
362
|
+
<td>
|
|
363
|
+
No
|
|
364
|
+
</td>
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
</tr>
|
|
368
|
+
</tbody>
|
|
369
|
+
</table>
|
|
370
|
+
</div>
|
|
371
|
+
</td>
|
|
372
|
+
</tr>
|
|
373
|
+
</tbody>
|
|
374
|
+
</table>
|
|
375
|
+
<table class="table table-sm table-bordered">
|
|
376
|
+
<tbody>
|
|
377
|
+
<tr>
|
|
378
|
+
<td class="col-md-4">
|
|
379
|
+
<a name="hasJsonSchema"></a>
|
|
380
|
+
<span class="name">
|
|
381
|
+
<span ><b>hasJsonSchema</b></span>
|
|
382
|
+
<a href="#hasJsonSchema"><span class="icon ion-ios-link"></span></a>
|
|
383
|
+
</span>
|
|
384
|
+
</td>
|
|
385
|
+
</tr>
|
|
386
|
+
<tr>
|
|
387
|
+
<td class="col-md-4">
|
|
388
|
+
<code>hasJsonSchema(map)</code>
|
|
389
|
+
</td>
|
|
390
|
+
</tr>
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
<tr>
|
|
396
|
+
<td class="col-md-4">
|
|
397
|
+
|
|
398
|
+
<div class="io-description">
|
|
399
|
+
<b>Parameters :</b>
|
|
400
|
+
|
|
401
|
+
<table class="params">
|
|
402
|
+
<thead>
|
|
403
|
+
<tr>
|
|
404
|
+
<td>Name</td>
|
|
405
|
+
<td>Optional</td>
|
|
406
|
+
</tr>
|
|
407
|
+
</thead>
|
|
408
|
+
<tbody>
|
|
409
|
+
<tr>
|
|
410
|
+
<td>map</td>
|
|
411
|
+
|
|
412
|
+
<td>
|
|
413
|
+
No
|
|
414
|
+
</td>
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
</tr>
|
|
418
|
+
</tbody>
|
|
419
|
+
</table>
|
|
420
|
+
</div>
|
|
421
|
+
</td>
|
|
422
|
+
</tr>
|
|
423
|
+
</tbody>
|
|
424
|
+
</table>
|
|
202
425
|
<table class="table table-sm table-bordered">
|
|
203
426
|
<tbody>
|
|
204
427
|
<tr>
|
|
@@ -319,7 +319,8 @@
|
|
|
319
319
|
console.warn(`The url ${req.url} is not a valid url for the server ${serverId}. Expected base url ${baseUrl}`);
|
|
320
320
|
}
|
|
321
321
|
} else {
|
|
322
|
-
|
|
322
|
+
const url = JoinPath(baseUrl, req.url);
|
|
323
|
+
return next(req.clone({ url }));
|
|
323
324
|
}
|
|
324
325
|
}
|
|
325
326
|
|
package/compodoc/properties.html
CHANGED
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</ol>
|
|
103
103
|
<ul class="properties-list">
|
|
104
104
|
<li>
|
|
105
|
-
<b>Version</b> : 19.3.0-dev.
|
|
105
|
+
<b>Version</b> : 19.3.0-dev.2</li>
|
|
106
106
|
<li>
|
|
107
107
|
<b>Description</b> : 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.
|
|
108
108
|
</li>
|