@rxap/open-api 19.1.0 → 19.2.0-dev.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 (79) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/compodoc/changelog.html +7 -0
  3. package/compodoc/classes/SchemaValidationMixin.html +17 -22
  4. package/compodoc/dependencies.html +7 -7
  5. package/compodoc/interfaces/SchemaValidationResponse.html +13 -18
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/properties.html +1 -1
  8. package/docs/documentation.json +112 -112
  9. package/docs/html/classes/OpenApiConfigService.html +3 -3
  10. package/docs/html/classes/OpenApiHttpResponseError.html +4 -4
  11. package/docs/html/classes/RxapOpenApiError.html +5 -5
  12. package/docs/html/classes/SchemaValidationMixin.html +5 -5
  13. package/docs/html/functions/AssertOpenApiV3.html +1 -1
  14. package/docs/html/functions/IsOpenApiV3.html +1 -1
  15. package/docs/html/functions/IsReferenceObject.html +1 -1
  16. package/docs/html/functions/NotContainsReferenceObjects.html +1 -1
  17. package/docs/html/functions/OpenApiInit.html +1 -1
  18. package/docs/html/index.html +2 -2
  19. package/docs/html/interfaces/OpenApiInitOptions.html +3 -3
  20. package/docs/html/interfaces/OpenApiMetaData.html +5 -5
  21. package/docs/html/interfaces/OperationObjectWithMetadata.html +2 -2
  22. package/docs/html/interfaces/SchemaValidationResponse.html +2 -2
  23. package/docs/html/modules.html +1 -1
  24. package/docs/html/types/OperationMap.html +1 -1
  25. package/docs/html/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.html +1 -1
  26. package/docs/html/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.html +1 -1
  27. package/docs/html/variables/DISABLE_SCHEMA_VALIDATION.html +1 -1
  28. package/docs/html/variables/DISABLE_VALIDATION.html +1 -1
  29. package/docs/html/variables/RXAP_OPEN_API_CONFIG.html +1 -1
  30. package/docs/html/variables/RXAP_OPEN_API_STRICT_VALIDATOR.html +1 -1
  31. package/docs/markdown/README.md +1 -1
  32. package/docs/markdown/classes/OpenApiConfigService.md +14 -14
  33. package/docs/markdown/classes/OpenApiHttpResponseError.md +7 -7
  34. package/docs/markdown/classes/RxapOpenApiError.md +13 -13
  35. package/docs/markdown/classes/SchemaValidationMixin.md +12 -12
  36. package/docs/markdown/functions/AssertOpenApiV3.md +2 -2
  37. package/docs/markdown/functions/IsOpenApiV3.md +2 -2
  38. package/docs/markdown/functions/IsReferenceObject.md +2 -2
  39. package/docs/markdown/functions/NotContainsReferenceObjects.md +2 -2
  40. package/docs/markdown/functions/OpenApiInit.md +2 -2
  41. package/docs/markdown/globals.md +2 -2
  42. package/docs/markdown/interfaces/OpenApiInitOptions.md +4 -4
  43. package/docs/markdown/interfaces/OpenApiMetaData.md +7 -7
  44. package/docs/markdown/interfaces/OperationObjectWithMetadata.md +4 -4
  45. package/docs/markdown/interfaces/SchemaValidationResponse.md +6 -6
  46. package/docs/markdown/type-aliases/OperationMap.md +2 -2
  47. package/docs/markdown/variables/DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +2 -2
  48. package/docs/markdown/variables/DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +2 -2
  49. package/docs/markdown/variables/DISABLE_SCHEMA_VALIDATION.md +2 -2
  50. package/docs/markdown/variables/DISABLE_VALIDATION.md +2 -2
  51. package/docs/markdown/variables/RXAP_OPEN_API_CONFIG.md +2 -2
  52. package/docs/markdown/variables/RXAP_OPEN_API_STRICT_VALIDATOR.md +2 -2
  53. package/docs/wiki/Class.OpenApiConfigService.md +13 -13
  54. package/docs/wiki/Class.OpenApiHttpResponseError.md +6 -6
  55. package/docs/wiki/Class.RxapOpenApiError.md +12 -12
  56. package/docs/wiki/Class.SchemaValidationMixin.md +11 -11
  57. package/docs/wiki/Function.AssertOpenApiV3.md +1 -1
  58. package/docs/wiki/Function.IsOpenApiV3.md +1 -1
  59. package/docs/wiki/Function.IsReferenceObject.md +1 -1
  60. package/docs/wiki/Function.NotContainsReferenceObjects.md +1 -1
  61. package/docs/wiki/Function.OpenApiInit.md +1 -1
  62. package/docs/wiki/Interface.OpenApiInitOptions.md +3 -3
  63. package/docs/wiki/Interface.OpenApiMetaData.md +6 -6
  64. package/docs/wiki/Interface.OperationObjectWithMetadata.md +3 -3
  65. package/docs/wiki/Interface.SchemaValidationResponse.md +5 -5
  66. package/docs/wiki/TypeAlias.OperationMap.md +1 -1
  67. package/docs/wiki/Variable.DEFAULT_OPEN_API_DATA_SOURCE_META_DATA.md +1 -1
  68. package/docs/wiki/Variable.DEFAULT_OPEN_API_REMOTE_METHOD_META_DATA.md +1 -1
  69. package/docs/wiki/Variable.DISABLE_SCHEMA_VALIDATION.md +1 -1
  70. package/docs/wiki/Variable.DISABLE_VALIDATION.md +1 -1
  71. package/docs/wiki/Variable.RXAP_OPEN_API_CONFIG.md +1 -1
  72. package/docs/wiki/Variable.RXAP_OPEN_API_STRICT_VALIDATOR.md +1 -1
  73. package/docs/wiki/globals.md +1 -1
  74. package/fesm2022/rxap-open-api-testing.mjs +8 -3
  75. package/fesm2022/rxap-open-api-testing.mjs.map +1 -1
  76. package/fesm2022/rxap-open-api.mjs +12 -8
  77. package/fesm2022/rxap-open-api.mjs.map +1 -1
  78. package/package.json +24 -24
  79. package/testing/lib/provide-method-mock.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [19.2.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/open-api@19.2.0-dev.0...@rxap/open-api@19.2.0-dev.1) (2025-09-12)
