@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.
- package/CHANGELOG.md +13 -0
- package/README.md +25 -24
- package/dist/apidom-ns-openapi-3-1.browser.js +221 -258
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/package.json +8 -8
- package/src/index.cjs +35 -35
- package/src/index.mjs +1 -1
- package/src/refractor/plugins/{normalize-header-examples/index.cjs → normalize-header-examples.cjs} +5 -6
- package/src/refractor/plugins/{normalize-header-examples/index.mjs → normalize-header-examples.mjs} +4 -5
- package/src/refractor/plugins/normalize-operation-ids.cjs +3 -5
- package/src/refractor/plugins/normalize-operation-ids.mjs +2 -4
- package/src/refractor/plugins/normalize-parameter-examples.cjs +5 -6
- package/src/refractor/plugins/normalize-parameter-examples.mjs +4 -5
- package/src/refractor/plugins/normalize-parameters.cjs +48 -50
- package/src/refractor/plugins/normalize-parameters.mjs +48 -50
- package/src/refractor/plugins/normalize-security-requirements.cjs +21 -7
- package/src/refractor/plugins/normalize-security-requirements.mjs +20 -6
- package/src/refractor/plugins/normalize-servers.cjs +72 -49
- package/src/refractor/plugins/normalize-servers.mjs +70 -47
- package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.cjs → normalize-storage/index.cjs} +1 -1
- package/src/refractor/plugins/{normalize-header-examples/NormalizeStorage.mjs → normalize-storage/index.mjs} +1 -1
- package/src/refractor/toolbox.cjs +1 -29
- package/src/refractor/toolbox.mjs +1 -28
- 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
|
-
-
|
|
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
|
-
//
|
|
299
|
-
//
|
|
300
|
-
//
|
|
301
|
-
//
|
|
302
|
-
//
|
|
303
|
-
//
|
|
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
|
|