@speclynx/apidom-ns-openapi-3-0 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-ns-openapi-3-0
|
|
@@ -2605,7 +2605,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
|
|
|
2605
2605
|
return this.filter(mediaType => mediaType.includes(effectiveFormat));
|
|
2606
2606
|
}
|
|
2607
2607
|
findBy(version = '3.0.4', format = 'generic') {
|
|
2608
|
-
const search = format === 'generic' ? `
|
|
2608
|
+
const search = format === 'generic' ? `openapi;version=${version}` : `openapi+${format};version=${version}`;
|
|
2609
2609
|
const found = this.find(mediaType => mediaType.includes(search));
|
|
2610
2610
|
return found || this.unknownMediaType;
|
|
2611
2611
|
}
|
|
@@ -2617,7 +2617,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
|
|
|
2617
2617
|
/**
|
|
2618
2618
|
* @public
|
|
2619
2619
|
*/
|
|
2620
|
-
const mediaTypes = new OpenAPIMediaTypes('application/
|
|
2620
|
+
const mediaTypes = new OpenAPIMediaTypes('application/openapi;version=3.0.0', 'application/openapi+json;version=3.0.0', 'application/openapi+yaml;version=3.0.0', 'application/openapi;version=3.0.1', 'application/openapi+json;version=3.0.1', 'application/openapi+yaml;version=3.0.1', 'application/openapi;version=3.0.2', 'application/openapi+json;version=3.0.2', 'application/openapi+yaml;version=3.0.2', 'application/openapi;version=3.0.3', 'application/openapi+json;version=3.0.3', 'application/openapi+yaml;version=3.0.3', 'application/openapi;version=3.0.4', 'application/openapi+json;version=3.0.4', 'application/openapi+yaml;version=3.0.4');
|
|
2621
2621
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mediaTypes);
|
|
2622
2622
|
|
|
2623
2623
|
/***/ },
|