@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.
Files changed (110) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/compodoc/changelog.html +14 -0
  3. package/compodoc/classes/SchemaValidationMixin.html +37 -32
  4. package/compodoc/dependencies.html +2 -2
  5. package/compodoc/interfaces/SchemaValidationResponse.html +17 -12
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/miscellaneous/functions.html +223 -0
  8. package/compodoc/miscellaneous/variables.html +2 -1
  9. package/compodoc/properties.html +1 -1
  10. package/docs/documentation.json +650 -151
  11. package/docs/html/assets/navigation.js +1 -1
  12. package/docs/html/assets/search.js +1 -1
  13. package/docs/html/classes/OpenApiConfigService.html +3 -3
  14. package/docs/html/classes/OpenApiHttpResponseError.html +4 -4
  15. package/docs/html/classes/RxapOpenApiError.html +5 -5
  16. package/docs/html/classes/SchemaValidationMixin.html +5 -5
  17. package/docs/html/functions/AssertOpenApiV3.html +1 -1
  18. package/docs/html/functions/IsOpenApiV3.html +1 -1
  19. package/docs/html/functions/IsReferenceObject.html +1 -1
  20. package/docs/html/functions/NotContainsReferenceObjects.html +1 -1
  21. package/docs/html/functions/OpenApiInit.html +1 -1
  22. package/docs/html/functions/getJsonContentSchema.html +1 -0
  23. package/docs/html/functions/getJsonSchema.html +1 -0
  24. package/docs/html/functions/hasJsonContentSchema.html +1 -0
  25. package/docs/html/functions/hasJsonSchema.html +1 -0
  26. package/docs/html/functions/injectOpenApiBaseUrlHttpInterceptorFn.html +1 -1
  27. package/docs/html/index.html +2 -2
  28. package/docs/html/interfaces/OpenApiInitOptions.html +3 -3
  29. package/docs/html/interfaces/OpenApiMetaData.html +5 -5
  30. package/docs/html/interfaces/OperationObjectWithMetadata.html +2 -2
  31. package/docs/html/interfaces/SchemaValidationResponse.html +2 -2
  32. package/docs/html/modules.html +1 -1
  33. package/docs/html/types/OperationMap.html +1 -1
  34. package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +1 -1
  35. package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +1 -1
  36. package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +1 -1
  37. package/docs/html/variables/DISABLE_VALIDATION.html +1 -1
  38. package/docs/html/variables/OPEN_API_OPERATION.html +1 -1
  39. package/docs/html/variables/OPEN_API_OPERATION_ID.html +1 -1
  40. package/docs/html/variables/OPEN_API_SERVER_ID.html +1 -1
  41. package/docs/html/variables/OPEN_API_SERVER_INDEX.html +1 -1
  42. package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +1 -1
  43. package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +1 -1
  44. package/docs/markdown/README.md +1 -1
  45. package/docs/markdown/classes/OpenApiConfigService.md +14 -14
  46. package/docs/markdown/classes/OpenApiHttpResponseError.md +7 -7
  47. package/docs/markdown/classes/RxapOpenApiError.md +13 -13
  48. package/docs/markdown/classes/SchemaValidationMixin.md +13 -13
  49. package/docs/markdown/functions/AssertOpenApiV3.md +2 -2
  50. package/docs/markdown/functions/IsOpenApiV3.md +2 -2
  51. package/docs/markdown/functions/IsReferenceObject.md +2 -2
  52. package/docs/markdown/functions/NotContainsReferenceObjects.md +2 -2
  53. package/docs/markdown/functions/OpenApiInit.md +2 -2
  54. package/docs/markdown/functions/getJsonContentSchema.md +21 -0
  55. package/docs/markdown/functions/getJsonSchema.md +21 -0
  56. package/docs/markdown/functions/hasJsonContentSchema.md +25 -0
  57. package/docs/markdown/functions/hasJsonSchema.md +21 -0
  58. package/docs/markdown/functions/injectOpenApiBaseUrlHttpInterceptorFn.md +2 -2
  59. package/docs/markdown/globals.md +6 -2
  60. package/docs/markdown/interfaces/OpenApiInitOptions.md +4 -4
  61. package/docs/markdown/interfaces/OpenApiMetaData.md +7 -7
  62. package/docs/markdown/interfaces/OperationObjectWithMetadata.md +4 -4
  63. package/docs/markdown/interfaces/SchemaValidationResponse.md +6 -6
  64. package/docs/markdown/type-aliases/OperationMap.md +2 -2
  65. package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +2 -2
  66. package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +2 -2
  67. package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +2 -2
  68. package/docs/markdown/variables/DISABLE_VALIDATION.md +2 -2
  69. package/docs/markdown/variables/OPEN_API_OPERATION.md +2 -2
  70. package/docs/markdown/variables/OPEN_API_OPERATION_ID.md +2 -2
  71. package/docs/markdown/variables/OPEN_API_SERVER_ID.md +2 -2
  72. package/docs/markdown/variables/OPEN_API_SERVER_INDEX.md +2 -2
  73. package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +2 -2
  74. package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +2 -2
  75. package/docs/wiki/Class.OpenApiConfigService.md +13 -13
  76. package/docs/wiki/Class.OpenApiHttpResponseError.md +6 -6
  77. package/docs/wiki/Class.RxapOpenApiError.md +12 -12
  78. package/docs/wiki/Class.SchemaValidationMixin.md +12 -12
  79. package/docs/wiki/Function.AssertOpenApiV3.md +1 -1
  80. package/docs/wiki/Function.IsOpenApiV3.md +1 -1
  81. package/docs/wiki/Function.IsReferenceObject.md +1 -1
  82. package/docs/wiki/Function.NotContainsReferenceObjects.md +1 -1
  83. package/docs/wiki/Function.OpenApiInit.md +1 -1
  84. package/docs/wiki/Function.getJsonContentSchema.md +17 -0
  85. package/docs/wiki/Function.getJsonSchema.md +17 -0
  86. package/docs/wiki/Function.hasJsonContentSchema.md +21 -0
  87. package/docs/wiki/Function.hasJsonSchema.md +17 -0
  88. package/docs/wiki/Function.injectOpenApiBaseUrlHttpInterceptorFn.md +1 -1
  89. package/docs/wiki/Interface.OpenApiInitOptions.md +3 -3
  90. package/docs/wiki/Interface.OpenApiMetaData.md +6 -6
  91. package/docs/wiki/Interface.OperationObjectWithMetadata.md +3 -3
  92. package/docs/wiki/Interface.SchemaValidationResponse.md +5 -5
  93. package/docs/wiki/TypeAlias.OperationMap.md +1 -1
  94. package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +1 -1
  95. package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +1 -1
  96. package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +1 -1
  97. package/docs/wiki/Variable.DISABLE_VALIDATION.md +1 -1
  98. package/docs/wiki/Variable.OPEN_API_OPERATION.md +1 -1
  99. package/docs/wiki/Variable.OPEN_API_OPERATION_ID.md +1 -1
  100. package/docs/wiki/Variable.OPEN_API_SERVER_ID.md +1 -1
  101. package/docs/wiki/Variable.OPEN_API_SERVER_INDEX.md +1 -1
  102. package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +1 -1
  103. package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +1 -1
  104. package/docs/wiki/_Sidebar.md +4 -0
  105. package/docs/wiki/globals.md +5 -1
  106. package/fesm2022/rxap-open-api.mjs +47 -14
  107. package/fesm2022/rxap-open-api.mjs.map +1 -1
  108. package/http-resource/lib/types.d.ts +1 -1
  109. package/lib/utilities.d.ts +6 -0
  110. 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>&nbsp;&nbsp;&nbsp;(src/.../utilities.ts)</a>
