@speclynx/apidom-parser-adapter-openapi-yaml-3-1 2.12.2 → 2.12.3
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
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
## [2.12.3](https://github.com/speclynx/apidom/compare/v2.12.2...v2.12.3) (2026-02-24)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **openapi:** use official OpenAPI media type ([#109](https://github.com/speclynx/apidom/issues/109)) ([ce41698](https://github.com/speclynx/apidom/commit/ce416981bc104ebd6150298a365a6f489a480d58))
|
|
11
|
+
|
|
6
12
|
## [2.12.2](https://github.com/speclynx/apidom/compare/v2.12.1...v2.12.2) (2026-02-20)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-yaml-3-1
|
package/README.md
CHANGED
|
@@ -31,12 +31,12 @@ Defines list of media types that this parser adapter recognizes.
|
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
33
|
[
|
|
34
|
-
'application/
|
|
35
|
-
'application/
|
|
36
|
-
'application/
|
|
37
|
-
'application/
|
|
38
|
-
'application/
|
|
39
|
-
'application/
|
|
34
|
+
'application/openapi;version=3.1.0',
|
|
35
|
+
'application/openapi+yaml;version=3.1.0',
|
|
36
|
+
'application/openapi;version=3.1.1',
|
|
37
|
+
'application/openapi+yaml;version=3.1.1',
|
|
38
|
+
'application/openapi;version=3.1.2',
|
|
39
|
+
'application/openapi+yaml;version=3.1.2',
|
|
40
40
|
]
|
|
41
41
|
```
|
|
42
42
|
|
|
@@ -46532,7 +46532,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
|
|
|
46532
46532
|
return this.filter(mediaType => mediaType.includes(effectiveFormat));
|
|
46533
46533
|
}
|
|
46534
46534
|
findBy(version = '3.1.2', format = 'generic') {
|
|
46535
|
-
const search = format === 'generic' ? `
|
|
46535
|
+
const search = format === 'generic' ? `openapi;version=${version}` : `openapi+${format};version=${version}`;
|
|
46536
46536
|
const found = this.find(mediaType => mediaType.includes(search));
|
|
46537
46537
|
return found || this.unknownMediaType;
|
|
46538
46538
|
}
|
|
@@ -46544,7 +46544,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
|
|
|
46544
46544
|
/**
|
|
46545
46545
|
* @public
|
|
46546
46546
|
*/
|
|
46547
|
-
const mediaTypes = new OpenAPIMediaTypes('application/
|
|
46547
|
+
const mediaTypes = new OpenAPIMediaTypes('application/openapi;version=3.1.0', 'application/openapi+json;version=3.1.0', 'application/openapi+yaml;version=3.1.0', 'application/openapi;version=3.1.1', 'application/openapi+json;version=3.1.1', 'application/openapi+yaml;version=3.1.1', 'application/openapi;version=3.1.2', 'application/openapi+json;version=3.1.2', 'application/openapi+yaml;version=3.1.2');
|
|
46548
46548
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mediaTypes);
|
|
46549
46549
|
|
|
46550
46550
|
/***/ },
|