@speclynx/apidom-ns-openapi-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-ns-openapi-3-1
@@ -889,7 +889,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
889
889
  return this.filter(mediaType => mediaType.includes(effectiveFormat));
890
890
  }
891
891
  findBy(version = '3.1.2', format = 'generic') {
892
- const search = format === 'generic' ? `vnd.oai.openapi;version=${version}` : `vnd.oai.openapi+${format};version=${version}`;
892
+ const search = format === 'generic' ? `openapi;version=${version}` : `openapi+${format};version=${version}`;
893
893
  const found = this.find(mediaType => mediaType.includes(search));
894
894
  return found || this.unknownMediaType;
895
895
  }
@@ -901,7 +901,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
901
901
  /**
902
902
  * @public
903
903
  */
904
- const mediaTypes = new OpenAPIMediaTypes('application/vnd.oai.openapi;version=3.1.0', 'application/vnd.oai.openapi+json;version=3.1.0', 'application/vnd.oai.openapi+yaml;version=3.1.0', 'application/vnd.oai.openapi;version=3.1.1', 'application/vnd.oai.openapi+json;version=3.1.1', 'application/vnd.oai.openapi+yaml;version=3.1.1', 'application/vnd.oai.openapi;version=3.1.2', 'application/vnd.oai.openapi+json;version=3.1.2', 'application/vnd.oai.openapi+yaml;version=3.1.2');
904
+ 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');
905
905
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mediaTypes);
906
906
 
907
907
  /***/ },