116
116
  </li>
117
+ <li>
118
+ <a href="#getJsonContentSchema" title="src/lib/utilities.ts" ><b>getJsonContentSchema</b>&nbsp;&nbsp;&nbsp;(src/.../utilities.ts)</a>
119
+ </li>
120
+ <li>
121
+ <a href="#getJsonSchema" title="src/lib/utilities.ts" ><b>getJsonSchema</b>&nbsp;&nbsp;&nbsp;(src/.../utilities.ts)</a>
122
+ </li>
123
+ <li>
124
+ <a href="#hasJsonContentSchema" title="src/lib/utilities.ts" ><b>hasJsonContentSchema</b>&nbsp;&nbsp;&nbsp;(src/.../utilities.ts)</a>
125
+ </li>
126
+ <li>
127
+ <a href="#hasJsonSchema" title="src/lib/utilities.ts" ><b>hasJsonSchema</b>&nbsp;&nbsp;&nbsp;(src/.../utilities.ts)</a>
128
+ </li>
117
129
  <li>
118
130
  <a href="#initGenerator" title="src/generators/init/generator.ts" ><b>initGenerator</b>&nbsp;&nbsp;&nbsp;(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(&#x60;The url ${req.url} is not a valid url for the server ${serverId}. Expected base url ${baseUrl}&#x60;);
320
320
  }
321
321
  } else {
322
- return next(req.clone({ url: new URL(req.url, baseUrl).toString() }));
322
+ const url &#x3D; JoinPath(baseUrl, req.url);
323
+ return next(req.clone({ url }));
323
324
  }
324
325
  }
325
326
 
@@ -102,7 +102,7 @@
102
102
  </ol>
103
103
  <ul class="properties-list">
104
104
  <li>
105
- <b>Version</b> : 19.3.0-dev.0</li>
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>