@speclynx/apidom-ns-openapi-3-1 4.0.5 → 4.2.0

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 (24) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +25 -24
  3. package/dist/apidom-ns-openapi-3-1.browser.js +221 -258
  4. package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
  5. package/package.json +8 -8
  6. package/src/index.cjs +35 -35
  7. package/src/index.mjs +1 -1
  8. package/src/refractor/plugins/{normalize-header-examples/index.cjs → normalize-header-examples.cjs} +5 -6
  9. package/src/refractor/plugins/{normalize-header-examples/index.mjs → normalize-header-examples.mjs} +4 -5
  10. package/src/refractor/plugins/normalize-operation-ids.cjs +3 -5
  11. package/src/refractor/plugins/normalize-operation-ids.mjs +2 -4
  12. package/src/refractor/plugins/normalize-parameter-examples.cjs +5 -6
  13. package/src/refractor/plugins/normalize-parameter-examples.mjs +4 -5
  14. package/src/refractor/plugins/normalize-parameters.cjs +48 -50
  15. package/src/refractor/plugins/normalize-parameters.mjs +48 -50
  16. package/src/refractor/plugins/normalize-security-requirements.cjs +21 -7
  17. package/src/refractor/plugins/normalize-security-requirements.mjs +20 -6
  18. package/src/refractor/plugins/normalize-servers.cjs +72 -49
  19. package/src/refractor/plugins/normalize-servers.mjs +70 -47
  20. package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.cjs → normalize-storage/index.cjs} +1 -1
  21. package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.mjs → normalize-storage/index.mjs} +1 -1
  22. package/src/refractor/toolbox.cjs +1 -29
  23. package/src/refractor/toolbox.mjs +1 -28
  24. package/types/apidom-ns-openapi-3-1.d.ts +34 -39
package/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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
+ # [4.2.0](https://github.com/speclynx/apidom/compare/v4.1.0...v4.2.0) (2026-03-17)
7
+
8
+ ### Features
9
+
10
+ - **ns-openapi-2-0:** add normalization refractor plugins ([#170](https://github.com/speclynx/apidom/issues/170)) ([315b5c6](https://github.com/speclynx/apidom/commit/315b5c620f752941749df13c0a5ab4bd14d41597))
11
+ - **ns-openapi-3-0:** add normalization refractor plugins ([#169](https://github.com/speclynx/apidom/issues/169)) ([fb0ec23](https://github.com/speclynx/apidom/commit/fb0ec23dd8c933a9a4d72762f3fb643e3e11d037))
12
+
13
+ # [4.1.0](https://github.com/speclynx/apidom/compare/v4.0.5...v4.1.0) (2026-03-16)
14
+
15
+ ### Features
16
+
17
+ - **ns-openapi-3-1:** expose refractor plugins also as reusable functions ([#168](https://github.com/speclynx/apidom/issues/168)) ([ad8c3b0](https://github.com/speclynx/apidom/commit/ad8c3b008881003f4a32ec1a250080a708eb9aa9))
18
+
6
19
  ## [4.0.5](https://github.com/speclynx/apidom/compare/v4.0.4...v4.0.5) (2026-03-13)
7
20
 
8
21
  **Note:** Version bump only for package @speclynx/apidom-ns-openapi-3-1
package/README.md CHANGED
@@ -251,7 +251,7 @@ toValue(openApiElement);
251
251
 
252
252
  Duplicates Parameters from Path Items to Operation Objects using following rules:
253
253
 
254
- - If a parameter is already defined at the Path Item, the new definition will override it but can never remove it
254
+ - An Operation-level parameter with the same name and location overrides the inherited Path Item parameter, but Path Item parameters can never be removed at the Operation level
255
255
  - The list MUST NOT include duplicated parameters
256
256
  - A unique parameter is defined by a combination of a name and location.
257
257
 
@@ -281,30 +281,31 @@ toValue(openApiElement);
281
281
  // {
282
282
  // "openapi": "3.1.0",
283
283
  // "paths": {
284
- // "/": {
285
- // "parameters": [
286
- // {
287
- // "name": "param1",
288
- // "in": "query"
289
- // },
290
- // {
291
- // "name": "param2",
292
- // "in": "query"
293
- // }
294
- // ],
295
- // "get": {
284
+ // "/": {
296
285
  // "parameters": [
297
- // {
298
- // "name": "param1",
299
- // "in": "query"
300
- // },
301
- // {
302
- // "name": "param2",
303
- // "in": "query"
304
- // }
305
- // ],
306
- // }
307
- // }
286
+ // {
287
+ // "name": "param1",
288
+ // "in": "query"
289
+ // },
290
+ // {
291
+ // "name": "param2",
292
+ // "in": "query"
293
+ // }
294
+ // ],
295
+ // "get": {
296
+ // "parameters": [
297
+ // {
298
+ // "name": "param1",
299
+ // "in": "query"
300
+ // },
301
+ // {
302
+ // "name": "param2",
303
+ // "in": "query"
304
+ // }
305
+ // ]
306
+ // }
307
+ // }
308
+ // }
308
309
  // }
309
310
  ```
310
311