7
+
8
+ **Note:** Version bump only for package @rxap/open-api
9
+
10
+ # [19.2.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/open-api@19.1.0...@rxap/open-api@19.2.0-dev.0) (2025-08-18)
11
+
12
+ ### Features
13
+
14
+ - **testing:** add default parameters support for method mock ([5ccbec5](https://gitlab.com/rxap/packages/commit/5ccbec50962813cb3cd60368abcb529710f41fa1))
15
+
6
16
  # [19.1.0](https://gitlab.com/rxap/packages/compare/@rxap/open-api@19.1.0-dev.2...@rxap/open-api@19.1.0) (2025-05-16)
7
17
 
8
18
  **Note:** Version bump only for package @rxap/open-api
@@ -85,6 +85,13 @@
85
85
  <h1>Change Log</h1>
86
86
  <p>All notable changes to this project will be documented in this file.
87
87
  See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
88
+ <h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/open-api@19.2.0-dev.0...@rxap/open-api@19.2.0-dev.1">19.2.0-dev.1</a> (2025-09-12)</h1>
89
+ <p><strong>Note:</strong> Version bump only for package @rxap/open-api</p>
90
+ <h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/open-api@19.1.0...@rxap/open-api@19.2.0-dev.0">19.2.0-dev.0</a> (2025-08-18)</h1>
91
+ <h3>Features</h3>
92
+ <ul>
93
+ <li><strong>testing:</strong> add default parameters support for method mock (<a href="https://gitlab.com/rxap/packages/commit/5ccbec50962813cb3cd60368abcb529710f41fa1">5ccbec5</a>)</li>
94
+ </ul>
88
95
  <h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/open-api@19.1.0-dev.2...@rxap/open-api@19.1.0">19.1.0</a> (2025-05-16)</h1>
89
96
  <p><strong>Note:</strong> Version bump only for package @rxap/open-api</p>
90
97
  <h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/open-api@19.1.0-dev.1...@rxap/open-api@19.1.0-dev.2">19.1.0-dev.2</a> (2025-05-06)</h1>
@@ -374,8 +374,8 @@
374
374
 
375
375
  <tr>
376
376
  <td class="col-md-4">
377
- <div class="io-line">Defined in <a href="" data-line="367"
378
- class="link-to-prism">src/lib/schema-validation.mixin.ts:367</a></div>
377
+ <div class="io-line">Defined in <a href="" data-line="362"
378
+ class="link-to-prism">src/lib/schema-validation.mixin.ts:362</a></div>
379
379
  </td>
380
380
  </tr>
381
381
 
@@ -591,8 +591,8 @@ create a http request. The transformation is guided by the openapi definition</p
591
591
 
592
592
  <tr>
593
593
  <td class="col-md-4">
594
- <div class="io-line">Defined in <a href="" data-line="333"
595
- class="link-to-prism">src/lib/schema-validation.mixin.ts:333</a></div>
594
+ <div class="io-line">Defined in <a href="" data-line="328"
595
+ class="link-to-prism">src/lib/schema-validation.mixin.ts:328</a></div>
596
596
  </td>
597
597
  </tr>
598
598
 
@@ -1363,41 +1363,36 @@ export class SchemaValidationMixin&lt;Response &#x3D; any, Parameters extends Re
1363
1363
 
1364
1364
  public buildHttpHeaders(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): HttpHeaders {
1365
1365
 
1366
- let headers &#x3D; new HttpHeaders();
1366
+ const headers: Record&lt;string, string | number | string[] | number[]&gt; &#x3D; {};
1367
1367
 
1368
1368
  if (IsRecord(parameters)) {
1369
1369
 
1370
- for (const parameter of operationParameters.filter(p &#x3D;&gt; p.in &#x3D;&#x3D;&#x3D; &#x27;header&#x27;)) {
1371
-
1370
+ for (const parameter of operationParameters.filter((p) &#x3D;&gt; p.in &#x3D;&#x3D;&#x3D; &#x27;header&#x27;)) {
1372
1371
  if (parameters.hasOwnProperty(parameter.name)) {
1373
-
1374
1372
  const value &#x3D; parameters[parameter.name];
1375
1373
 
1376
1374
  if (Array.isArray(value)) {
1377
-
1378
1375
  if (value.length) {
1379
-
1380
- const first &#x3D; value.shift();
1381
-
1382
- headers &#x3D; headers.set(parameters[&#x27;name&#x27;], typeof first &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(first) : first);
1383
-
1384
- for (const item of value) {
1385
- headers &#x3D; headers.append(parameters[&#x27;name&#x27;], typeof item &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(item) : item);
1376
+ if (value.length &#x3D;&#x3D;&#x3D; 1) {
1377
+ const first &#x3D; value.shift();
1378
+ headers[parameter.name] &#x3D;
1379
+ typeof first &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(first) : first;
1380
+ } else {
1381
+ headers[parameter.name] &#x3D; value.map((item) &#x3D;&gt;
1382
+ typeof item &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(item) : item
1383
+ );
1386
1384
  }
1387
-
1388
1385
  }
1389
-
1390
1386
  } else {
1391
- headers &#x3D; headers.set(parameter.name, typeof value &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(value) : value);
1387
+ headers[parameter.name] &#x3D;
1388
+ typeof value &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(value) : value;
1392
1389
  }
1393
-
1394
1390
  }
1395
-
1396
1391
  }
1397
1392
 
1398
1393
  }
1399
1394
 
1400
- return headers;
1395
+ return new HttpHeaders(headers);
1401
1396
 
1402
1397
  }
1403
1398
 
@@ -117,19 +117,19 @@
117
117
  <li>
118
118
  <b>@angular/core</b> : ^19.2.1</li>
119
119
  <li>
120
- <b>@rxap/config</b> : ^19.1.0-dev.3</li>
120
+ <b>@rxap/config</b> : ^19.2.0-dev.0</li>
121
121
  <li>
122
- <b>@rxap/data-source</b> : ^19.1.0-dev.2</li>
122
+ <b>@rxap/data-source</b> : ^19.1.1-dev.1</li>
123
123
  <li>
124
- <b>@rxap/environment</b> : ^19.0.4-dev.1</li>
124
+ <b>@rxap/environment</b> : ^19.0.4</li>
125
125
  <li>
126
- <b>@rxap/mixin</b> : ^16.0.14-dev.0</li>
126
+ <b>@rxap/mixin</b> : ^16.0.15-dev.1</li>
127
127
  <li>
128
- <b>@rxap/remote-method</b> : ^19.0.4-dev.0</li>
128
+ <b>@rxap/remote-method</b> : ^19.1.0-dev.0</li>
129
129
  <li>
130
- <b>@rxap/rxjs</b> : ^1.1.16-dev.0</li>
130
+ <b>@rxap/rxjs</b> : ^1.1.16</li>
131
131
  <li>
132
- <b>@rxap/utilities</b> : ^16.4.4-dev.0</li>
132
+ <b>@rxap/utilities</b> : ^16.4.5-dev.0</li>
133
133
  <li>
134
134
  <b>ajv</b> : ^8.12.0</li>
135
135
  <li>
@@ -618,41 +618,36 @@ export class SchemaValidationMixin&lt;Response &#x3D; any, Parameters extends Re
618
618
 
619
619
  public buildHttpHeaders(operationParameters: OpenAPIV3.ParameterObject[], parameters?: Parameters): HttpHeaders {
620
620
 
621
- let headers &#x3D; new HttpHeaders();
621
+ const headers: Record&lt;string, string | number | string[] | number[]&gt; &#x3D; {};
622
622
 
623
623
  if (IsRecord(parameters)) {
624
624
 
625
- for (const parameter of operationParameters.filter(p &#x3D;&gt; p.in &#x3D;&#x3D;&#x3D; &#x27;header&#x27;)) {
626
-
625
+ for (const parameter of operationParameters.filter((p) &#x3D;&gt; p.in &#x3D;&#x3D;&#x3D; &#x27;header&#x27;)) {
627
626
  if (parameters.hasOwnProperty(parameter.name)) {
628
-
629
627
  const value &#x3D; parameters[parameter.name];
630
628
 
631
629
  if (Array.isArray(value)) {
632
-
633
630
  if (value.length) {
634
-
635
- const first &#x3D; value.shift();
636
-
637
- headers &#x3D; headers.set(parameters[&#x27;name&#x27;], typeof first &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(first) : first);
638
-
639
- for (const item of value) {
640
- headers &#x3D; headers.append(parameters[&#x27;name&#x27;], typeof item &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(item) : item);
631
+ if (value.length &#x3D;&#x3D;&#x3D; 1) {
632
+ const first &#x3D; value.shift();
633
+ headers[parameter.name] &#x3D;
634
+ typeof first &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(first) : first;
635
+ } else {
636
+ headers[parameter.name] &#x3D; value.map((item) &#x3D;&gt;
637
+ typeof item &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(item) : item
638
+ );
641
639
  }
642
-
643
640
  }
644
-
645
641
  } else {
646
- headers &#x3D; headers.set(parameter.name, typeof value &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(value) : value);
642
+ headers[parameter.name] &#x3D;
643
+ typeof value &#x3D;&#x3D;&#x3D; &#x27;object&#x27; ? JSON.stringify(value) : value;
647
644
  }
648
-
649
645
  }
650
-
651
646
  }
652
647
 
653
648
  }
654
649
 
655
- return headers;
650
+ return new HttpHeaders(headers);
656
651
 
657
652
  }
658
653