···11+---
22+'@hey-api/openapi-ts': patch
33+---
44+55+fix: add support for OpenAPI 3.1.1 to experimental parser
+2-2
packages/openapi-ts/src/index.ts
···431431 defineConfig,
432432};
433433434434-export type { OpenApiV3_0_3 } from './openApi/3.0.3';
435435-export type { OpenApiV3_1_0 } from './openApi/3.1.0';
434434+export type { OpenApiV3_0_0 } from './openApi/3.0.x';
435435+export type { OpenApiV3_1_0 } from './openApi/3.1.x';
436436export type { UserConfig } from './types/config';
+1-1
packages/openapi-ts/src/ir/ir.d.ts
···11-import type { JsonSchemaDraft2020_12 } from '../openApi/3.1.0/types/json-schema-draft-2020-12';
11+import type { JsonSchemaDraft2020_12 } from '../openApi/3.1.x/types/json-schema-draft-2020-12';
22import type { IRMediaType } from './mediaType';
3344export interface IR {
-2
packages/openapi-ts/src/openApi/3.0.3/index.ts
···11-export { parseV3_0_3 } from './parser';
22-export type { OpenApiV3_0_3 } from './types/spec';
···11-export interface OpenApiV3_0_3 {
22- /**
33- * **REQUIRED**. This string MUST be the {@link https://semver.org/spec/v2.0.0.html semantic version number} of the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#versions OpenAPI Specification version} that the OpenAPI document uses. The `openapi` field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is _not_ related to the API {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#infoVersion `info.version`} string.
44- */
55- openapi: '3.0.3';
66- // TODO
77-}
+2
packages/openapi-ts/src/openApi/3.0.x/index.ts
···11+export { parseV3_0_0 } from './parser';
22+export type { OpenApiV3_0_0 } from './types/spec';
···11+/**
22+ * This is the root object of the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#openapi-description OpenAPI Description}.
33+ *
44+ * This object MAY be extended with {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#specification-extensions Specification Extensions}.
55+ */
66+export interface OpenApiV3_0_0 {
77+ /**
88+ * An element to hold various Objects for the OpenAPI Description.
99+ */
1010+ components?: ComponentsObject;
1111+ /**
1212+ * **REQUIRED**. This string MUST be the {@link https://semver.org/spec/v2.0.0.html semantic version number} of the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#versions OpenAPI Specification version} that the OpenAPI document uses. The `openapi` field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is _not_ related to the API {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#infoVersion `info.version`} string.
1313+ */
1414+ openapi: '3.0.0' | '3.0.1' | '3.0.2' | '3.0.3' | '3.0.4';
1515+ // TODO
1616+}
1717+1818+// TODO
1919+export interface ComponentsObject {}
2020+2121+// TODO
2222+export interface SchemaObject {}
···2525 /**
2626 * **REQUIRED**. This string MUST be the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#versions version number} of the OpenAPI Specification that the OpenAPI document uses. The `openapi` field SHOULD be used by tooling to interpret the OpenAPI document. This is _not_ related to the API {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#infoVersion `info.version`} string.
2727 */
2828- openapi: '3.1.0';
2828+ openapi: '3.1.0' | '3.1.1';
2929 /**
3030 * The available paths and operations for the API.
3131 */
···11import type { OpenApiV2Schema, OpenApiV3Schema } from '../../../openApi';
22-import type { SchemaObject as OpenApiV3_1_0SchemaObject } from '../../../openApi/3.1.0/types/spec';
22+// TODO: parser - add new parser schema object to `nameBuilder`
33+// import type { SchemaObject as OpenApiV3_0_0SchemaObject } from '../../../openApi/3.0.x/types/spec';
44+import type { SchemaObject as OpenApiV3_1_0SchemaObject } from '../../../openApi/3.1.x/types/spec';
35import type { PluginName } from '../../types';
4657export interface Config extends PluginName<'@hey-api/schemas'> {