@speclynx/apidom-parser-adapter-openapi-json-3-1 2.12.2 → 2.12.4

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,16 @@
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.4](https://github.com/speclynx/apidom/compare/v2.12.3...v2.12.4) (2026-02-24)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-json-3-1
9
+
10
+ ## [2.12.3](https://github.com/speclynx/apidom/compare/v2.12.2...v2.12.3) (2026-02-24)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **openapi:** use official OpenAPI media type ([#109](https://github.com/speclynx/apidom/issues/109)) ([ce41698](https://github.com/speclynx/apidom/commit/ce416981bc104ebd6150298a365a6f489a480d58))
15
+
6
16
  ## [2.12.2](https://github.com/speclynx/apidom/compare/v2.12.1...v2.12.2) (2026-02-20)
7
17
 
8
18
  **Note:** Version bump only for package @speclynx/apidom-parser-adapter-openapi-json-3-1
package/README.md CHANGED
@@ -29,12 +29,12 @@ Defines list of media types that this parser adapter recognizes.
29
29
 
30
30
  ```js
31
31
  [
32
- 'application/vnd.oai.openapi;version=3.1.0',
33
- 'application/vnd.oai.openapi+json;version=3.1.0',
34
- 'application/vnd.oai.openapi;version=3.1.1',
35
- 'application/vnd.oai.openapi+json;version=3.1.1',
36
- 'application/vnd.oai.openapi;version=3.1.2',
37
- 'application/vnd.oai.openapi+json;version=3.1.2',
32
+ 'application/openapi;version=3.1.0',
33
+ 'application/openapi+json;version=3.1.0',
34
+ 'application/openapi;version=3.1.1',
35
+ 'application/openapi+json;version=3.1.1',
36
+ 'application/openapi;version=3.1.2',
37
+ 'application/openapi+json;version=3.1.2',
38
38
  ]
39
39
  ```
40
40
 
@@ -36155,7 +36155,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
36155
36155
  return this.filter(mediaType => mediaType.includes(effectiveFormat));
36156
36156
  }
36157
36157
  findBy(version = '3.1.2', format = 'generic') {
36158
- const search = format === 'generic' ? `vnd.oai.openapi;version=${version}` : `vnd.oai.openapi+${format};version=${version}`;
36158
+ const search = format === 'generic' ? `openapi;version=${version}` : `openapi+${format};version=${version}`;
36159
36159
  const found = this.find(mediaType => mediaType.includes(search));
36160
36160
  return found || this.unknownMediaType;
36161
36161
  }
@@ -36167,7 +36167,7 @@ class OpenAPIMediaTypes extends _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_1
36167
36167
  /**
36168
36168
  * @public
36169
36169
  */
36170
- 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');
36170
+ 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');
36171
36171
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mediaTypes);
36172
36172
 
36173
36173
  /***/ },