diff --git a/packages/openapi-ts-tests/main/test/2.0.x.test.ts b/packages/openapi-ts-tests/main/test/2.0.x.test.ts index 1b532c27b8..4be3857bd0 100644 --- a/packages/openapi-ts-tests/main/test/2.0.x.test.ts +++ b/packages/openapi-ts-tests/main/test/2.0.x.test.ts @@ -44,6 +44,13 @@ describe(`OpenAPI ${version}`, () => { }; const scenarios = [ + { + config: createConfig({ + input: 'external.yaml', + output: 'external', + }), + description: 'handles external references', + }, { config: createConfig({ input: 'additional-properties-false.json', diff --git a/packages/openapi-ts-tests/main/test/3.0.x.test.ts b/packages/openapi-ts-tests/main/test/3.0.x.test.ts index f971506446..e54398c806 100644 --- a/packages/openapi-ts-tests/main/test/3.0.x.test.ts +++ b/packages/openapi-ts-tests/main/test/3.0.x.test.ts @@ -44,6 +44,13 @@ describe(`OpenAPI ${version}`, () => { }; const scenarios = [ + { + config: createConfig({ + input: 'external.yaml', + output: 'external', + }), + description: 'handles external references', + }, { config: createConfig({ input: 'additional-properties-false.json', diff --git a/packages/openapi-ts-tests/main/test/3.1.x.test.ts b/packages/openapi-ts-tests/main/test/3.1.x.test.ts index daaaa2c13c..b9c467e489 100644 --- a/packages/openapi-ts-tests/main/test/3.1.x.test.ts +++ b/packages/openapi-ts-tests/main/test/3.1.x.test.ts @@ -44,6 +44,13 @@ describe(`OpenAPI ${version}`, () => { }; const scenarios = [ + { + config: createConfig({ + input: 'external.yaml', + output: 'external', + }), + description: 'handles external references', + }, { config: createConfig({ input: 'pattern-properties.json', diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/external/index.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/external/index.ts new file mode 100644 index 0000000000..56bade120a --- /dev/null +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/external/index.ts @@ -0,0 +1,2 @@ +// This file is auto-generated by @hey-api/openapi-ts +export * from './types.gen'; \ No newline at end of file diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/external/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/external/types.gen.ts new file mode 100644 index 0000000000..8f48ac0866 --- /dev/null +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/external/types.gen.ts @@ -0,0 +1,394 @@ +// This file is auto-generated by @hey-api/openapi-ts + +export type ExternalSchemaA = ExternalSharedExternalSharedModel; + +export type ExternalSchemaB = ExternalSharedExternalSharedModel; + +export type ExternalSchemaC = ExternalSharedExternalSharedModel; + +export type ExternalSchemaPathA = ExternalSharedExternalSharedModel; + +export type ExternalSchemaPathB = ExternalSharedExternalSharedModel; + +/** + * External schema property (A) + */ +export type ExternalSchemaPropertyA = { + uuid1?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property (B) - second use of UUID + */ +export type ExternalSchemaPropertyB = { + uuid2?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property (C) - third use of UUID + */ +export type ExternalSchemaPropertyC = { + uuid3?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property with duplicate refs (D) + */ +export type ExternalSchemaPropertyD = { + uuid4?: ExternalSharedExternalSharedModelWithUuid; + uuid5?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property via external property ref (id) + */ +export type ExternalSchemaExternalProp = { + id3?: ExternalSharedId; + id4?: ExternalSharedId; +}; + +/** + * Alias to external property via component property ref + */ +export type ExternalSchemaExternalPropAlias = { + id5?: ExternalSharedId; + id6?: ExternalSharedId; +}; + +/** + * External double nested prop via property ref + */ +export type ExternalDoubleNestedProp = { + deep1?: ExternalSharedDeep; + deep2?: ExternalSharedDeep; +}; + +/** + * External double nested numeric properties + */ +export type ExternalDoubleNestedNumeric = { + numeric1?: ExternalShared1; + numeric2?: ExternalShared1; +}; + +export type ExternalNestedObjectA = ExternalSharedExternalNested; + +export type ExternalNestedObjectB = ExternalSharedExternalNested; + +export type ExternalNestedNumericObjectA = ExternalSharedExternalNestedNumeric; + +export type ExternalNestedNumericObjectB = ExternalSharedExternalNestedNumeric; + +/** + * Mixed external property references + */ +export type ExternalMixedProperties = { + id7?: ExternalSharedId; + name1?: ExternalSharedName; + uuid6?: ExternalSharedExternalSharedModelWithUuid; + deep3?: ExternalSharedDeep; + numeric3?: ExternalShared1; +}; + +/** + * Array containing external references + */ +export type ExternalArraySchema = { + items?: Array; + uuidItems?: Array; +}; + +/** + * Union type with external references + */ +export type ExternalUnionSchema = unknown; + +/** + * AllOf with external references + */ +export type ExternalAllOfSchema = ExternalSharedExternalSharedModel & { + additional?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * AnyOf with external references + */ +export type ExternalAnyOfSchema = unknown; + +export type ExternalSharedExternalNested = { + inner?: { + deep?: string; + }; +}; + +export type ExternalSharedDeep = string; + +export type ExternalSharedExternalNestedNumeric = { + 0?: { + 1?: string; + }; +}; + +export type ExternalShared1 = string; + +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + +export type ExternalSharedId = string; + +export type ExternalSharedName = string; + +export type ExternalSharedExternalSharedModelWithUuid = string; + +export type GetExternalModelData = { + body?: never; + path: { + id: unknown; + }; + query?: { + uuid?: unknown; + }; + url: '/external-model'; +}; + +export type GetExternalModelErrors = { + /** + * Response using external UUID + */ + 400: ExternalSharedExternalSharedModelWithUuid; +}; + +export type GetExternalModelError = GetExternalModelErrors[keyof GetExternalModelErrors]; + +export type GetExternalModelResponses = { + /** + * Response using external model + */ + 200: ExternalSharedExternalSharedModel; +}; + +export type GetExternalModelResponse = GetExternalModelResponses[keyof GetExternalModelResponses]; + +export type PostExternalModelData = { + body?: never; + path?: never; + query?: never; + url: '/external-model'; +}; + +export type PostExternalModelErrors = { + /** + * Response with union of external types + */ + 422: unknown; +}; + +export type PostExternalModelResponses = { + /** + * Response using external model + */ + 201: ExternalSharedExternalSharedModel; +}; + +export type PostExternalModelResponse = PostExternalModelResponses[keyof PostExternalModelResponses]; + +export type GetExternalUuidData = { + body?: never; + path?: never; + query?: { + uuid?: unknown; + }; + url: '/external-uuid'; +}; + +export type GetExternalUuidResponses = { + /** + * Response using external UUID + */ + 200: ExternalSharedExternalSharedModelWithUuid; +}; + +export type GetExternalUuidResponse = GetExternalUuidResponses[keyof GetExternalUuidResponses]; + +export type PutExternalUuidData = { + body?: never; + path?: never; + query?: never; + url: '/external-uuid'; +}; + +export type PutExternalUuidResponses = { + /** + * Response using external UUID + */ + 200: ExternalSharedExternalSharedModelWithUuid; +}; + +export type PutExternalUuidResponse = PutExternalUuidResponses[keyof PutExternalUuidResponses]; + +export type GetExternalNestedData = { + body?: never; + headers?: { + deep?: unknown; + }; + path?: never; + query?: never; + url: '/external-nested'; +}; + +export type GetExternalNestedResponses = { + /** + * Response using external nested object + */ + 200: ExternalSharedExternalNested; +}; + +export type GetExternalNestedResponse = GetExternalNestedResponses[keyof GetExternalNestedResponses]; + +export type PostExternalNestedData = { + body?: never; + path?: never; + query?: never; + url: '/external-nested'; +}; + +export type PostExternalNestedResponses = { + /** + * Response using external nested object + */ + 201: ExternalSharedExternalNested; +}; + +export type PostExternalNestedResponse = PostExternalNestedResponses[keyof PostExternalNestedResponses]; + +export type GetExternalMixedData = { + body?: never; + headers?: { + deep?: unknown; + }; + path: { + id: unknown; + }; + query?: { + uuid?: unknown; + numeric?: unknown; + }; + url: '/external-mixed'; +}; + +export type GetExternalMixedResponses = { + /** + * Response with array of external models + */ + 200: Array; +}; + +export type GetExternalMixedResponse = GetExternalMixedResponses[keyof GetExternalMixedResponses]; + +export type PostExternalMixedData = { + body?: never; + path?: never; + query?: never; + url: '/external-mixed'; +}; + +export type PostExternalMixedResponses = { + /** + * Response using external model + */ + 201: ExternalSharedExternalSharedModel; +}; + +export type PostExternalMixedResponse = PostExternalMixedResponses[keyof PostExternalMixedResponses]; + +export type GetExternalArrayData = { + body?: never; + path?: never; + query?: never; + url: '/external-array'; +}; + +export type GetExternalArrayResponses = { + /** + * Response with array of external models + */ + 200: Array; +}; + +export type GetExternalArrayResponse = GetExternalArrayResponses[keyof GetExternalArrayResponses]; + +export type PostExternalArrayData = { + body?: never; + path?: never; + query?: never; + url: '/external-array'; +}; + +export type PostExternalArrayResponses = { + /** + * Response with array of external models + */ + 201: Array; +}; + +export type PostExternalArrayResponse = PostExternalArrayResponses[keyof PostExternalArrayResponses]; + +export type GetExternalUnionData = { + body?: never; + path?: never; + query?: never; + url: '/external-union'; +}; + +export type GetExternalUnionResponses = { + /** + * Response with union of external types + */ + 200: unknown; +}; + +export type PostExternalUnionData = { + body?: never; + path?: never; + query?: never; + url: '/external-union'; +}; + +export type PostExternalUnionResponses = { + /** + * Response with union of external types + */ + 201: unknown; +}; + +export type GetExternalPropertiesByIdData = { + body?: never; + headers?: { + deep?: unknown; + }; + path: { + id: unknown; + }; + query?: { + uuid?: unknown; + }; + url: '/external-properties/{id}'; +}; + +export type GetExternalPropertiesByIdResponses = { + 200: { + id?: ExternalSharedId; + name?: ExternalSharedName; + uuid?: ExternalSharedExternalSharedModelWithUuid; + deep?: ExternalSharedDeep; + numeric?: ExternalShared1; + }; +}; + +export type GetExternalPropertiesByIdResponse = GetExternalPropertiesByIdResponses[keyof GetExternalPropertiesByIdResponses]; + +export type ClientOptions = { + baseUrl: string; +}; \ No newline at end of file diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts index 466f10c456..76747df494 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts @@ -2,21 +2,12 @@ export const ExternalRefASchema = { description: 'External ref to shared model (A)', - type: 'object', - properties: { - id: { - type: 'string' - }, - name: { - type: 'string' - } - }, - required: ['id'] + '$ref': '#/definitions/external-shared_ExternalSharedModel' } as const; export const ExternalRefBSchema = { description: 'External ref to shared model (B)', - '$ref': '#/definitions/ExternalRefA' + '$ref': '#/definitions/external-shared_ExternalSharedModel' } as const; export const CommentWithBreaksSchema = { @@ -689,6 +680,19 @@ export const failure_FailureSchema = { } } as const; +export const external_shared_ExternalSharedModelSchema = { + type: 'object', + properties: { + id: { + type: 'string' + }, + name: { + type: 'string' + } + }, + required: ['id'] +} as const; + export const ModelWithPropertiesWritableSchema = { description: 'This is a model with one nested property', type: 'object', diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts index 4a1834d8bf..46ba1097d7 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/types.gen.ts index 4a1834d8bf..46ba1097d7 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts index 4a1834d8bf..46ba1097d7 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts index 4a1834d8bf..46ba1097d7 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts index 4a1834d8bf..46ba1097d7 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/fastify/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/fastify/default/types.gen.ts index 1fade89b21..684ac1a41e 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/fastify/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/fastify/default/types.gen.ts @@ -1,14 +1,8 @@ // This file is auto-generated by @hey-api/openapi-ts -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -416,6 +410,11 @@ export type FailureFailure = { reference_code?: string; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/valibot/default/valibot.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/valibot/default/valibot.gen.ts index b9012d6474..12d1659a11 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/valibot/default/valibot.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/valibot/default/valibot.gen.ts @@ -2,15 +2,14 @@ import * as v from 'valibot'; -/** - * External ref to shared model (A) - */ -export const vExternalRefA = v.object({ +export const vExternalSharedExternalSharedModel = v.object({ id: v.string(), name: v.optional(v.string()) }); -export const vExternalRefB = vExternalRefA; +export const vExternalRefA = vExternalSharedExternalSharedModel; + +export const vExternalRefB = vExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/external/index.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/external/index.ts new file mode 100644 index 0000000000..56bade120a --- /dev/null +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/external/index.ts @@ -0,0 +1,2 @@ +// This file is auto-generated by @hey-api/openapi-ts +export * from './types.gen'; \ No newline at end of file diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/external/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/external/types.gen.ts new file mode 100644 index 0000000000..3c38c87e14 --- /dev/null +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/external/types.gen.ts @@ -0,0 +1,436 @@ +// This file is auto-generated by @hey-api/openapi-ts + +export type ExternalSchemaA = ExternalSharedExternalSharedModel; + +export type ExternalSchemaB = ExternalSharedExternalSharedModel; + +export type ExternalSchemaC = ExternalSharedExternalSharedModel; + +export type ExternalSchemaPathA = ExternalSharedExternalSharedModel; + +export type ExternalSchemaPathB = ExternalSharedExternalSharedModel; + +/** + * External schema property (A) + */ +export type ExternalSchemaPropertyA = { + uuid1?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property (B) - second use of UUID + */ +export type ExternalSchemaPropertyB = { + uuid2?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property (C) - third use of UUID + */ +export type ExternalSchemaPropertyC = { + uuid3?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property with duplicate refs (D) + */ +export type ExternalSchemaPropertyD = { + uuid4?: ExternalSharedExternalSharedModelWithUuid; + uuid5?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property via external property ref (id) + */ +export type ExternalSchemaExternalProp = { + id3?: ExternalSharedId; + id4?: ExternalSharedId; +}; + +/** + * Alias to external property via component property ref + */ +export type ExternalSchemaExternalPropAlias = { + id5?: ExternalSharedId; + id6?: ExternalSharedId; +}; + +/** + * External double nested prop via property ref + */ +export type ExternalDoubleNestedProp = { + deep1?: ExternalSharedDeep; + deep2?: ExternalSharedDeep; +}; + +/** + * External double nested numeric properties + */ +export type ExternalDoubleNestedNumeric = { + numeric1?: ExternalShared1; + numeric2?: ExternalShared1; +}; + +export type ExternalNestedObjectA = ExternalSharedExternalNested; + +export type ExternalNestedObjectB = ExternalSharedExternalNested; + +export type ExternalNestedNumericObjectA = ExternalSharedExternalNestedNumeric; + +export type ExternalNestedNumericObjectB = ExternalSharedExternalNestedNumeric; + +/** + * Mixed external property references + */ +export type ExternalMixedProperties = { + id7?: ExternalSharedId; + name1?: ExternalSharedName; + uuid6?: ExternalSharedExternalSharedModelWithUuid; + deep3?: ExternalSharedDeep; + numeric3?: ExternalShared1; +}; + +/** + * Array containing external references + */ +export type ExternalArraySchema = { + items?: Array; + uuidItems?: Array; +}; + +/** + * Union type with external references + */ +export type ExternalUnionSchema = ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid; + +/** + * AllOf with external references + */ +export type ExternalAllOfSchema = ExternalSharedExternalSharedModel & { + additional?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * AnyOf with external references + */ +export type ExternalAnyOfSchema = ExternalSharedExternalNested | ExternalSharedExternalNestedNumeric; + +export type ExternalSharedExternalNested = { + inner?: { + deep?: string; + }; +}; + +export type ExternalSharedDeep = string; + +export type ExternalSharedExternalNestedNumeric = { + 0?: { + 1?: string; + }; +}; + +export type ExternalShared1 = string; + +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + +export type ExternalSharedId = string; + +export type ExternalSharedName = string; + +export type ExternalSharedExternalSharedModelWithUuid = string; + +export type ExternalIdParam = ExternalSharedId; + +export type ExternalUuidParam = ExternalSharedExternalSharedModelWithUuid; + +export type ExternalDeepParam = ExternalSharedDeep; + +export type ExternalNumericParam = ExternalShared1; + +export type ExternalModelBody = ExternalSharedExternalSharedModel; + +export type ExternalUuidBody = ExternalSharedExternalSharedModelWithUuid; + +export type ExternalNestedBody = ExternalSharedExternalNested; + +/** + * Request body with mixed external properties + */ +export type ExternalMixedBody = { + id?: ExternalSharedId; + name?: ExternalSharedName; + uuid?: ExternalSharedExternalSharedModelWithUuid; + deep?: ExternalSharedDeep; +}; + +export type GetExternalModelData = { + body?: never; + path: { + id: ExternalSharedId; + }; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + }; + url: '/external-model'; +}; + +export type GetExternalModelErrors = { + /** + * Response using external UUID + */ + 400: ExternalSharedExternalSharedModelWithUuid; +}; + +export type GetExternalModelError = GetExternalModelErrors[keyof GetExternalModelErrors]; + +export type GetExternalModelResponses = { + /** + * Response using external model + */ + 200: ExternalSharedExternalSharedModel; +}; + +export type GetExternalModelResponse = GetExternalModelResponses[keyof GetExternalModelResponses]; + +export type PostExternalModelData = { + /** + * Request body using external model + */ + body: ExternalModelBody; + path?: never; + query?: never; + url: '/external-model'; +}; + +export type PostExternalModelErrors = { + /** + * Response with union of external types + */ + 422: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; +}; + +export type PostExternalModelError = PostExternalModelErrors[keyof PostExternalModelErrors]; + +export type PostExternalModelResponses = { + /** + * Response using external model + */ + 201: ExternalSharedExternalSharedModel; +}; + +export type PostExternalModelResponse = PostExternalModelResponses[keyof PostExternalModelResponses]; + +export type GetExternalUuidData = { + body?: never; + path?: never; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + }; + url: '/external-uuid'; +}; + +export type GetExternalUuidResponses = { + /** + * Response using external UUID + */ + 200: ExternalSharedExternalSharedModelWithUuid; +}; + +export type GetExternalUuidResponse = GetExternalUuidResponses[keyof GetExternalUuidResponses]; + +export type PutExternalUuidData = { + /** + * Request body using external UUID + */ + body?: ExternalUuidBody; + path?: never; + query?: never; + url: '/external-uuid'; +}; + +export type PutExternalUuidResponses = { + /** + * Response using external UUID + */ + 200: ExternalSharedExternalSharedModelWithUuid; +}; + +export type PutExternalUuidResponse = PutExternalUuidResponses[keyof PutExternalUuidResponses]; + +export type GetExternalNestedData = { + body?: never; + headers?: { + deep?: ExternalSharedDeep; + }; + path?: never; + query?: never; + url: '/external-nested'; +}; + +export type GetExternalNestedResponses = { + /** + * Response using external nested object + */ + 200: ExternalSharedExternalNested; +}; + +export type GetExternalNestedResponse = GetExternalNestedResponses[keyof GetExternalNestedResponses]; + +export type PostExternalNestedData = { + /** + * Request body using external nested object + */ + body?: ExternalNestedBody; + path?: never; + query?: never; + url: '/external-nested'; +}; + +export type PostExternalNestedResponses = { + /** + * Response using external nested object + */ + 201: ExternalSharedExternalNested; +}; + +export type PostExternalNestedResponse = PostExternalNestedResponses[keyof PostExternalNestedResponses]; + +export type GetExternalMixedData = { + body?: never; + headers?: { + deep?: ExternalSharedDeep; + }; + path: { + id: ExternalSharedId; + }; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + numeric?: ExternalShared1; + }; + url: '/external-mixed'; +}; + +export type GetExternalMixedResponses = { + /** + * Response with array of external models + */ + 200: Array; +}; + +export type GetExternalMixedResponse = GetExternalMixedResponses[keyof GetExternalMixedResponses]; + +export type PostExternalMixedData = { + /** + * Request body with mixed external properties + */ + body?: ExternalMixedBody; + path?: never; + query?: never; + url: '/external-mixed'; +}; + +export type PostExternalMixedResponses = { + /** + * Response using external model + */ + 201: ExternalSharedExternalSharedModel; +}; + +export type PostExternalMixedResponse = PostExternalMixedResponses[keyof PostExternalMixedResponses]; + +export type GetExternalArrayData = { + body?: never; + path?: never; + query?: never; + url: '/external-array'; +}; + +export type GetExternalArrayResponses = { + /** + * Response with array of external models + */ + 200: Array; +}; + +export type GetExternalArrayResponse = GetExternalArrayResponses[keyof GetExternalArrayResponses]; + +export type PostExternalArrayData = { + body: Array; + path?: never; + query?: never; + url: '/external-array'; +}; + +export type PostExternalArrayResponses = { + /** + * Response with array of external models + */ + 201: Array; +}; + +export type PostExternalArrayResponse = PostExternalArrayResponses[keyof PostExternalArrayResponses]; + +export type GetExternalUnionData = { + body?: never; + path?: never; + query?: never; + url: '/external-union'; +}; + +export type GetExternalUnionResponses = { + /** + * Response with union of external types + */ + 200: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; +}; + +export type GetExternalUnionResponse = GetExternalUnionResponses[keyof GetExternalUnionResponses]; + +export type PostExternalUnionData = { + body: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; + path?: never; + query?: never; + url: '/external-union'; +}; + +export type PostExternalUnionResponses = { + /** + * Response with union of external types + */ + 201: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; +}; + +export type PostExternalUnionResponse = PostExternalUnionResponses[keyof PostExternalUnionResponses]; + +export type GetExternalPropertiesByIdData = { + body?: never; + headers?: { + deep?: ExternalSharedDeep; + }; + path: { + id: ExternalSharedId; + }; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + }; + url: '/external-properties/{id}'; +}; + +export type GetExternalPropertiesByIdResponses = { + 200: { + id?: ExternalSharedId; + name?: ExternalSharedName; + uuid?: ExternalSharedExternalSharedModelWithUuid; + deep?: ExternalSharedDeep; + numeric?: ExternalShared1; + }; +}; + +export type GetExternalPropertiesByIdResponse = GetExternalPropertiesByIdResponses[keyof GetExternalPropertiesByIdResponses]; + +export type ClientOptions = { + baseUrl: `${string}://${string}` | (string & {}); +}; \ No newline at end of file diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts index f2b3eaf053..5df1a04514 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts @@ -7,21 +7,12 @@ export const _400Schema = { export const ExternalRefASchema = { description: 'External ref to shared model (A)', - type: 'object', - properties: { - id: { - type: 'string' - }, - name: { - type: 'string' - } - }, - required: ['id'] + '$ref': '#/components/schemas/external-shared_ExternalSharedModel' } as const; export const ExternalRefBSchema = { description: 'External ref to shared model (B)', - '$ref': '#/components/schemas/ExternalRefA' + '$ref': '#/components/schemas/external-shared_ExternalSharedModel' } as const; export const camelCaseCommentWithBreaksSchema = { @@ -1999,6 +1990,19 @@ export const Generic_Schema_Duplicate_Issue_1_System_String_Schema = { additionalProperties: false } as const; +export const external_shared_ExternalSharedModelSchema = { + type: 'object', + properties: { + id: { + type: 'string' + }, + name: { + type: 'string' + } + }, + required: ['id'] +} as const; + export const ModelWithPropertiesWritableSchema = { description: 'This is a model with one nested property', type: 'object', diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts index 6ea52c4b73..4c6990e2bb 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts index 6ea52c4b73..4c6990e2bb 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts index 6ea52c4b73..4c6990e2bb 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts index 6ea52c4b73..4c6990e2bb 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts index 6ea52c4b73..4c6990e2bb 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts index 39d454abb4..904b69fed8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts @@ -5,15 +5,9 @@ */ export type _400 = string; -/** - * External ref to shared model (A) - */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -964,6 +958,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/valibot/default/valibot.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/valibot/default/valibot.gen.ts index 26915de129..63ae37c0e9 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/valibot/default/valibot.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/valibot/default/valibot.gen.ts @@ -7,15 +7,14 @@ import * as v from 'valibot'; */ export const v400 = v.string(); -/** - * External ref to shared model (A) - */ -export const vExternalRefA = v.object({ +export const vExternalSharedExternalSharedModel = v.object({ id: v.string(), name: v.optional(v.string()) }); -export const vExternalRefB = vExternalRefA; +export const vExternalRefA = vExternalSharedExternalSharedModel; + +export const vExternalRefB = vExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts index 3b42909a32..98bbb29ab8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts index 6dab9f3e04..dbf7777fac 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts index 6dab9f3e04..dbf7777fac 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts index 3b42909a32..98bbb29ab8 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts index 6dab9f3e04..dbf7777fac 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts index 6dab9f3e04..dbf7777fac 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/external/index.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/external/index.ts new file mode 100644 index 0000000000..56bade120a --- /dev/null +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/external/index.ts @@ -0,0 +1,2 @@ +// This file is auto-generated by @hey-api/openapi-ts +export * from './types.gen'; \ No newline at end of file diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/external/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/external/types.gen.ts new file mode 100644 index 0000000000..90d15b680a --- /dev/null +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/external/types.gen.ts @@ -0,0 +1,472 @@ +// This file is auto-generated by @hey-api/openapi-ts + +/** + * External schema (A) + */ +export type ExternalSchemaA = ExternalSharedExternalSharedModel; + +/** + * External schema (B) - second use of ExternalSharedModel + */ +export type ExternalSchemaB = ExternalSharedExternalSharedModel; + +/** + * External schema (C) - third use of ExternalSharedModel + */ +export type ExternalSchemaC = ExternalSharedExternalSharedModel; + +/** + * External schema via path reference (A) + */ +export type ExternalSchemaPathA = ExternalSharedExternalSharedModel; + +/** + * External schema via path reference (B) - second use + */ +export type ExternalSchemaPathB = ExternalSharedExternalSharedModel; + +/** + * External schema property (A) + */ +export type ExternalSchemaPropertyA = { + uuid1?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property (B) - second use of UUID + */ +export type ExternalSchemaPropertyB = { + uuid2?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property (C) - third use of UUID + */ +export type ExternalSchemaPropertyC = { + uuid3?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property with duplicate refs (D) + */ +export type ExternalSchemaPropertyD = { + uuid4?: ExternalSharedExternalSharedModelWithUuid; + uuid5?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * External schema property via external property ref (id) + */ +export type ExternalSchemaExternalProp = { + id3?: ExternalSharedId; + id4?: ExternalSharedId; +}; + +/** + * Alias to external property via component property ref + */ +export type ExternalSchemaExternalPropAlias = { + id5?: ExternalSharedId; + id6?: ExternalSharedId; +}; + +/** + * External double nested prop via property ref + */ +export type ExternalDoubleNestedProp = { + deep1?: ExternalSharedDeep; + deep2?: ExternalSharedDeep; +}; + +/** + * External double nested numeric properties + */ +export type ExternalDoubleNestedNumeric = { + numeric1?: ExternalShared1; + numeric2?: ExternalShared1; +}; + +/** + * External nested object reference (A) + */ +export type ExternalNestedObjectA = ExternalSharedExternalNested; + +/** + * External nested object reference (B) - second use + */ +export type ExternalNestedObjectB = ExternalSharedExternalNested; + +/** + * External numeric nested object reference (A) + */ +export type ExternalNestedNumericObjectA = ExternalSharedExternalNestedNumeric; + +/** + * External numeric nested object reference (B) - second use + */ +export type ExternalNestedNumericObjectB = ExternalSharedExternalNestedNumeric; + +/** + * Mixed external property references + */ +export type ExternalMixedProperties = { + id7?: ExternalSharedId; + name1?: ExternalSharedName; + uuid6?: ExternalSharedExternalSharedModelWithUuid; + deep3?: ExternalSharedDeep; + numeric3?: ExternalShared1; +}; + +/** + * Array containing external references + */ +export type ExternalArraySchema = { + items?: Array; + uuidItems?: Array; +}; + +/** + * Union type with external references + */ +export type ExternalUnionSchema = ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid; + +/** + * AllOf with external references + */ +export type ExternalAllOfSchema = ExternalSharedExternalSharedModel & { + additional?: ExternalSharedExternalSharedModelWithUuid; +}; + +/** + * AnyOf with external references + */ +export type ExternalAnyOfSchema = ExternalSharedExternalNested | ExternalSharedExternalNestedNumeric; + +export type ExternalSharedExternalNested = { + inner?: { + deep?: string; + }; +}; + +export type ExternalSharedDeep = string; + +export type ExternalSharedExternalNestedNumeric = { + 0?: { + 1?: string; + }; +}; + +export type ExternalShared1 = string; + +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + +export type ExternalSharedId = string; + +export type ExternalSharedName = string; + +export type ExternalSharedExternalSharedModelWithUuid = string; + +export type ExternalIdParam = ExternalSharedId; + +export type ExternalUuidParam = ExternalSharedExternalSharedModelWithUuid; + +export type ExternalDeepParam = ExternalSharedDeep; + +export type ExternalNumericParam = ExternalShared1; + +/** + * Request body using external model + */ +export type ExternalModelBody = ExternalSharedExternalSharedModel; + +/** + * Request body using external UUID + */ +export type ExternalUuidBody = ExternalSharedExternalSharedModelWithUuid; + +/** + * Request body using external nested object + */ +export type ExternalNestedBody = ExternalSharedExternalNested; + +/** + * Request body with mixed external properties + */ +export type ExternalMixedBody = { + id?: ExternalSharedId; + name?: ExternalSharedName; + uuid?: ExternalSharedExternalSharedModelWithUuid; + deep?: ExternalSharedDeep; +}; + +export type GetExternalModelData = { + body?: never; + path: { + id: ExternalSharedId; + }; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + }; + url: '/external-model'; +}; + +export type GetExternalModelErrors = { + /** + * Response using external UUID + */ + 400: ExternalSharedExternalSharedModelWithUuid; +}; + +export type GetExternalModelError = GetExternalModelErrors[keyof GetExternalModelErrors]; + +export type GetExternalModelResponses = { + /** + * Response using external model + */ + 200: ExternalSharedExternalSharedModel; +}; + +export type GetExternalModelResponse = GetExternalModelResponses[keyof GetExternalModelResponses]; + +export type PostExternalModelData = { + /** + * Request body using external model + */ + body: ExternalModelBody; + path?: never; + query?: never; + url: '/external-model'; +}; + +export type PostExternalModelErrors = { + /** + * Response with union of external types + */ + 422: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; +}; + +export type PostExternalModelError = PostExternalModelErrors[keyof PostExternalModelErrors]; + +export type PostExternalModelResponses = { + /** + * Response using external model + */ + 201: ExternalSharedExternalSharedModel; +}; + +export type PostExternalModelResponse = PostExternalModelResponses[keyof PostExternalModelResponses]; + +export type GetExternalUuidData = { + body?: never; + path?: never; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + }; + url: '/external-uuid'; +}; + +export type GetExternalUuidResponses = { + /** + * Response using external UUID + */ + 200: ExternalSharedExternalSharedModelWithUuid; +}; + +export type GetExternalUuidResponse = GetExternalUuidResponses[keyof GetExternalUuidResponses]; + +export type PutExternalUuidData = { + /** + * Request body using external UUID + */ + body?: ExternalUuidBody; + path?: never; + query?: never; + url: '/external-uuid'; +}; + +export type PutExternalUuidResponses = { + /** + * Response using external UUID + */ + 200: ExternalSharedExternalSharedModelWithUuid; +}; + +export type PutExternalUuidResponse = PutExternalUuidResponses[keyof PutExternalUuidResponses]; + +export type GetExternalNestedData = { + body?: never; + headers?: { + deep?: ExternalSharedDeep; + }; + path?: never; + query?: never; + url: '/external-nested'; +}; + +export type GetExternalNestedResponses = { + /** + * Response using external nested object + */ + 200: ExternalSharedExternalNested; +}; + +export type GetExternalNestedResponse = GetExternalNestedResponses[keyof GetExternalNestedResponses]; + +export type PostExternalNestedData = { + /** + * Request body using external nested object + */ + body?: ExternalNestedBody; + path?: never; + query?: never; + url: '/external-nested'; +}; + +export type PostExternalNestedResponses = { + /** + * Response using external nested object + */ + 201: ExternalSharedExternalNested; +}; + +export type PostExternalNestedResponse = PostExternalNestedResponses[keyof PostExternalNestedResponses]; + +export type GetExternalMixedData = { + body?: never; + headers?: { + deep?: ExternalSharedDeep; + }; + path: { + id: ExternalSharedId; + }; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + numeric?: ExternalShared1; + }; + url: '/external-mixed'; +}; + +export type GetExternalMixedResponses = { + /** + * Response with array of external models + */ + 200: Array; +}; + +export type GetExternalMixedResponse = GetExternalMixedResponses[keyof GetExternalMixedResponses]; + +export type PostExternalMixedData = { + /** + * Request body with mixed external properties + */ + body?: ExternalMixedBody; + path?: never; + query?: never; + url: '/external-mixed'; +}; + +export type PostExternalMixedResponses = { + /** + * Response using external model + */ + 201: ExternalSharedExternalSharedModel; +}; + +export type PostExternalMixedResponse = PostExternalMixedResponses[keyof PostExternalMixedResponses]; + +export type GetExternalArrayData = { + body?: never; + path?: never; + query?: never; + url: '/external-array'; +}; + +export type GetExternalArrayResponses = { + /** + * Response with array of external models + */ + 200: Array; +}; + +export type GetExternalArrayResponse = GetExternalArrayResponses[keyof GetExternalArrayResponses]; + +export type PostExternalArrayData = { + body: Array; + path?: never; + query?: never; + url: '/external-array'; +}; + +export type PostExternalArrayResponses = { + /** + * Response with array of external models + */ + 201: Array; +}; + +export type PostExternalArrayResponse = PostExternalArrayResponses[keyof PostExternalArrayResponses]; + +export type GetExternalUnionData = { + body?: never; + path?: never; + query?: never; + url: '/external-union'; +}; + +export type GetExternalUnionResponses = { + /** + * Response with union of external types + */ + 200: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; +}; + +export type GetExternalUnionResponse = GetExternalUnionResponses[keyof GetExternalUnionResponses]; + +export type PostExternalUnionData = { + body: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; + path?: never; + query?: never; + url: '/external-union'; +}; + +export type PostExternalUnionResponses = { + /** + * Response with union of external types + */ + 201: ExternalSharedExternalSharedModel | ExternalSharedExternalSharedModelWithUuid | ExternalSharedExternalNested; +}; + +export type PostExternalUnionResponse = PostExternalUnionResponses[keyof PostExternalUnionResponses]; + +export type GetExternalPropertiesByIdData = { + body?: never; + headers?: { + deep?: ExternalSharedDeep; + }; + path: { + id: ExternalSharedId; + }; + query?: { + uuid?: ExternalSharedExternalSharedModelWithUuid; + }; + url: '/external-properties/{id}'; +}; + +export type GetExternalPropertiesByIdResponses = { + 200: { + id?: ExternalSharedId; + name?: ExternalSharedName; + uuid?: ExternalSharedExternalSharedModelWithUuid; + deep?: ExternalSharedDeep; + numeric?: ExternalShared1; + }; +}; + +export type GetExternalPropertiesByIdResponse = GetExternalPropertiesByIdResponses[keyof GetExternalPropertiesByIdResponses]; + +export type ClientOptions = { + baseUrl: `${string}://${string}` | (string & {}); +}; \ No newline at end of file diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/schemas/default/schemas.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/schemas/default/schemas.gen.ts index 4e3603d9c2..afccf5f14b 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/schemas/default/schemas.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/schemas/default/schemas.gen.ts @@ -7,21 +7,12 @@ export const _400Schema = { export const ExternalRefASchema = { description: 'External ref to shared model (A)', - type: 'object', - properties: { - id: { - type: 'string' - }, - name: { - type: 'string' - } - }, - required: ['id'] + '$ref': '#/components/schemas/external-shared_ExternalSharedModel' } as const; export const ExternalRefBSchema = { description: 'External ref to shared model (B)', - '$ref': '#/components/schemas/ExternalRefA' + '$ref': '#/components/schemas/external-shared_ExternalSharedModel' } as const; export const camelCaseCommentWithBreaksSchema = { @@ -1993,6 +1984,19 @@ export const Generic_Schema_Duplicate_Issue_1_System_String_Schema = { additionalProperties: false } as const; +export const external_shared_ExternalSharedModelSchema = { + type: 'object', + properties: { + id: { + type: 'string' + }, + name: { + type: 'string' + } + }, + required: ['id'] +} as const; + export const ModelWithPropertiesWritableSchema = { description: 'This is a model with one nested property', type: 'object', diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/group-by-tag/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/group-by-tag/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/group-by-tag/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/group-by-tag/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts index 99c884c5ad..b60ef01dd2 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts index a6ae7c8169..f66f6a1f21 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts @@ -8,15 +8,12 @@ export type _400 = string; /** * External ref to shared model (A) */ -export type ExternalRefA = { - id: string; - name?: string; -}; +export type ExternalRefA = ExternalSharedExternalSharedModel; /** * External ref to shared model (B) */ -export type ExternalRefB = ExternalRefA; +export type ExternalRefB = ExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line @@ -974,6 +971,11 @@ export type GenericSchemaDuplicateIssue1SystemString = { readonly hasError?: boolean; }; +export type ExternalSharedExternalSharedModel = { + id: string; + name?: string; +}; + /** * This is a model with one nested property */ diff --git a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/valibot/default/valibot.gen.ts b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/valibot/default/valibot.gen.ts index a5ad1f87ce..f01687633f 100644 --- a/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/valibot/default/valibot.gen.ts +++ b/packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/valibot/default/valibot.gen.ts @@ -7,18 +7,20 @@ import * as v from 'valibot'; */ export const v400 = v.string(); -/** - * External ref to shared model (A) - */ -export const vExternalRefA = v.object({ +export const vExternalSharedExternalSharedModel = v.object({ id: v.string(), name: v.optional(v.string()) }); +/** + * External ref to shared model (A) + */ +export const vExternalRefA = vExternalSharedExternalSharedModel; + /** * External ref to shared model (B) */ -export const vExternalRefB = vExternalRefA; +export const vExternalRefB = vExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/specs/2.0.x/external-shared.json b/packages/openapi-ts-tests/specs/2.0.x/external-shared.json index ed014d7904..423e900363 100644 --- a/packages/openapi-ts-tests/specs/2.0.x/external-shared.json +++ b/packages/openapi-ts-tests/specs/2.0.x/external-shared.json @@ -1,10 +1,38 @@ { - "ExternalSharedModel": { - "type": "object", - "properties": { - "id": { "type": "string" }, - "name": { "type": "string" } + "definitions": { + "ExternalSharedModel": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["id"] }, - "required": ["id"] + "ExternalSharedModelWithUuid": { + "type": "string", + "format": "uuid" + }, + "ExternalNested": { + "type": "object", + "properties": { + "inner": { + "type": "object", + "properties": { + "deep": { "type": "string" } + } + } + } + }, + "ExternalNestedNumeric": { + "type": "object", + "properties": { + "0": { + "type": "object", + "properties": { + "1": { "type": "string" } + } + } + } + } } } diff --git a/packages/openapi-ts-tests/specs/2.0.x/external.yaml b/packages/openapi-ts-tests/specs/2.0.x/external.yaml new file mode 100644 index 0000000000..0c483b82da --- /dev/null +++ b/packages/openapi-ts-tests/specs/2.0.x/external.yaml @@ -0,0 +1,405 @@ +swagger: '2.0' +info: + title: Swagger 2.0 external example + version: 1 +# Paths using external references +paths: + /external-model: + get: + summary: Get external model + parameters: + - $ref: '#/parameters/ExternalIdParam' + - $ref: '#/parameters/ExternalUuidParam' + responses: + '200': + $ref: '#/responses/ExternalModelResponse' + '400': + $ref: '#/responses/ExternalUuidResponse' + post: + summary: Create external model + parameters: + - $ref: '#/parameters/ExternalModelBody' + responses: + '201': + $ref: '#/responses/ExternalModelResponse' + '422': + $ref: '#/responses/ExternalUnionResponse' + + /external-uuid: + get: + summary: Get external UUID + parameters: + - $ref: '#/parameters/ExternalUuidParam' + responses: + '200': + $ref: '#/responses/ExternalUuidResponse' + put: + summary: Update external UUID + parameters: + - $ref: '#/parameters/ExternalUuidBody' + responses: + '200': + $ref: '#/responses/ExternalUuidResponse' + + /external-nested: + get: + summary: Get external nested object + parameters: + - $ref: '#/parameters/ExternalDeepParam' + responses: + '200': + $ref: '#/responses/ExternalNestedResponse' + post: + summary: Create external nested object + parameters: + - $ref: '#/parameters/ExternalNestedBody' + responses: + '201': + $ref: '#/responses/ExternalNestedResponse' + + /external-mixed: + get: + summary: Get mixed external data + parameters: + - $ref: '#/parameters/ExternalIdParam' + - $ref: '#/parameters/ExternalUuidParam' + - $ref: '#/parameters/ExternalDeepParam' + - $ref: '#/parameters/ExternalNumericParam' + responses: + '200': + $ref: '#/responses/ExternalArrayResponse' + post: + summary: Create mixed external data + parameters: + - $ref: '#/parameters/ExternalMixedBody' + responses: + '201': + $ref: '#/responses/ExternalModelResponse' + + /external-array: + get: + summary: Get array of external models + responses: + '200': + $ref: '#/responses/ExternalArrayResponse' + post: + summary: Create array of external models + parameters: + - name: body + in: body + required: true + schema: + type: array + items: + $ref: './external-shared.json#/definitions/ExternalSharedModel' + responses: + '201': + $ref: '#/responses/ExternalArrayResponse' + + /external-union: + get: + summary: Get union of external types + responses: + '200': + $ref: '#/responses/ExternalUnionResponse' + post: + summary: Create union of external types + parameters: + - name: body + in: body + required: true + schema: + oneOf: + - $ref: './external-shared.json#/definitions/ExternalSharedModel' + - $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/definitions/ExternalNested' + responses: + '201': + $ref: '#/responses/ExternalUnionResponse' + + /external-properties/{id}: + get: + summary: Get external properties + parameters: + - name: id + in: path + required: true + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/id' + - name: uuid + in: query + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + - name: deep + in: header + schema: + $ref: './external-shared.json#/definitions/ExternalNested/properties/inner/properties/deep' + responses: + '200': + schema: + type: object + properties: + id: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/id' + name: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/name' + uuid: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + deep: + $ref: './external-shared.json#/definitions/ExternalNested/properties/inner/properties/deep' + numeric: + $ref: './external-shared.json#/definitions/ExternalNestedNumeric/properties/0/properties/1' + +# Definitions (equivalent to components/schemas in OpenAPI 3.0) +definitions: + # Basic external schema references (multiple uses of each type) + ExternalSchemaA: + description: External schema (A) + $ref: './external-shared.json#/definitions/ExternalSharedModel' + ExternalSchemaB: + description: External schema (B) - second use of ExternalSharedModel + $ref: './external-shared.json#/definitions/ExternalSharedModel' + ExternalSchemaC: + description: External schema (C) - third use of ExternalSharedModel + $ref: './external-shared.json#/definitions/ExternalSharedModel' + + # Path-based references using /path syntax + ExternalSchemaPathA: + description: External schema via path reference (A) + $ref: './external-shared.json#/definitions/ExternalSharedModel' + ExternalSchemaPathB: + description: External schema via path reference (B) - second use + $ref: './external-shared.json#/definitions/ExternalSharedModel' + + # UUID type references (multiple uses) + ExternalSchemaPropertyA: + description: External schema property (A) + type: object + properties: + uuid1: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + ExternalSchemaPropertyB: + description: External schema property (B) - second use of UUID + type: object + properties: + uuid2: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + ExternalSchemaPropertyC: + description: External schema property (C) - third use of UUID + type: object + properties: + uuid3: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + + # Duplicate refs in same schema + ExternalSchemaPropertyD: + description: External schema property with duplicate refs (D) + type: object + properties: + uuid4: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + uuid5: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + + # External property references + ExternalSchemaExternalProp: + description: External schema property via external property ref (id) + type: object + properties: + id3: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/id' + id4: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/id' + + # Alias references + ExternalSchemaExternalPropAlias: + description: Alias to external property via component property ref + type: object + properties: + id5: + $ref: '#/definitions/ExternalSchemaExternalProp/properties/id3' + id6: + $ref: '#/definitions/ExternalSchemaExternalProp/properties/id4' + + # Nested property references (multiple uses) + ExternalDoubleNestedProp: + description: External double nested prop via property ref + type: object + properties: + deep1: + $ref: './external-shared.json#/definitions/ExternalNested/properties/inner/properties/deep' + deep2: + $ref: './external-shared.json#/definitions/ExternalNested/properties/inner/properties/deep' + + # Numeric property references (multiple uses) + ExternalDoubleNestedNumeric: + description: External double nested numeric properties + type: object + properties: + numeric1: + $ref: './external-shared.json#/definitions/ExternalNestedNumeric/properties/0/properties/1' + numeric2: + $ref: './external-shared.json#/definitions/ExternalNestedNumeric/properties/0/properties/1' + + # Complex nested object references + ExternalNestedObjectA: + description: External nested object reference (A) + $ref: './external-shared.json#/definitions/ExternalNested' + ExternalNestedObjectB: + description: External nested object reference (B) - second use + $ref: './external-shared.json#/definitions/ExternalNested' + + # Numeric nested object references + ExternalNestedNumericObjectA: + description: External numeric nested object reference (A) + $ref: './external-shared.json#/definitions/ExternalNestedNumeric' + ExternalNestedNumericObjectB: + description: External numeric nested object reference (B) - second use + $ref: './external-shared.json#/definitions/ExternalNestedNumeric' + + # Mixed property references + ExternalMixedProperties: + description: Mixed external property references + type: object + properties: + id7: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/id' + name1: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/name' + uuid6: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + deep3: + $ref: './external-shared.json#/definitions/ExternalNested/properties/inner/properties/deep' + numeric3: + $ref: './external-shared.json#/definitions/ExternalNestedNumeric/properties/0/properties/1' + + # Array of external references + ExternalArraySchema: + description: Array containing external references + type: object + properties: + items: + type: array + items: + $ref: './external-shared.json#/definitions/ExternalSharedModel' + uuidItems: + type: array + items: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + + # Union types with external references + ExternalUnionSchema: + description: Union type with external references + oneOf: + - $ref: './external-shared.json#/definitions/ExternalSharedModel' + - $ref: './external-shared.json#/definitions/ExternalSharedModel' + - $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + + # AllOf with external references + ExternalAllOfSchema: + description: AllOf with external references + allOf: + - $ref: './external-shared.json#/definitions/ExternalSharedModel' + - $ref: './external-shared.json#/definitions/ExternalSharedModel' + - type: object + properties: + additional: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + + # AnyOf with external references + ExternalAnyOfSchema: + description: AnyOf with external references + anyOf: + - $ref: './external-shared.json#/definitions/ExternalNested' + - $ref: './external-shared.json#/definitions/ExternalNested' + - $ref: './external-shared.json#/definitions/ExternalNestedNumeric' + - $ref: './external-shared.json#/definitions/ExternalNestedNumeric' + +# Parameters using external references +parameters: + ExternalIdParam: + name: id + in: path + required: true + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/id' + ExternalUuidParam: + name: uuid + in: query + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + ExternalDeepParam: + name: deep + in: header + schema: + $ref: './external-shared.json#/definitions/ExternalNested/properties/inner/properties/deep' + ExternalNumericParam: + name: numeric + in: query + schema: + $ref: './external-shared.json#/definitions/ExternalNestedNumeric/properties/0/properties/1' + + # Request bodies using external references + ExternalModelBody: + name: body + in: body + description: Request body using external model + required: true + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModel' + ExternalUuidBody: + name: body + in: body + description: Request body using external UUID + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + ExternalNestedBody: + name: body + in: body + description: Request body using external nested object + schema: + $ref: './external-shared.json#/definitions/ExternalNested' + ExternalMixedBody: + name: body + in: body + description: Request body with mixed external properties + schema: + type: object + properties: + id: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/id' + name: + $ref: './external-shared.json#/definitions/ExternalSharedModel/properties/name' + uuid: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + deep: + $ref: './external-shared.json#/definitions/ExternalNested/properties/inner/properties/deep' + +# Responses using external references +responses: + ExternalModelResponse: + description: Response using external model + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModel' + ExternalUuidResponse: + description: Response using external UUID + schema: + $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + ExternalNestedResponse: + description: Response using external nested object + schema: + $ref: './external-shared.json#/definitions/ExternalNested' + ExternalArrayResponse: + description: Response with array of external models + schema: + type: array + items: + $ref: './external-shared.json#/definitions/ExternalSharedModel' + ExternalUnionResponse: + description: Response with union of external types + schema: + oneOf: + - $ref: './external-shared.json#/definitions/ExternalSharedModel' + - $ref: './external-shared.json#/definitions/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/definitions/ExternalNested' diff --git a/packages/openapi-ts-tests/specs/2.0.x/full.yaml b/packages/openapi-ts-tests/specs/2.0.x/full.yaml index fc909ea359..cd6dbbc1b7 100644 --- a/packages/openapi-ts-tests/specs/2.0.x/full.yaml +++ b/packages/openapi-ts-tests/specs/2.0.x/full.yaml @@ -683,10 +683,10 @@ paths: definitions: ExternalRefA: description: External ref to shared model (A) - $ref: './external-shared.json#/ExternalSharedModel' + $ref: './external-shared.json#/definitions/ExternalSharedModel' ExternalRefB: description: External ref to shared model (B) - $ref: './external-shared.json#/ExternalSharedModel' + $ref: './external-shared.json#/definitions/ExternalSharedModel' CommentWithBreaks: description: |- Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/specs/3.0.x/external-shared.json b/packages/openapi-ts-tests/specs/3.0.x/external-shared.json index ed014d7904..278ab0761e 100644 --- a/packages/openapi-ts-tests/specs/3.0.x/external-shared.json +++ b/packages/openapi-ts-tests/specs/3.0.x/external-shared.json @@ -1,10 +1,40 @@ { - "ExternalSharedModel": { - "type": "object", - "properties": { - "id": { "type": "string" }, - "name": { "type": "string" } - }, - "required": ["id"] + "components": { + "schemas": { + "ExternalSharedModel": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["id"] + }, + "ExternalSharedModelWithUuid": { + "type": "string", + "format": "uuid" + }, + "ExternalNested": { + "type": "object", + "properties": { + "inner": { + "type": "object", + "properties": { + "deep": { "type": "string" } + } + } + } + }, + "ExternalNestedNumeric": { + "type": "object", + "properties": { + "0": { + "type": "object", + "properties": { + "1": { "type": "string" } + } + } + } + } + } } } diff --git a/packages/openapi-ts-tests/specs/3.0.x/external.yaml b/packages/openapi-ts-tests/specs/3.0.x/external.yaml new file mode 100644 index 0000000000..757cb4dbbd --- /dev/null +++ b/packages/openapi-ts-tests/specs/3.0.x/external.yaml @@ -0,0 +1,433 @@ +openapi: 3.0.0 +info: + title: OpenAPI 3.0 external example + version: 1 +# Paths using external references +paths: + /external-model: + get: + summary: Get external model + parameters: + - $ref: '#/components/parameters/ExternalIdParam' + - $ref: '#/components/parameters/ExternalUuidParam' + responses: + '200': + $ref: '#/components/responses/ExternalModelResponse' + '400': + $ref: '#/components/responses/ExternalUuidResponse' + post: + summary: Create external model + requestBody: + $ref: '#/components/requestBodies/ExternalModelBody' + responses: + '201': + $ref: '#/components/responses/ExternalModelResponse' + '422': + $ref: '#/components/responses/ExternalUnionResponse' + + /external-uuid: + get: + summary: Get external UUID + parameters: + - $ref: '#/components/parameters/ExternalUuidParam' + responses: + '200': + $ref: '#/components/responses/ExternalUuidResponse' + put: + summary: Update external UUID + requestBody: + $ref: '#/components/requestBodies/ExternalUuidBody' + responses: + '200': + $ref: '#/components/responses/ExternalUuidResponse' + + /external-nested: + get: + summary: Get external nested object + parameters: + - $ref: '#/components/parameters/ExternalDeepParam' + responses: + '200': + $ref: '#/components/responses/ExternalNestedResponse' + post: + summary: Create external nested object + requestBody: + $ref: '#/components/requestBodies/ExternalNestedBody' + responses: + '201': + $ref: '#/components/responses/ExternalNestedResponse' + + /external-mixed: + get: + summary: Get mixed external data + parameters: + - $ref: '#/components/parameters/ExternalIdParam' + - $ref: '#/components/parameters/ExternalUuidParam' + - $ref: '#/components/parameters/ExternalDeepParam' + - $ref: '#/components/parameters/ExternalNumericParam' + responses: + '200': + $ref: '#/components/responses/ExternalArrayResponse' + post: + summary: Create mixed external data + requestBody: + $ref: '#/components/requestBodies/ExternalMixedBody' + responses: + '201': + $ref: '#/components/responses/ExternalModelResponse' + + /external-array: + get: + summary: Get array of external models + responses: + '200': + $ref: '#/components/responses/ExternalArrayResponse' + post: + summary: Create array of external models + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + required: true + responses: + '201': + $ref: '#/components/responses/ExternalArrayResponse' + + /external-union: + get: + summary: Get union of external types + responses: + '200': + $ref: '#/components/responses/ExternalUnionResponse' + post: + summary: Create union of external types + requestBody: + content: + application/json: + schema: + oneOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/components/schemas/ExternalNested' + required: true + responses: + '201': + $ref: '#/components/responses/ExternalUnionResponse' + + /external-properties/{id}: + get: + summary: Get external properties + parameters: + - name: id + in: path + required: true + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + - name: uuid + in: query + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - name: deep + in: header + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + responses: + '200': + content: + application/json: + schema: + type: object + properties: + id: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + name: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/name' + uuid: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + deep: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + numeric: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + +components: + schemas: + # Basic external schema references (multiple uses of each type) + ExternalSchemaA: + description: External schema (A) + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalSchemaB: + description: External schema (B) - second use of ExternalSharedModel + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalSchemaC: + description: External schema (C) - third use of ExternalSharedModel + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + + # Path-based references using /path syntax + ExternalSchemaPathA: + description: External schema via path reference (A) + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalSchemaPathB: + description: External schema via path reference (B) - second use + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + + # UUID type references (multiple uses) + ExternalSchemaPropertyA: + description: External schema property (A) + type: object + properties: + uuid1: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalSchemaPropertyB: + description: External schema property (B) - second use of UUID + type: object + properties: + uuid2: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalSchemaPropertyC: + description: External schema property (C) - third use of UUID + type: object + properties: + uuid3: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # Duplicate refs in same schema + ExternalSchemaPropertyD: + description: External schema property with duplicate refs (D) + type: object + properties: + uuid4: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + uuid5: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # External property references + ExternalSchemaExternalProp: + description: External schema property via external property ref (id) + type: object + properties: + id3: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + id4: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + + # Alias references + ExternalSchemaExternalPropAlias: + description: Alias to external property via component property ref + type: object + properties: + id5: + $ref: '#/components/schemas/ExternalSchemaExternalProp/properties/id3' + id6: + $ref: '#/components/schemas/ExternalSchemaExternalProp/properties/id4' + + # Nested property references (multiple uses) + ExternalDoubleNestedProp: + description: External double nested prop via property ref + type: object + properties: + deep1: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + deep2: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + + # Numeric property references (multiple uses) + ExternalDoubleNestedNumeric: + description: External double nested numeric properties + type: object + properties: + numeric1: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + numeric2: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + + # Complex nested object references + ExternalNestedObjectA: + description: External nested object reference (A) + $ref: './external-shared.json#/components/schemas/ExternalNested' + ExternalNestedObjectB: + description: External nested object reference (B) - second use + $ref: './external-shared.json#/components/schemas/ExternalNested' + + # Numeric nested object references + ExternalNestedNumericObjectA: + description: External numeric nested object reference (A) + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + ExternalNestedNumericObjectB: + description: External numeric nested object reference (B) - second use + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + + # Mixed property references + ExternalMixedProperties: + description: Mixed external property references + type: object + properties: + id7: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + name1: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/name' + uuid6: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + deep3: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + numeric3: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + + # Array of external references + ExternalArraySchema: + description: Array containing external references + type: object + properties: + items: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + uuidItems: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # Union types with external references + ExternalUnionSchema: + description: Union type with external references + oneOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # AllOf with external references + ExternalAllOfSchema: + description: AllOf with external references + allOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - type: object + properties: + additional: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # AnyOf with external references + ExternalAnyOfSchema: + description: AnyOf with external references + anyOf: + - $ref: './external-shared.json#/components/schemas/ExternalNested' + - $ref: './external-shared.json#/components/schemas/ExternalNested' + - $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + - $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + + # Parameters using external references + parameters: + ExternalIdParam: + name: id + in: path + required: true + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + ExternalUuidParam: + name: uuid + in: query + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalDeepParam: + name: deep + in: header + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + ExternalNumericParam: + name: numeric + in: query + schema: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + + # Request bodies using external references + requestBodies: + ExternalModelBody: + description: Request body using external model + required: true + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalUuidBody: + description: Request body using external UUID + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalNestedBody: + description: Request body using external nested object + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested' + ExternalMixedBody: + description: Request body with mixed external properties + content: + application/json: + schema: + type: object + properties: + id: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + name: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/name' + uuid: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + deep: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + + # Responses using external references + responses: + ExternalModelResponse: + description: Response using external model + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalUuidResponse: + description: Response using external UUID + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalNestedResponse: + description: Response using external nested object + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested' + ExternalArrayResponse: + description: Response with array of external models + content: + application/json: + schema: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalUnionResponse: + description: Response with union of external types + content: + application/json: + schema: + oneOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/components/schemas/ExternalNested' + + # Headers using external references + headers: + ExternalIdHeader: + description: Header using external ID property + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + ExternalUuidHeader: + description: Header using external UUID + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalDeepHeader: + description: Header using external deep property + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' diff --git a/packages/openapi-ts-tests/specs/3.0.x/full.yaml b/packages/openapi-ts-tests/specs/3.0.x/full.yaml index c1348f6edf..584be1ddda 100644 --- a/packages/openapi-ts-tests/specs/3.0.x/full.yaml +++ b/packages/openapi-ts-tests/specs/3.0.x/full.yaml @@ -1236,10 +1236,10 @@ components: schemas: ExternalRefA: description: External ref to shared model (A) - $ref: './external-shared.json#/ExternalSharedModel' + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' ExternalRefB: description: External ref to shared model (B) - $ref: './external-shared.json#/ExternalSharedModel' + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' '400': description: Model with number-only name type: string diff --git a/packages/openapi-ts-tests/specs/3.1.x/external-shared.json b/packages/openapi-ts-tests/specs/3.1.x/external-shared.json index ed014d7904..278ab0761e 100644 --- a/packages/openapi-ts-tests/specs/3.1.x/external-shared.json +++ b/packages/openapi-ts-tests/specs/3.1.x/external-shared.json @@ -1,10 +1,40 @@ { - "ExternalSharedModel": { - "type": "object", - "properties": { - "id": { "type": "string" }, - "name": { "type": "string" } - }, - "required": ["id"] + "components": { + "schemas": { + "ExternalSharedModel": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["id"] + }, + "ExternalSharedModelWithUuid": { + "type": "string", + "format": "uuid" + }, + "ExternalNested": { + "type": "object", + "properties": { + "inner": { + "type": "object", + "properties": { + "deep": { "type": "string" } + } + } + } + }, + "ExternalNestedNumeric": { + "type": "object", + "properties": { + "0": { + "type": "object", + "properties": { + "1": { "type": "string" } + } + } + } + } + } } } diff --git a/packages/openapi-ts-tests/specs/3.1.x/external.yaml b/packages/openapi-ts-tests/specs/3.1.x/external.yaml new file mode 100644 index 0000000000..b688225b27 --- /dev/null +++ b/packages/openapi-ts-tests/specs/3.1.x/external.yaml @@ -0,0 +1,433 @@ +openapi: 3.1.1 +info: + title: OpenAPI 3.1.1 external example + version: 1 +# Paths using external references +paths: + /external-model: + get: + summary: Get external model + parameters: + - $ref: '#/components/parameters/ExternalIdParam' + - $ref: '#/components/parameters/ExternalUuidParam' + responses: + '200': + $ref: '#/components/responses/ExternalModelResponse' + '400': + $ref: '#/components/responses/ExternalUuidResponse' + post: + summary: Create external model + requestBody: + $ref: '#/components/requestBodies/ExternalModelBody' + responses: + '201': + $ref: '#/components/responses/ExternalModelResponse' + '422': + $ref: '#/components/responses/ExternalUnionResponse' + + /external-uuid: + get: + summary: Get external UUID + parameters: + - $ref: '#/components/parameters/ExternalUuidParam' + responses: + '200': + $ref: '#/components/responses/ExternalUuidResponse' + put: + summary: Update external UUID + requestBody: + $ref: '#/components/requestBodies/ExternalUuidBody' + responses: + '200': + $ref: '#/components/responses/ExternalUuidResponse' + + /external-nested: + get: + summary: Get external nested object + parameters: + - $ref: '#/components/parameters/ExternalDeepParam' + responses: + '200': + $ref: '#/components/responses/ExternalNestedResponse' + post: + summary: Create external nested object + requestBody: + $ref: '#/components/requestBodies/ExternalNestedBody' + responses: + '201': + $ref: '#/components/responses/ExternalNestedResponse' + + /external-mixed: + get: + summary: Get mixed external data + parameters: + - $ref: '#/components/parameters/ExternalIdParam' + - $ref: '#/components/parameters/ExternalUuidParam' + - $ref: '#/components/parameters/ExternalDeepParam' + - $ref: '#/components/parameters/ExternalNumericParam' + responses: + '200': + $ref: '#/components/responses/ExternalArrayResponse' + post: + summary: Create mixed external data + requestBody: + $ref: '#/components/requestBodies/ExternalMixedBody' + responses: + '201': + $ref: '#/components/responses/ExternalModelResponse' + + /external-array: + get: + summary: Get array of external models + responses: + '200': + $ref: '#/components/responses/ExternalArrayResponse' + post: + summary: Create array of external models + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + required: true + responses: + '201': + $ref: '#/components/responses/ExternalArrayResponse' + + /external-union: + get: + summary: Get union of external types + responses: + '200': + $ref: '#/components/responses/ExternalUnionResponse' + post: + summary: Create union of external types + requestBody: + content: + application/json: + schema: + oneOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/components/schemas/ExternalNested' + required: true + responses: + '201': + $ref: '#/components/responses/ExternalUnionResponse' + + /external-properties/{id}: + get: + summary: Get external properties + parameters: + - name: id + in: path + required: true + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + - name: uuid + in: query + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - name: deep + in: header + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + responses: + '200': + content: + application/json: + schema: + type: object + properties: + id: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + name: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/name' + uuid: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + deep: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + numeric: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + +components: + schemas: + # Basic external schema references (multiple uses of each type) + ExternalSchemaA: + description: External schema (A) + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalSchemaB: + description: External schema (B) - second use of ExternalSharedModel + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalSchemaC: + description: External schema (C) - third use of ExternalSharedModel + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + + # Path-based references using /path syntax + ExternalSchemaPathA: + description: External schema via path reference (A) + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalSchemaPathB: + description: External schema via path reference (B) - second use + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + + # UUID type references (multiple uses) + ExternalSchemaPropertyA: + description: External schema property (A) + type: object + properties: + uuid1: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalSchemaPropertyB: + description: External schema property (B) - second use of UUID + type: object + properties: + uuid2: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalSchemaPropertyC: + description: External schema property (C) - third use of UUID + type: object + properties: + uuid3: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # Duplicate refs in same schema + ExternalSchemaPropertyD: + description: External schema property with duplicate refs (D) + type: object + properties: + uuid4: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + uuid5: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # External property references + ExternalSchemaExternalProp: + description: External schema property via external property ref (id) + type: object + properties: + id3: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + id4: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + + # Alias references + ExternalSchemaExternalPropAlias: + description: Alias to external property via component property ref + type: object + properties: + id5: + $ref: '#/components/schemas/ExternalSchemaExternalProp/properties/id3' + id6: + $ref: '#/components/schemas/ExternalSchemaExternalProp/properties/id4' + + # Nested property references (multiple uses) + ExternalDoubleNestedProp: + description: External double nested prop via property ref + type: object + properties: + deep1: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + deep2: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + + # Numeric property references (multiple uses) + ExternalDoubleNestedNumeric: + description: External double nested numeric properties + type: object + properties: + numeric1: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + numeric2: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + + # Complex nested object references + ExternalNestedObjectA: + description: External nested object reference (A) + $ref: './external-shared.json#/components/schemas/ExternalNested' + ExternalNestedObjectB: + description: External nested object reference (B) - second use + $ref: './external-shared.json#/components/schemas/ExternalNested' + + # Numeric nested object references + ExternalNestedNumericObjectA: + description: External numeric nested object reference (A) + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + ExternalNestedNumericObjectB: + description: External numeric nested object reference (B) - second use + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + + # Mixed property references + ExternalMixedProperties: + description: Mixed external property references + type: object + properties: + id7: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + name1: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/name' + uuid6: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + deep3: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + numeric3: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + + # Array of external references + ExternalArraySchema: + description: Array containing external references + type: object + properties: + items: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + uuidItems: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # Union types with external references + ExternalUnionSchema: + description: Union type with external references + oneOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # AllOf with external references + ExternalAllOfSchema: + description: AllOf with external references + allOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - type: object + properties: + additional: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + + # AnyOf with external references + ExternalAnyOfSchema: + description: AnyOf with external references + anyOf: + - $ref: './external-shared.json#/components/schemas/ExternalNested' + - $ref: './external-shared.json#/components/schemas/ExternalNested' + - $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + - $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric' + + # Parameters using external references + parameters: + ExternalIdParam: + name: id + in: path + required: true + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + ExternalUuidParam: + name: uuid + in: query + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalDeepParam: + name: deep + in: header + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + ExternalNumericParam: + name: numeric + in: query + schema: + $ref: './external-shared.json#/components/schemas/ExternalNestedNumeric/properties/0/properties/1' + + # Request bodies using external references + requestBodies: + ExternalModelBody: + description: Request body using external model + required: true + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalUuidBody: + description: Request body using external UUID + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalNestedBody: + description: Request body using external nested object + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested' + ExternalMixedBody: + description: Request body with mixed external properties + content: + application/json: + schema: + type: object + properties: + id: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + name: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/name' + uuid: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + deep: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' + + # Responses using external references + responses: + ExternalModelResponse: + description: Response using external model + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalUuidResponse: + description: Response using external UUID + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalNestedResponse: + description: Response using external nested object + content: + application/json: + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested' + ExternalArrayResponse: + description: Response with array of external models + content: + application/json: + schema: + type: array + items: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + ExternalUnionResponse: + description: Response with union of external types + content: + application/json: + schema: + oneOf: + - $ref: './external-shared.json#/components/schemas/ExternalSharedModel' + - $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + - $ref: './external-shared.json#/components/schemas/ExternalNested' + + # Headers using external references + headers: + ExternalIdHeader: + description: Header using external ID property + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModel/properties/id' + ExternalUuidHeader: + description: Header using external UUID + schema: + $ref: './external-shared.json#/components/schemas/ExternalSharedModelWithUuid' + ExternalDeepHeader: + description: Header using external deep property + schema: + $ref: './external-shared.json#/components/schemas/ExternalNested/properties/inner/properties/deep' diff --git a/packages/openapi-ts-tests/specs/3.1.x/full.yaml b/packages/openapi-ts-tests/specs/3.1.x/full.yaml index a3fdaca882..fcf589175d 100644 --- a/packages/openapi-ts-tests/specs/3.1.x/full.yaml +++ b/packages/openapi-ts-tests/specs/3.1.x/full.yaml @@ -1269,10 +1269,10 @@ components: schemas: ExternalRefA: description: External ref to shared model (A) - $ref: './external-shared.json#/ExternalSharedModel' + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' ExternalRefB: description: External ref to shared model (B) - $ref: './external-shared.json#/ExternalSharedModel' + $ref: './external-shared.json#/components/schemas/ExternalSharedModel' '400': description: Model with number-only name type: string diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/mini/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/mini/default/zod.gen.ts index cb368ca32b..fac119ef00 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/mini/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/mini/default/zod.gen.ts @@ -2,15 +2,14 @@ import * as z from 'zod/v4-mini'; -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v3/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v3/default/zod.gen.ts index cb36aceab1..1994455360 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v3/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v3/default/zod.gen.ts @@ -2,15 +2,14 @@ import { z } from 'zod'; -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.string().optional() }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v4/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v4/default/zod.gen.ts index a91f5d3a28..bd11e0d9e4 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v4/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v4/default/zod.gen.ts @@ -2,15 +2,14 @@ import { z } from 'zod/v4'; -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/mini/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/mini/default/zod.gen.ts index 00db31941a..94712ccd06 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/mini/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/mini/default/zod.gen.ts @@ -7,15 +7,14 @@ import * as z from 'zod/v4-mini'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v3/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v3/default/zod.gen.ts index c20ab70d35..fa93133dab 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v3/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v3/default/zod.gen.ts @@ -7,15 +7,14 @@ import { z } from 'zod'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.string().optional() }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v4/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v4/default/zod.gen.ts index 421e0aa850..5a6d908346 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v4/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v4/default/zod.gen.ts @@ -7,15 +7,14 @@ import { z } from 'zod/v4'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/mini/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/mini/default/zod.gen.ts index 16a5124de3..f292838d9a 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/mini/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/mini/default/zod.gen.ts @@ -7,18 +7,20 @@ import * as z from 'zod/v4-mini'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); +/** + * External ref to shared model (A) + */ +export const zExternalRefA = zExternalSharedExternalSharedModel; + /** * External ref to shared model (B) */ -export const zExternalRefB = zExternalRefA; +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v3/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v3/default/zod.gen.ts index f26162507f..284af38ad3 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v3/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v3/default/zod.gen.ts @@ -7,18 +7,20 @@ import { z } from 'zod'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.string().optional() }); +/** + * External ref to shared model (A) + */ +export const zExternalRefA = zExternalSharedExternalSharedModel; + /** * External ref to shared model (B) */ -export const zExternalRefB = zExternalRefA; +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v4/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v4/default/zod.gen.ts index 58d7f2983d..c6380f76b1 100644 --- a/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v4/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v4/default/zod.gen.ts @@ -7,18 +7,20 @@ import { z } from 'zod/v4'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); +/** + * External ref to shared model (A) + */ +export const zExternalRefA = zExternalSharedExternalSharedModel; + /** * External ref to shared model (B) */ -export const zExternalRefB = zExternalRefA; +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/mini/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/mini/default/zod.gen.ts index 0f536bb70c..b1217abc0b 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/mini/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/mini/default/zod.gen.ts @@ -2,15 +2,14 @@ import * as z from 'zod/mini'; -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v3/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v3/default/zod.gen.ts index a7b39717f7..ce259bece6 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v3/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v3/default/zod.gen.ts @@ -2,15 +2,14 @@ import { z } from 'zod/v3'; -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.string().optional() }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v4/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v4/default/zod.gen.ts index 851cea9c14..31b6dd3b8e 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v4/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v4/default/zod.gen.ts @@ -2,15 +2,14 @@ import { z } from 'zod'; -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/mini/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/mini/default/zod.gen.ts index b31658b3b6..315648e1ba 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/mini/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/mini/default/zod.gen.ts @@ -7,15 +7,14 @@ import * as z from 'zod/mini'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v3/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v3/default/zod.gen.ts index 668ef7ffc6..83b4147f17 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v3/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v3/default/zod.gen.ts @@ -7,15 +7,14 @@ import { z } from 'zod/v3'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.string().optional() }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v4/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v4/default/zod.gen.ts index 234a81b113..be696c929f 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v4/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v4/default/zod.gen.ts @@ -7,15 +7,14 @@ import { z } from 'zod'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); -export const zExternalRefB = zExternalRefA; +export const zExternalRefA = zExternalSharedExternalSharedModel; + +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/mini/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/mini/default/zod.gen.ts index a03ea93703..03bb3d55e7 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/mini/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/mini/default/zod.gen.ts @@ -7,18 +7,20 @@ import * as z from 'zod/mini'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); +/** + * External ref to shared model (A) + */ +export const zExternalRefA = zExternalSharedExternalSharedModel; + /** * External ref to shared model (B) */ -export const zExternalRefB = zExternalRefA; +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v3/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v3/default/zod.gen.ts index fb5e064a9e..1015dc00d5 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v3/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v3/default/zod.gen.ts @@ -7,18 +7,20 @@ import { z } from 'zod/v3'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.string().optional() }); +/** + * External ref to shared model (A) + */ +export const zExternalRefA = zExternalSharedExternalSharedModel; + /** * External ref to shared model (B) */ -export const zExternalRefB = zExternalRefA; +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v4/default/zod.gen.ts b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v4/default/zod.gen.ts index c5ef40b219..f84bc5d097 100644 --- a/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v4/default/zod.gen.ts +++ b/packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v4/default/zod.gen.ts @@ -7,18 +7,20 @@ import { z } from 'zod'; */ export const z400 = z.string(); -/** - * External ref to shared model (A) - */ -export const zExternalRefA = z.object({ +export const zExternalSharedExternalSharedModel = z.object({ id: z.string(), name: z.optional(z.string()) }); +/** + * External ref to shared model (A) + */ +export const zExternalRefA = zExternalSharedExternalSharedModel; + /** * External ref to shared model (B) */ -export const zExternalRefB = zExternalRefA; +export const zExternalRefB = zExternalSharedExternalSharedModel; /** * Testing multiline comments in string: First line diff --git a/packages/openapi-ts/package.json b/packages/openapi-ts/package.json index a91e20513d..bd78319f39 100644 --- a/packages/openapi-ts/package.json +++ b/packages/openapi-ts/package.json @@ -89,7 +89,7 @@ }, "dependencies": { "@hey-api/codegen-core": "workspace:^0.0.1", - "@hey-api/json-schema-ref-parser": "1.0.7", + "@hey-api/json-schema-ref-parser": "1.1.0", "ansi-colors": "4.1.3", "c12": "2.0.1", "color-support": "1.1.3", diff --git a/packages/openapi-ts/src/openApi/2.0.x/parser/schema.ts b/packages/openapi-ts/src/openApi/2.0.x/parser/schema.ts index 9c0b09ac8b..82557cd737 100644 --- a/packages/openapi-ts/src/openApi/2.0.x/parser/schema.ts +++ b/packages/openapi-ts/src/openApi/2.0.x/parser/schema.ts @@ -588,6 +588,23 @@ const parseRef = ({ state: SchemaState; }): IR.SchemaObject => { const irSchema: IR.SchemaObject = {}; + // Inline non-component refs (e.g. #/paths/...) to avoid generating orphaned named types + const isComponentsRef = schema.$ref.startsWith('#/definitions/'); + if (!isComponentsRef) { + if (!state.circularReferenceTracker.has(schema.$ref)) { + const refSchema = context.resolveRef(schema.$ref); + return schemaToIrSchema({ + context, + schema: refSchema, + state: { + ...state, + $ref: schema.$ref, + isProperty: false, + }, + }); + } + // Fallback to preserving the ref if circular + } // refs using unicode characters become encoded, didn't investigate why // but the suspicion is this comes from `@hey-api/json-schema-ref-parser` diff --git a/packages/openapi-ts/src/openApi/3.0.x/parser/schema.ts b/packages/openapi-ts/src/openApi/3.0.x/parser/schema.ts index d39f5ed041..60af07a369 100644 --- a/packages/openapi-ts/src/openApi/3.0.x/parser/schema.ts +++ b/packages/openapi-ts/src/openApi/3.0.x/parser/schema.ts @@ -818,6 +818,24 @@ const parseRef = ({ schema: ReferenceObject; state: SchemaState; }): IR.SchemaObject => { + // Inline non-component refs (e.g. #/paths/...) to avoid generating orphaned named types + const isComponentsRef = schema.$ref.startsWith('#/components/'); + if (!isComponentsRef) { + if (!state.circularReferenceTracker.has(schema.$ref)) { + const refSchema = context.resolveRef(schema.$ref); + return schemaToIrSchema({ + context, + schema: refSchema, + state: { + ...state, + $ref: schema.$ref, + isProperty: false, + }, + }); + } + // Fallback to preserving the ref if circular + } + const irSchema: IR.SchemaObject = {}; // refs using unicode characters become encoded, didn't investigate why diff --git a/packages/openapi-ts/src/openApi/3.1.x/parser/schema.ts b/packages/openapi-ts/src/openApi/3.1.x/parser/schema.ts index 9199670ac0..6ff5e7d2d4 100644 --- a/packages/openapi-ts/src/openApi/3.1.x/parser/schema.ts +++ b/packages/openapi-ts/src/openApi/3.1.x/parser/schema.ts @@ -810,6 +810,24 @@ const parseRef = ({ schema: SchemaWithRequired; state: SchemaState; }): IR.SchemaObject => { + // Inline non-component refs (e.g. #/paths/...) to avoid generating orphaned named types + const isComponentsRef = schema.$ref.startsWith('#/components/'); + if (!isComponentsRef) { + if (!state.circularReferenceTracker.has(schema.$ref)) { + const refSchema = context.resolveRef(schema.$ref); + return schemaToIrSchema({ + context, + schema: refSchema, + state: { + ...state, + $ref: schema.$ref, + isProperty: false, + }, + }); + } + // Fallback to preserving the ref if circular + } + let irSchema = initIrSchema({ schema }); const irRefSchema: IR.SchemaObject = {}; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c439e493bd..e2aa1d656f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -529,7 +529,7 @@ importers: version: link:../../packages/nuxt nuxt: specifier: 3.14.1592 - version: 3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) + version: 3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) vue: specifier: 3.5.13 version: 3.5.13(typescript@5.9.2) @@ -697,7 +697,7 @@ importers: version: 7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) vite-plugin-vue-devtools: specifier: 7.7.0 - version: 7.7.0(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) + version: 7.7.0(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) vitest: specifier: 3.1.1 version: 3.1.1(@types/debug@4.1.12)(@types/node@22.10.5)(jiti@2.5.1)(jsdom@23.0.0)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) @@ -1086,7 +1086,7 @@ importers: version: 7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) vite-plugin-vue-devtools: specifier: 7.7.0 - version: 7.7.0(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) + version: 7.7.0(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) vitest: specifier: 3.1.1 version: 3.1.1(@types/debug@4.1.12)(@types/node@22.10.5)(jiti@2.5.1)(jsdom@23.0.0)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) @@ -1174,8 +1174,8 @@ importers: specifier: workspace:^0.0.1 version: link:../codegen-core '@hey-api/json-schema-ref-parser': - specifier: 1.0.7 - version: 1.0.7 + specifier: 1.1.0 + version: 1.1.0 ansi-colors: specifier: 4.1.3 version: 4.1.3 @@ -1260,7 +1260,7 @@ importers: version: 3.3.2 nuxt: specifier: 3.14.1592 - version: 3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) + version: 3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) prettier: specifier: 3.4.2 version: 3.4.2 @@ -1371,7 +1371,7 @@ importers: version: 3.3.2 nuxt: specifier: 3.14.1592 - version: 3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) + version: 3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) prettier: specifier: 3.4.2 version: 3.4.2 @@ -2557,14 +2557,14 @@ packages: '@docsearch/js@4.0.0-beta.8': resolution: {integrity: sha512-elgqPYpykRQr5MlfqoO8U2uC3BcPgjUQhzmHt/H4lSzP7khJ9Jpv/cCB4tiZreXb6GkdRgWr5csiItNq6jjnhg==} - '@emnapi/core@1.4.5': - resolution: {integrity: sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==} + '@emnapi/core@1.5.0': + resolution: {integrity: sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg==} - '@emnapi/runtime@1.4.5': - resolution: {integrity: sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==} + '@emnapi/runtime@1.5.0': + resolution: {integrity: sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==} - '@emnapi/wasi-threads@1.0.4': - resolution: {integrity: sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==} + '@emnapi/wasi-threads@1.1.0': + resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==} '@esbuild/aix-ppc64@0.19.12': resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} @@ -3673,8 +3673,8 @@ packages: '@fontsource/fira-mono@5.0.0': resolution: {integrity: sha512-IsinH/oLYJyv/sQv7SbKmjoAXZsSjm6Q1Tz5GBBXCXi3Jg9MzXmKvWm9bSLC8lFI6CDsi8GkH/DAgZ98t8bhTQ==} - '@hey-api/json-schema-ref-parser@1.0.7': - resolution: {integrity: sha512-XYZIDkzp16pf5d5ADLgoT2efuuIzkIGCtGVXNlexzxQaOIgYAwWON+7Tt77ChXMC/2Cq0qe57hSx1x6KwZyWcA==} + '@hey-api/json-schema-ref-parser@1.1.0': + resolution: {integrity: sha512-+5eg9pgAAM9oSqJQuUtfTKbLz8yieFKN91myyXiLnprqFj8ROfxUKJLr9DKq/hGKyybKT1WxFSetDqCFm80pCA==} engines: {node: '>= 16'} '@humanfs/core@0.19.1': @@ -3697,8 +3697,8 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} - '@iconify-json/simple-icons@1.2.49': - resolution: {integrity: sha512-nRLwrHzz+cTAQYBNQrcr4eWOmQIcHObTj/QSi7nj0SFwVh5MvBsgx8OhoDC/R8iGklNmMpmoE/NKU0cPXMlOZw==} + '@iconify-json/simple-icons@1.2.50': + resolution: {integrity: sha512-Z2ggRwKYEBB9eYAEi4NqEgIzyLhu0Buh4+KGzMPD6+xG7mk52wZJwLT/glDPtfslV503VtJbqzWqBUGkCMKOFA==} '@iconify/types@2.0.0': resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} @@ -3951,8 +3951,8 @@ packages: '@types/node': optional: true - '@ioredis/commands@1.3.0': - resolution: {integrity: sha512-M/T6Zewn7sDaBQEqIZ8Rb+i9y8qfGmq+5SDFSf9sA2lUZTmdDLVdOiQaeDp+Q4wElZ9HG1GAX5KhDaidp6LQsQ==} + '@ioredis/commands@1.3.1': + resolution: {integrity: sha512-bYtU8avhGIcje3IhvF9aSjsa5URMZBHnwKtOvXsT4sfYy9gppW11gLPT/9oNqlJZD47yPKveQFTAFWpHjKvUoQ==} '@isaacs/balanced-match@4.0.1': resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==} @@ -4383,8 +4383,8 @@ packages: resolution: {integrity: sha512-rCNLSB/JzNvot0SEyXqWZ7tX2B5dD2a1br2Dp0vSYVo5jh8Z0EZ7lS9TsZ1UtziddB1UfNUaMCc538/HztnJGA==} engines: {node: ^18.17.0 || >=20.5.0} - '@npmcli/promise-spawn@8.0.2': - resolution: {integrity: sha512-/bNJhjc+o6qL+Dwz/bqfTQClkEO5nTQ1ZEcdCkAQjhkZMHIh22LPG7fNh1enJP1NKWDqYiiABnjFCY7E0zHYtQ==} + '@npmcli/promise-spawn@8.0.3': + resolution: {integrity: sha512-Yb00SWaL4F8w+K8YGhQ55+xE4RUNdMHV43WZGsiTM92gS+lC0mGsn7I4hLug7pbao035S6bj3Y3w0cUNGLfmkg==} engines: {node: ^18.17.0 || >=20.5.0} '@npmcli/redact@3.2.2': @@ -5384,8 +5384,8 @@ packages: cpu: [arm] os: [android] - '@rollup/rollup-android-arm-eabi@4.49.0': - resolution: {integrity: sha512-rlKIeL854Ed0e09QGYFlmDNbka6I3EQFw7iZuugQjMb11KMpJCLPFL4ZPbMfaEhLADEL1yx0oujGkBQ7+qW3eA==} + '@rollup/rollup-android-arm-eabi@4.50.0': + resolution: {integrity: sha512-lVgpeQyy4fWN5QYebtW4buT/4kn4p4IJ+kDNB4uYNT5b8c8DLJDg6titg20NIg7E8RWwdWZORW6vUFfrLyG3KQ==} cpu: [arm] os: [android] @@ -5399,8 +5399,8 @@ packages: cpu: [arm64] os: [android] - '@rollup/rollup-android-arm64@4.49.0': - resolution: {integrity: sha512-cqPpZdKUSQYRtLLr6R4X3sD4jCBO1zUmeo3qrWBCqYIeH8Q3KRL4F3V7XJ2Rm8/RJOQBZuqzQGWPjjvFUcYa/w==} + '@rollup/rollup-android-arm64@4.50.0': + resolution: {integrity: sha512-2O73dR4Dc9bp+wSYhviP6sDziurB5/HCym7xILKifWdE9UsOe2FtNcM+I4xZjKrfLJnq5UR8k9riB87gauiQtw==} cpu: [arm64] os: [android] @@ -5414,8 +5414,8 @@ packages: cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-arm64@4.49.0': - resolution: {integrity: sha512-99kMMSMQT7got6iYX3yyIiJfFndpojBmkHfTc1rIje8VbjhmqBXE+nb7ZZP3A5skLyujvT0eIUCUsxAe6NjWbw==} + '@rollup/rollup-darwin-arm64@4.50.0': + resolution: {integrity: sha512-vwSXQN8T4sKf1RHr1F0s98Pf8UPz7pS6P3LG9NSmuw0TVh7EmaE+5Ny7hJOZ0M2yuTctEsHHRTMi2wuHkdS6Hg==} cpu: [arm64] os: [darwin] @@ -5429,8 +5429,8 @@ packages: cpu: [x64] os: [darwin] - '@rollup/rollup-darwin-x64@4.49.0': - resolution: {integrity: sha512-y8cXoD3wdWUDpjOLMKLx6l+NFz3NlkWKcBCBfttUn+VGSfgsQ5o/yDUGtzE9HvsodkP0+16N0P4Ty1VuhtRUGg==} + '@rollup/rollup-darwin-x64@4.50.0': + resolution: {integrity: sha512-cQp/WG8HE7BCGyFVuzUg0FNmupxC+EPZEwWu2FCGGw5WDT1o2/YlENbm5e9SMvfDFR6FRhVCBePLqj0o8MN7Vw==} cpu: [x64] os: [darwin] @@ -5444,8 +5444,8 @@ packages: cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-arm64@4.49.0': - resolution: {integrity: sha512-3mY5Pr7qv4GS4ZvWoSP8zha8YoiqrU+e0ViPvB549jvliBbdNLrg2ywPGkgLC3cmvN8ya3za+Q2xVyT6z+vZqA==} + '@rollup/rollup-freebsd-arm64@4.50.0': + resolution: {integrity: sha512-UR1uTJFU/p801DvvBbtDD7z9mQL8J80xB0bR7DqW7UGQHRm/OaKzp4is7sQSdbt2pjjSS72eAtRh43hNduTnnQ==} cpu: [arm64] os: [freebsd] @@ -5459,8 +5459,8 @@ packages: cpu: [x64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.49.0': - resolution: {integrity: sha512-C9KzzOAQU5gU4kG8DTk+tjdKjpWhVWd5uVkinCwwFub2m7cDYLOdtXoMrExfeBmeRy9kBQMkiyJ+HULyF1yj9w==} + '@rollup/rollup-freebsd-x64@4.50.0': + resolution: {integrity: sha512-G/DKyS6PK0dD0+VEzH/6n/hWDNPDZSMBmqsElWnCRGrYOb2jC0VSupp7UAHHQ4+QILwkxSMaYIbQ72dktp8pKA==} cpu: [x64] os: [freebsd] @@ -5474,8 +5474,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-gnueabihf@4.49.0': - resolution: {integrity: sha512-OVSQgEZDVLnTbMq5NBs6xkmz3AADByCWI4RdKSFNlDsYXdFtlxS59J+w+LippJe8KcmeSSM3ba+GlsM9+WwC1w==} + '@rollup/rollup-linux-arm-gnueabihf@4.50.0': + resolution: {integrity: sha512-u72Mzc6jyJwKjJbZZcIYmd9bumJu7KNmHYdue43vT1rXPm2rITwmPWF0mmPzLm9/vJWxIRbao/jrQmxTO0Sm9w==} cpu: [arm] os: [linux] @@ -5489,8 +5489,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.49.0': - resolution: {integrity: sha512-ZnfSFA7fDUHNa4P3VwAcfaBLakCbYaxCk0jUnS3dTou9P95kwoOLAMlT3WmEJDBCSrOEFFV0Y1HXiwfLYJuLlA==} + '@rollup/rollup-linux-arm-musleabihf@4.50.0': + resolution: {integrity: sha512-S4UefYdV0tnynDJV1mdkNawp0E5Qm2MtSs330IyHgaccOFrwqsvgigUD29uT+B/70PDY1eQ3t40+xf6wIvXJyg==} cpu: [arm] os: [linux] @@ -5504,8 +5504,8 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.49.0': - resolution: {integrity: sha512-Z81u+gfrobVK2iV7GqZCBfEB1y6+I61AH466lNK+xy1jfqFLiQ9Qv716WUM5fxFrYxwC7ziVdZRU9qvGHkYIJg==} + '@rollup/rollup-linux-arm64-gnu@4.50.0': + resolution: {integrity: sha512-1EhkSvUQXJsIhk4msxP5nNAUWoB4MFDHhtc4gAYvnqoHlaL9V3F37pNHabndawsfy/Tp7BPiy/aSa6XBYbaD1g==} cpu: [arm64] os: [linux] @@ -5519,8 +5519,8 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.49.0': - resolution: {integrity: sha512-zoAwS0KCXSnTp9NH/h9aamBAIve0DXeYpll85shf9NJ0URjSTzzS+Z9evmolN+ICfD3v8skKUPyk2PO0uGdFqg==} + '@rollup/rollup-linux-arm64-musl@4.50.0': + resolution: {integrity: sha512-EtBDIZuDtVg75xIPIK1l5vCXNNCIRM0OBPUG+tbApDuJAy9mKago6QxX+tfMzbCI6tXEhMuZuN1+CU8iDW+0UQ==} cpu: [arm64] os: [linux] @@ -5534,8 +5534,8 @@ packages: cpu: [loong64] os: [linux] - '@rollup/rollup-linux-loongarch64-gnu@4.49.0': - resolution: {integrity: sha512-2QyUyQQ1ZtwZGiq0nvODL+vLJBtciItC3/5cYN8ncDQcv5avrt2MbKt1XU/vFAJlLta5KujqyHdYtdag4YEjYQ==} + '@rollup/rollup-linux-loongarch64-gnu@4.50.0': + resolution: {integrity: sha512-BGYSwJdMP0hT5CCmljuSNx7+k+0upweM2M4YGfFBjnFSZMHOLYR0gEEj/dxyYJ6Zc6AiSeaBY8dWOa11GF/ppQ==} cpu: [loong64] os: [linux] @@ -5549,8 +5549,8 @@ packages: cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-ppc64-gnu@4.49.0': - resolution: {integrity: sha512-k9aEmOWt+mrMuD3skjVJSSxHckJp+SiFzFG+v8JLXbc/xi9hv2icSkR3U7uQzqy+/QbbYY7iNB9eDTwrELo14g==} + '@rollup/rollup-linux-ppc64-gnu@4.50.0': + resolution: {integrity: sha512-I1gSMzkVe1KzAxKAroCJL30hA4DqSi+wGc5gviD0y3IL/VkvcnAqwBf4RHXHyvH66YVHxpKO8ojrgc4SrWAnLg==} cpu: [ppc64] os: [linux] @@ -5564,13 +5564,13 @@ packages: cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.49.0': - resolution: {integrity: sha512-rDKRFFIWJ/zJn6uk2IdYLc09Z7zkE5IFIOWqpuU0o6ZpHcdniAyWkwSUWE/Z25N/wNDmFHHMzin84qW7Wzkjsw==} + '@rollup/rollup-linux-riscv64-gnu@4.50.0': + resolution: {integrity: sha512-bSbWlY3jZo7molh4tc5dKfeSxkqnf48UsLqYbUhnkdnfgZjgufLS/NTA8PcP/dnvct5CCdNkABJ56CbclMRYCA==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-musl@4.49.0': - resolution: {integrity: sha512-FkkhIY/hYFVnOzz1WeV3S9Bd1h0hda/gRqvZCMpHWDHdiIHn6pqsY3b5eSbvGccWHMQ1uUzgZTKS4oGpykf8Tw==} + '@rollup/rollup-linux-riscv64-musl@4.50.0': + resolution: {integrity: sha512-LSXSGumSURzEQLT2e4sFqFOv3LWZsEF8FK7AAv9zHZNDdMnUPYH3t8ZlaeYYZyTXnsob3htwTKeWtBIkPV27iQ==} cpu: [riscv64] os: [linux] @@ -5584,8 +5584,8 @@ packages: cpu: [s390x] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.49.0': - resolution: {integrity: sha512-gRf5c+A7QiOG3UwLyOOtyJMD31JJhMjBvpfhAitPAoqZFcOeK3Kc1Veg1z/trmt+2P6F/biT02fU19GGTS529A==} + '@rollup/rollup-linux-s390x-gnu@4.50.0': + resolution: {integrity: sha512-CxRKyakfDrsLXiCyucVfVWVoaPA4oFSpPpDwlMcDFQvrv3XY6KEzMtMZrA+e/goC8xxp2WSOxHQubP8fPmmjOQ==} cpu: [s390x] os: [linux] @@ -5604,8 +5604,8 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.49.0': - resolution: {integrity: sha512-BR7+blScdLW1h/2hB/2oXM+dhTmpW3rQt1DeSiCP9mc2NMMkqVgjIN3DDsNpKmezffGC9R8XKVOLmBkRUcK/sA==} + '@rollup/rollup-linux-x64-gnu@4.50.0': + resolution: {integrity: sha512-8PrJJA7/VU8ToHVEPu14FzuSAqVKyo5gg/J8xUerMbyNkWkO9j2ExBho/68RnJsMGNJq4zH114iAttgm7BZVkA==} cpu: [x64] os: [linux] @@ -5619,11 +5619,16 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.49.0': - resolution: {integrity: sha512-hDMOAe+6nX3V5ei1I7Au3wcr9h3ktKzDvF2ne5ovX8RZiAHEtX1A5SNNk4zt1Qt77CmnbqT+upb/umzoPMWiPg==} + '@rollup/rollup-linux-x64-musl@4.50.0': + resolution: {integrity: sha512-SkE6YQp+CzpyOrbw7Oc4MgXFvTw2UIBElvAvLCo230pyxOLmYwRPwZ/L5lBe/VW/qT1ZgND9wJfOsdy0XptRvw==} cpu: [x64] os: [linux] + '@rollup/rollup-openharmony-arm64@4.50.0': + resolution: {integrity: sha512-PZkNLPfvXeIOgJWA804zjSFH7fARBBCpCXxgkGDRjjAhRLOR8o0IGS01ykh5GYfod4c2yiiREuDM8iZ+pVsT+Q==} + cpu: [arm64] + os: [openharmony] + '@rollup/rollup-win32-arm64-msvc@4.31.0': resolution: {integrity: sha512-JuhN2xdI/m8Hr+aVO3vspO7OQfUFO6bKLIRTAy0U15vmWjnZDLrEgCZ2s6+scAYaQVpYSh9tZtRijApw9IXyMw==} cpu: [arm64] @@ -5634,8 +5639,8 @@ packages: cpu: [arm64] os: [win32] - '@rollup/rollup-win32-arm64-msvc@4.49.0': - resolution: {integrity: sha512-wkNRzfiIGaElC9kXUT+HLx17z7D0jl+9tGYRKwd8r7cUqTL7GYAvgUY++U2hK6Ar7z5Z6IRRoWC8kQxpmM7TDA==} + '@rollup/rollup-win32-arm64-msvc@4.50.0': + resolution: {integrity: sha512-q7cIIdFvWQoaCbLDUyUc8YfR3Jh2xx3unO8Dn6/TTogKjfwrax9SyfmGGK6cQhKtjePI7jRfd7iRYcxYs93esg==} cpu: [arm64] os: [win32] @@ -5649,8 +5654,8 @@ packages: cpu: [ia32] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.49.0': - resolution: {integrity: sha512-gq5aW/SyNpjp71AAzroH37DtINDcX1Qw2iv9Chyz49ZgdOP3NV8QCyKZUrGsYX9Yyggj5soFiRCgsL3HwD8TdA==} + '@rollup/rollup-win32-ia32-msvc@4.50.0': + resolution: {integrity: sha512-XzNOVg/YnDOmFdDKcxxK410PrcbcqZkBmz+0FicpW5jtjKQxcW1BZJEQOF0NJa6JO7CZhett8GEtRN/wYLYJuw==} cpu: [ia32] os: [win32] @@ -5664,8 +5669,8 @@ packages: cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.49.0': - resolution: {integrity: sha512-gEtqFbzmZLFk2xKh7g0Rlo8xzho8KrEFEkzvHbfUGkrgXOpZ4XagQ6n+wIZFNh1nTb8UD16J4nFSFKXYgnbdBg==} + '@rollup/rollup-win32-x64-msvc@4.50.0': + resolution: {integrity: sha512-xMmiWRR8sp72Zqwjgtf3QbZfF1wdh8X2ABu3EaozvZcyHJeU0r+XAnXdKgs4cCAp6ORoYoCygipYP1mjmbjrsg==} cpu: [x64] os: [win32] @@ -5690,26 +5695,26 @@ packages: resolution: {integrity: sha512-OEd7RYlSwmq4zpaHPOnf+yyzWN6aON4RrA+Dd3PGo5JPBY8G5peofQpJZDwxdJJKPOvqU0C7aZ8LeL2CE2XTdA==} hasBin: true - '@shikijs/core@3.12.0': - resolution: {integrity: sha512-rPfCBd6gHIKBPpf2hKKWn2ISPSrmRKAFi+bYDjvZHpzs3zlksWvEwaF3Z4jnvW+xHxSRef7qDooIJkY0RpA9EA==} + '@shikijs/core@3.12.1': + resolution: {integrity: sha512-j9+UDQ6M50xvaSR/e9lg212H0Fqxy3lYd39Q6YITYQxfrb5VYNUKPLZp4PN9f+YmRcdpyNAm3obn/tIZ2WkUWg==} - '@shikijs/engine-javascript@3.12.0': - resolution: {integrity: sha512-Ni3nm4lnKxyKaDoXQQJYEayX052BL7D0ikU5laHp+ynxPpIF1WIwyhzrMU6WDN7AoAfggVR4Xqx3WN+JTS+BvA==} + '@shikijs/engine-javascript@3.12.1': + resolution: {integrity: sha512-mwif5T3rEBSMn/1m9dNi4WmB4dxH4VfYqreQMLpbFYov8MM3Gus98I549amFMjtEmYDAkTKGP7bmsv1n9t9I+A==} - '@shikijs/engine-oniguruma@3.12.0': - resolution: {integrity: sha512-IfDl3oXPbJ/Jr2K8mLeQVpnF+FxjAc7ZPDkgr38uEw/Bg3u638neSrpwqOTnTHXt1aU0Fk1/J+/RBdst1kVqLg==} + '@shikijs/engine-oniguruma@3.12.1': + resolution: {integrity: sha512-hbYq+XOc55CU7Irkhsgwh8WgQbx2W5IVzHV4l+wZ874olMLSNg5o3F73vo9m4SAhimFyqq/86xnx9h+T30HhhQ==} - '@shikijs/langs@3.12.0': - resolution: {integrity: sha512-HIca0daEySJ8zuy9bdrtcBPhcYBo8wR1dyHk1vKrOuwDsITtZuQeGhEkcEfWc6IDyTcom7LRFCH6P7ljGSCEiQ==} + '@shikijs/langs@3.12.1': + resolution: {integrity: sha512-Y1MbMfVO5baRz7Boo7EoD36TmzfUx/I5n8e+wZumx6SlUA81Zj1ZwNJL871iIuSHrdsheV4AxJtHQ9mlooklmg==} - '@shikijs/themes@3.12.0': - resolution: {integrity: sha512-/lxvQxSI5s4qZLV/AuFaA4Wt61t/0Oka/P9Lmpr1UV+HydNCczO3DMHOC/CsXCCpbv4Zq8sMD0cDa7mvaVoj0Q==} + '@shikijs/themes@3.12.1': + resolution: {integrity: sha512-9JrAm9cA5hqM/YXymA3oAAZdnCgQf1zyrNDtsnM105nNEoEpux4dyzdoOjc2KawEKj1iUs/WH2ota6Atp7GYkQ==} - '@shikijs/transformers@3.12.0': - resolution: {integrity: sha512-HcJwlvMAyZzOY+ayEAGE891BdJ7Vtio+qdWUTF9ki4d0LIkDb6DBz8ynOWGAEglHv6eQs/WcAWf/h6ina6IgCw==} + '@shikijs/transformers@3.12.1': + resolution: {integrity: sha512-crGh3cSZf6mwg3K2W8i79Ja+q4tVClRHdHLnUGi5arS58+cqdzsbkrEZBDMyevf9ehmjFUWDTEwCMEyp9I3z0g==} - '@shikijs/types@3.12.0': - resolution: {integrity: sha512-jsFzm8hCeTINC3OCmTZdhR9DOl/foJWplH2Px0bTi4m8z59fnsueLsweX82oGcjRQ7mfQAluQYKGoH2VzsWY4A==} + '@shikijs/types@3.12.1': + resolution: {integrity: sha512-Is/p+1vTss22LIsGCJTmGrxu7ZC1iBL9doJFYLaZ4aI8d0VDXb7Mn0kBzhkc7pdsRpmUbQLQ5HXwNpa3H6F8og==} '@shikijs/vscode-textmate@10.0.2': resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==} @@ -6542,13 +6547,13 @@ packages: vue: optional: true - '@vueuse/core@13.8.0': - resolution: {integrity: sha512-rmBcgpEpxY0ZmyQQR94q1qkUcHREiLxQwNyWrtjMDipD0WTH/JBcAt0gdcn2PsH0SA76ec291cHFngmyaBhlxA==} + '@vueuse/core@13.9.0': + resolution: {integrity: sha512-ts3regBQyURfCE2BcytLqzm8+MmLlo5Ln/KLoxDVcsZ2gzIwVNnQpQOL/UKV8alUqjSZOlpFZcRNsLRqj+OzyA==} peerDependencies: vue: ^3.5.0 - '@vueuse/integrations@13.8.0': - resolution: {integrity: sha512-64mD5Q7heVkr8JsqBFDh9xnQJrPLmWJghy8Qtj9UeLosQL9n+JYTcS7d+eNsEVwuvZvxfF7hUSi87jABm/eYpw==} + '@vueuse/integrations@13.9.0': + resolution: {integrity: sha512-SDobKBbPIOe0cVL7QxMzGkuUGHvWTdihi9zOrrWaWUgFKe15cwEcwfWmgrcNzjT6kHnNmWuTajPHoIzUjYNYYQ==} peerDependencies: async-validator: ^4 axios: ^1 @@ -6589,11 +6594,11 @@ packages: universal-cookie: optional: true - '@vueuse/metadata@13.8.0': - resolution: {integrity: sha512-BYMp3Gp1kBUPv7AfQnJYP96mkX7g7cKdTIgwv/Jgd+pfQhz678naoZOAcknRtPLP4cFblDDW7rF4e3KFa+PfIA==} + '@vueuse/metadata@13.9.0': + resolution: {integrity: sha512-1AFRvuiGphfF7yWixZa0KwjYH8ulyjDCC0aFgrGRz8+P4kvDFSdXLVfTk5xAN9wEuD1J6z4/myMoYbnHoX07zg==} - '@vueuse/shared@13.8.0': - resolution: {integrity: sha512-x4nfM0ykW+RmNJ4/1IzZsuLuWWrNTxlTWUiehTGI54wnOxIgI9EDdu/O5S77ac6hvQ3hk2KpOVFHaM0M796Kbw==} + '@vueuse/shared@13.9.0': + resolution: {integrity: sha512-e89uuTLMh0U5cZ9iDpEI2senqPGfbPRTHM/0AaQkcxnpqjkZqDYP8rpfm7edOz8s+pOCOROEy1PIveSW8+fL5g==} peerDependencies: vue: ^3.5.0 @@ -7045,8 +7050,8 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - browserslist@4.25.3: - resolution: {integrity: sha512-cDGv1kkDI4/0e5yON9yM5G/0A5u8sf5TnmdX5C9qHzI9PPu++sQ9zjm1k9NiOrf3riY4OkK0zSGqfvJyJsgCBQ==} + browserslist@4.25.4: + resolution: {integrity: sha512-4jYpcjabC606xJ3kw2QwGEZKX0Aw7sgQdZCvIK9dhVSPh76BKo+C+btT1RRofH7B+8iNpEbgGNVWiLki5q93yg==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true @@ -7152,8 +7157,8 @@ packages: caniuse-api@3.0.0: resolution: {integrity: sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==} - caniuse-lite@1.0.30001737: - resolution: {integrity: sha512-BiloLiXtQNrY5UyF0+1nSJLXUENuhka2pzy2Fx5pGxqavdrxSCW4U6Pn/PoG3Efspi2frRbHpBV2XsrPE6EDlw==} + caniuse-lite@1.0.30001739: + resolution: {integrity: sha512-y+j60d6ulelrNSwpPyrHdl+9mJnQzHBr08xm48Qno0nSk4h3Qojh+ziv2qE6rXf4k3tadF4o1J/1tAbVm1NtnA==} ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} @@ -7665,15 +7670,6 @@ packages: supports-color: optional: true - debug@4.3.4: - resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} - engines: {node: '>=6.0'} - peerDependencies: - supports-color: '*' - peerDependenciesMeta: - supports-color: - optional: true - debug@4.3.7: resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} engines: {node: '>=6.0'} @@ -8404,8 +8400,8 @@ packages: engines: {node: '>= 10.17.0'} hasBin: true - fake-indexeddb@6.2.0: - resolution: {integrity: sha512-0DiWlcOgogaZktJ0ussOET5wNFZctM3oiJRvL5BcaZkukeg5s0nvvFbQrguOZtctrrH/kwqF3Gu9tQWTmsfpfg==} + fake-indexeddb@6.2.2: + resolution: {integrity: sha512-SGbf7fzjeHz3+12NO1dYigcYn4ivviaeULV5yY5rdGihBvvgwMds4r4UBbNIUMwkze57KTDm32rq3j1Az8mzEw==} engines: {node: '>=18'} fast-decode-uri-component@1.0.1: @@ -8659,8 +8655,8 @@ packages: resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} engines: {node: 6.* || 8.* || >= 10.*} - get-east-asian-width@1.3.0: - resolution: {integrity: sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==} + get-east-asian-width@1.3.1: + resolution: {integrity: sha512-R1QfovbPsKmosqTnPoRFiJ7CF9MLRgb53ChvMZm+r4p76/+8yKDy17qLL2PKInORy2RkZZekuK0efYgmzTkXyQ==} engines: {node: '>=18'} get-intrinsic@1.3.0: @@ -9014,8 +9010,8 @@ packages: resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} engines: {node: '>=6'} - import-meta-resolve@4.1.0: - resolution: {integrity: sha512-I6fiaX09Xivtk+THaMfAwnA3MVA5Big1WHF1Dfx9hFuvNIWpXnorlkzhcQf6ehrqQiiZECRt1poOAkPmer3ruw==} + import-meta-resolve@4.2.0: + resolution: {integrity: sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==} impound@0.2.2: resolution: {integrity: sha512-9CNg+Ly8QjH4FwCUoE9nl1zeqY1NPK1s1P6Btp4L8lJxn8oZLN/0p6RZhitnyEL0BnVWrcVPfbs0Q3x+O/ucHg==} @@ -9151,8 +9147,8 @@ packages: resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==} engines: {node: '>=12'} - is-fullwidth-code-point@5.0.0: - resolution: {integrity: sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==} + is-fullwidth-code-point@5.1.0: + resolution: {integrity: sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==} engines: {node: '>=18'} is-generator-function@1.1.0: @@ -10128,9 +10124,6 @@ packages: ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} - ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} - ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} @@ -11549,8 +11542,8 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - rollup@4.49.0: - resolution: {integrity: sha512-3IVq0cGJ6H7fKXXEdVt+RcYvRCt8beYY9K1760wGQwSAHZcS9eot1zDG5axUbcp/kWRi5zKIIDX8MoKv/TzvZA==} + rollup@4.50.0: + resolution: {integrity: sha512-/Zl4D8zPifNmyGzJS+3kVoyXeDeT/GrsJM94sACNg9RtUE0hrHa1bNPtRSrfHTMH5HjRzce6K7rlTh3Khiw+pw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -11762,8 +11755,8 @@ packages: resolution: {integrity: sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==} engines: {node: '>= 0.4'} - shiki@3.12.0: - resolution: {integrity: sha512-E+ke51tciraTHpaXYXfqnPZFSViKHhSQ3fiugThlfs/om/EonlQ0hSldcqgzOWWqX6PcjkKKzFgrjIaiPAXoaA==} + shiki@3.12.1: + resolution: {integrity: sha512-eMlxVaXyuNQAQCaMtDKQjKv0eVm+kA6fsZtv9UqKgspP+7lWCVi7SoN+cJq1dawvIDQY7TI3SixamztotM6R6Q==} side-channel-list@1.0.0: resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} @@ -12664,8 +12657,8 @@ packages: resolution: {integrity: sha512-2qzQo5LN2DmUZXkWDHvGKLF5BP0WN+KthD6aPnPJ8plRBIjv4lh5O07eYcSxgO2znNw9s4MNhEO1sB+JDllDbQ==} engines: {node: '>=18.12.0'} - unplugin@2.3.9: - resolution: {integrity: sha512-2dcbZq6aprwXTkzptq3k5qm5B8cvpjG9ynPd5fyM2wDJuuF7PeUK64Sxf0d+X1ZyDOeGydbNzMqBSIVlH8GIfA==} + unplugin@2.3.10: + resolution: {integrity: sha512-6NCPkv1ClwH+/BGE9QeoTIl09nuiAt0gS28nn1PvYXsGKRwM2TCbFA2QiilmehPDTXIe684k4rZI1yl3A1PCUw==} engines: {node: '>=18.12.0'} unrs-resolver@1.11.1: @@ -13680,7 +13673,7 @@ snapshots: ansi-colors: 4.1.3 autoprefixer: 10.4.20(postcss@8.5.2) babel-loader: 9.2.1(@babel/core@7.26.9)(webpack@5.98.0(esbuild@0.25.0)) - browserslist: 4.25.3 + browserslist: 4.25.4 copy-webpack-plugin: 12.0.2(webpack@5.98.0(esbuild@0.25.9)) css-loader: 7.1.2(webpack@5.98.0(esbuild@0.25.9)) esbuild-wasm: 0.25.0 @@ -13768,7 +13761,7 @@ snapshots: ansi-colors: 4.1.3 autoprefixer: 10.4.20(postcss@8.5.2) babel-loader: 9.2.1(@babel/core@7.26.9)(webpack@5.98.0(esbuild@0.25.0)) - browserslist: 4.25.3 + browserslist: 4.25.4 copy-webpack-plugin: 12.0.2(webpack@5.98.0(esbuild@0.25.9)) css-loader: 7.1.2(webpack@5.98.0(esbuild@0.25.9)) esbuild-wasm: 0.25.0 @@ -13856,7 +13849,7 @@ snapshots: ansi-colors: 4.1.3 autoprefixer: 10.4.20(postcss@8.5.2) babel-loader: 9.2.1(@babel/core@7.26.9)(webpack@5.98.0(esbuild@0.25.0)) - browserslist: 4.25.3 + browserslist: 4.25.4 copy-webpack-plugin: 12.0.2(webpack@5.98.0(esbuild@0.25.9)) css-loader: 7.1.2(webpack@5.98.0(esbuild@0.25.9)) esbuild-wasm: 0.25.0 @@ -13944,7 +13937,7 @@ snapshots: ansi-colors: 4.1.3 autoprefixer: 10.4.20(postcss@8.5.2) babel-loader: 9.2.1(@babel/core@7.26.10)(webpack@5.98.0(esbuild@0.25.9)) - browserslist: 4.25.3 + browserslist: 4.25.4 copy-webpack-plugin: 12.0.2(webpack@5.98.0(esbuild@0.25.9)) css-loader: 7.1.2(webpack@5.98.0(esbuild@0.25.9)) esbuild-wasm: 0.25.4 @@ -14105,7 +14098,7 @@ snapshots: '@inquirer/confirm': 5.1.6(@types/node@22.10.5) '@vitejs/plugin-basic-ssl': 1.2.0(vite@6.1.0(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.39.0)(yaml@2.8.0)) beasties: 0.2.0 - browserslist: 4.25.3 + browserslist: 4.25.4 esbuild: 0.25.0 fast-glob: 3.3.3 https-proxy-agent: 7.0.6 @@ -14157,7 +14150,7 @@ snapshots: '@inquirer/confirm': 5.1.6(@types/node@22.10.5) '@vitejs/plugin-basic-ssl': 1.2.0(vite@6.1.0(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.39.0)(yaml@2.8.0)) beasties: 0.2.0 - browserslist: 4.25.3 + browserslist: 4.25.4 esbuild: 0.25.0 fast-glob: 3.3.3 https-proxy-agent: 7.0.6 @@ -14209,7 +14202,7 @@ snapshots: '@inquirer/confirm': 5.1.6(@types/node@22.10.5) '@vitejs/plugin-basic-ssl': 1.2.0(vite@6.2.7(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.39.0)(yaml@2.8.0)) beasties: 0.3.2 - browserslist: 4.25.3 + browserslist: 4.25.4 esbuild: 0.25.4 fast-glob: 3.3.3 https-proxy-agent: 7.0.6 @@ -14749,7 +14742,7 @@ snapshots: dependencies: '@babel/compat-data': 7.28.0 '@babel/helper-validator-option': 7.27.1 - browserslist: 4.25.3 + browserslist: 4.25.4 lru-cache: 5.1.1 semver: 6.3.1 @@ -16193,18 +16186,18 @@ snapshots: '@docsearch/js@4.0.0-beta.8': {} - '@emnapi/core@1.4.5': + '@emnapi/core@1.5.0': dependencies: - '@emnapi/wasi-threads': 1.0.4 + '@emnapi/wasi-threads': 1.1.0 tslib: 2.8.1 optional: true - '@emnapi/runtime@1.4.5': + '@emnapi/runtime@1.5.0': dependencies: tslib: 2.8.1 optional: true - '@emnapi/wasi-threads@1.0.4': + '@emnapi/wasi-threads@1.1.0': dependencies: tslib: 2.8.1 optional: true @@ -16810,7 +16803,7 @@ snapshots: '@fontsource/fira-mono@5.0.0': {} - '@hey-api/json-schema-ref-parser@1.0.7': + '@hey-api/json-schema-ref-parser@1.1.0': dependencies: '@jsdevtools/ono': 7.1.3 '@types/json-schema': 7.0.15 @@ -16830,7 +16823,7 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} - '@iconify-json/simple-icons@1.2.49': + '@iconify-json/simple-icons@1.2.50': dependencies: '@iconify/types': 2.0.0 @@ -16902,7 +16895,7 @@ snapshots: '@img/sharp-wasm32@0.33.5': dependencies: - '@emnapi/runtime': 1.4.5 + '@emnapi/runtime': 1.5.0 optional: true '@img/sharp-win32-ia32@0.33.5': @@ -17045,7 +17038,7 @@ snapshots: optionalDependencies: '@types/node': 22.10.5 - '@ioredis/commands@1.3.0': {} + '@ioredis/commands@1.3.1': {} '@isaacs/balanced-match@4.0.1': {} @@ -17292,8 +17285,8 @@ snapshots: '@napi-rs/wasm-runtime@0.2.12': dependencies: - '@emnapi/core': 1.4.5 - '@emnapi/runtime': 1.4.5 + '@emnapi/core': 1.5.0 + '@emnapi/runtime': 1.5.0 '@tybys/wasm-util': 0.10.0 optional: true @@ -17320,12 +17313,12 @@ snapshots: uuid: 11.1.0 write-file-atomic: 6.0.0 - '@netlify/functions@3.1.10(encoding@0.1.13)(rollup@4.49.0)': + '@netlify/functions@3.1.10(encoding@0.1.13)(rollup@4.50.0)': dependencies: '@netlify/blobs': 9.1.2 '@netlify/dev-utils': 2.2.0 '@netlify/serverless-functions-api': 1.41.2 - '@netlify/zip-it-and-ship-it': 12.2.1(encoding@0.1.13)(rollup@4.49.0) + '@netlify/zip-it-and-ship-it': 12.2.1(encoding@0.1.13)(rollup@4.50.0) cron-parser: 4.9.0 decache: 4.6.2 extract-zip: 2.0.1 @@ -17347,13 +17340,13 @@ snapshots: '@netlify/serverless-functions-api@2.3.0': {} - '@netlify/zip-it-and-ship-it@12.2.1(encoding@0.1.13)(rollup@4.49.0)': + '@netlify/zip-it-and-ship-it@12.2.1(encoding@0.1.13)(rollup@4.50.0)': dependencies: '@babel/parser': 7.28.3 '@babel/types': 7.28.0 '@netlify/binary-info': 1.0.0 '@netlify/serverless-functions-api': 2.3.0 - '@vercel/nft': 0.29.4(encoding@0.1.13)(rollup@4.49.0) + '@vercel/nft': 0.29.4(encoding@0.1.13)(rollup@4.50.0) archiver: 7.0.1 common-path-prefix: 3.0.0 copy-file: 11.1.0 @@ -17465,7 +17458,7 @@ snapshots: '@npmcli/git@6.0.3': dependencies: - '@npmcli/promise-spawn': 8.0.2 + '@npmcli/promise-spawn': 8.0.3 ini: 5.0.0 lru-cache: 10.4.3 npm-pick-manifest: 10.0.0 @@ -17491,7 +17484,7 @@ snapshots: semver: 7.7.2 validate-npm-package-license: 3.0.4 - '@npmcli/promise-spawn@8.0.2': + '@npmcli/promise-spawn@8.0.3': dependencies: which: 5.0.0 @@ -17501,7 +17494,7 @@ snapshots: dependencies: '@npmcli/node-gyp': 4.0.0 '@npmcli/package-json': 6.2.0 - '@npmcli/promise-spawn': 8.0.2 + '@npmcli/promise-spawn': 8.0.3 node-gyp: 11.4.2 proc-log: 5.0.0 which: 5.0.0 @@ -17566,7 +17559,7 @@ snapshots: semver: 7.7.2 simple-git: 3.28.0 sirv: 3.0.1 - tinyglobby: 0.2.14 + tinyglobby: 0.2.10 unimport: 3.14.6(rollup@3.29.5) vite: 7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@3.29.5)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) @@ -17580,7 +17573,7 @@ snapshots: - utf-8-validate - vue - '@nuxt/devtools@1.7.0(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3))': + '@nuxt/devtools@1.7.0(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3))': dependencies: '@antfu/utils': 0.7.10 '@nuxt/devtools-kit': 1.7.0(magicast@0.3.5)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) @@ -17613,10 +17606,10 @@ snapshots: semver: 7.7.2 simple-git: 3.28.0 sirv: 3.0.1 - tinyglobby: 0.2.14 - unimport: 3.14.6(rollup@4.49.0) + tinyglobby: 0.2.10 + unimport: 3.14.6(rollup@4.50.0) vite: 7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) - vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) + vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) vite-plugin-vue-inspector: 5.3.2(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) which: 3.0.1 ws: 8.18.3 @@ -17627,7 +17620,7 @@ snapshots: - utf-8-validate - vue - '@nuxt/devtools@1.7.0(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.9.2))': + '@nuxt/devtools@1.7.0(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.9.2))': dependencies: '@antfu/utils': 0.7.10 '@nuxt/devtools-kit': 1.7.0(magicast@0.3.5)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) @@ -17660,10 +17653,10 @@ snapshots: semver: 7.7.2 simple-git: 3.28.0 sirv: 3.0.1 - tinyglobby: 0.2.14 - unimport: 3.14.6(rollup@4.49.0) + tinyglobby: 0.2.10 + unimport: 3.14.6(rollup@4.50.0) vite: 7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) - vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) + vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) vite-plugin-vue-inspector: 5.3.2(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) which: 3.0.1 ws: 8.18.3 @@ -17701,9 +17694,9 @@ snapshots: - rollup - supports-color - '@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.49.0)': + '@nuxt/kit@3.14.1592(magicast@0.3.5)(rollup@4.50.0)': dependencies: - '@nuxt/schema': 3.14.1592(magicast@0.3.5)(rollup@4.49.0) + '@nuxt/schema': 3.14.1592(magicast@0.3.5)(rollup@4.50.0) c12: 2.0.1(magicast@0.3.5) consola: 3.4.2 defu: 6.1.4 @@ -17721,7 +17714,7 @@ snapshots: semver: 7.7.2 ufo: 1.6.1 unctx: 2.4.1 - unimport: 3.14.6(rollup@4.49.0) + unimport: 3.14.6(rollup@4.50.0) untyped: 1.5.2 transitivePeerDependencies: - magicast @@ -17820,7 +17813,7 @@ snapshots: - rollup - supports-color - '@nuxt/schema@3.14.1592(magicast@0.3.5)(rollup@4.49.0)': + '@nuxt/schema@3.14.1592(magicast@0.3.5)(rollup@4.50.0)': dependencies: c12: 2.0.1(magicast@0.3.5) compatx: 0.1.8 @@ -17833,7 +17826,7 @@ snapshots: std-env: 3.9.0 ufo: 1.6.1 uncrypto: 0.1.3 - unimport: 3.14.6(rollup@4.49.0) + unimport: 3.14.6(rollup@4.50.0) untyped: 1.5.2 transitivePeerDependencies: - magicast @@ -17874,7 +17867,7 @@ snapshots: defu: 6.1.4 destr: 2.0.5 estree-walker: 3.0.3 - fake-indexeddb: 6.2.0 + fake-indexeddb: 6.2.2 get-port-please: 3.2.0 h3: 1.15.4 local-pkg: 1.1.2 @@ -17889,7 +17882,7 @@ snapshots: std-env: 3.9.0 tinyexec: 0.3.2 ufo: 1.6.1 - unplugin: 2.3.9 + unplugin: 2.3.10 vite: 6.3.5(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) vitest-environment-nuxt: 1.0.1(@types/node@22.10.5)(@vue/test-utils@2.4.6)(jiti@2.5.1)(jsdom@23.0.0)(less@4.2.2)(magicast@0.3.5)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.10.5)(jiti@2.5.1)(jsdom@23.0.0)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(yaml@2.8.0) vue: 3.5.13(typescript@5.8.3) @@ -17972,10 +17965,10 @@ snapshots: - vti - vue-tsc - '@nuxt/vite-builder@3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vue@3.5.13(typescript@5.8.3))': + '@nuxt/vite-builder@3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vue@3.5.13(typescript@5.8.3))': dependencies: - '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.49.0) - '@rollup/plugin-replace': 6.0.2(rollup@4.49.0) + '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.50.0) + '@rollup/plugin-replace': 6.0.2(rollup@4.50.0) '@vitejs/plugin-vue': 5.2.1(vite@5.4.19(@types/node@22.10.5)(less@4.2.2)(sass@1.85.0)(terser@5.43.1))(vue@3.5.13(typescript@5.8.3)) '@vitejs/plugin-vue-jsx': 4.1.1(vite@5.4.19(@types/node@22.10.5)(less@4.2.2)(sass@1.85.0)(terser@5.43.1))(vue@3.5.13(typescript@5.8.3)) autoprefixer: 10.4.20(postcss@8.5.6) @@ -17998,7 +17991,7 @@ snapshots: perfect-debounce: 1.0.0 pkg-types: 1.3.1 postcss: 8.5.6 - rollup-plugin-visualizer: 5.14.0(rollup@4.49.0) + rollup-plugin-visualizer: 5.14.0(rollup@4.50.0) std-env: 3.9.0 strip-literal: 2.1.1 ufo: 1.6.1 @@ -18032,10 +18025,10 @@ snapshots: - vti - vue-tsc - '@nuxt/vite-builder@3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vue@3.5.13(typescript@5.9.2))': + '@nuxt/vite-builder@3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vue@3.5.13(typescript@5.9.2))': dependencies: - '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.49.0) - '@rollup/plugin-replace': 6.0.2(rollup@4.49.0) + '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.50.0) + '@rollup/plugin-replace': 6.0.2(rollup@4.50.0) '@vitejs/plugin-vue': 5.2.1(vite@5.4.19(@types/node@22.10.5)(less@4.2.2)(sass@1.85.0)(terser@5.43.1))(vue@3.5.13(typescript@5.9.2)) '@vitejs/plugin-vue-jsx': 4.1.1(vite@5.4.19(@types/node@22.10.5)(less@4.2.2)(sass@1.85.0)(terser@5.43.1))(vue@3.5.13(typescript@5.9.2)) autoprefixer: 10.4.20(postcss@8.5.6) @@ -18058,7 +18051,7 @@ snapshots: perfect-debounce: 1.0.0 pkg-types: 1.3.1 postcss: 8.5.6 - rollup-plugin-visualizer: 5.14.0(rollup@4.49.0) + rollup-plugin-visualizer: 5.14.0(rollup@4.50.0) std-env: 3.9.0 strip-literal: 2.1.1 ufo: 1.6.1 @@ -18897,9 +18890,9 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/plugin-alias@5.1.1(rollup@4.49.0)': + '@rollup/plugin-alias@5.1.1(rollup@4.50.0)': optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 '@rollup/plugin-commonjs@25.0.8(rollup@3.29.5)': dependencies: @@ -18912,9 +18905,9 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/plugin-commonjs@28.0.6(rollup@4.49.0)': + '@rollup/plugin-commonjs@28.0.6(rollup@4.50.0)': dependencies: - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) commondir: 1.0.1 estree-walker: 2.0.2 fdir: 6.5.0(picomatch@4.0.3) @@ -18922,15 +18915,15 @@ snapshots: magic-string: 0.30.18 picomatch: 4.0.3 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 - '@rollup/plugin-inject@5.0.5(rollup@4.49.0)': + '@rollup/plugin-inject@5.0.5(rollup@4.50.0)': dependencies: - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) estree-walker: 2.0.2 magic-string: 0.30.18 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 '@rollup/plugin-json@6.1.0(rollup@3.29.5)': dependencies: @@ -18938,11 +18931,11 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/plugin-json@6.1.0(rollup@4.49.0)': + '@rollup/plugin-json@6.1.0(rollup@4.50.0)': dependencies: - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 '@rollup/plugin-node-resolve@15.3.1(rollup@3.29.5)': dependencies: @@ -18954,15 +18947,15 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/plugin-node-resolve@16.0.1(rollup@4.49.0)': + '@rollup/plugin-node-resolve@16.0.1(rollup@4.50.0)': dependencies: - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-module: 1.0.0 resolve: 1.22.10 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 '@rollup/plugin-replace@5.0.7(rollup@3.29.5)': dependencies: @@ -18978,20 +18971,20 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/plugin-replace@6.0.2(rollup@4.49.0)': + '@rollup/plugin-replace@6.0.2(rollup@4.50.0)': dependencies: - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) magic-string: 0.30.18 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 - '@rollup/plugin-terser@0.4.4(rollup@4.49.0)': + '@rollup/plugin-terser@0.4.4(rollup@4.50.0)': dependencies: serialize-javascript: 6.0.2 smob: 1.5.0 terser: 5.43.1 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 '@rollup/pluginutils@5.2.0(rollup@3.29.5)': dependencies: @@ -19001,13 +18994,13 @@ snapshots: optionalDependencies: rollup: 3.29.5 - '@rollup/pluginutils@5.2.0(rollup@4.49.0)': + '@rollup/pluginutils@5.2.0(rollup@4.50.0)': dependencies: '@types/estree': 1.0.8 estree-walker: 2.0.2 picomatch: 4.0.3 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 '@rollup/rollup-android-arm-eabi@4.31.0': optional: true @@ -19015,7 +19008,7 @@ snapshots: '@rollup/rollup-android-arm-eabi@4.34.8': optional: true - '@rollup/rollup-android-arm-eabi@4.49.0': + '@rollup/rollup-android-arm-eabi@4.50.0': optional: true '@rollup/rollup-android-arm64@4.31.0': @@ -19024,7 +19017,7 @@ snapshots: '@rollup/rollup-android-arm64@4.34.8': optional: true - '@rollup/rollup-android-arm64@4.49.0': + '@rollup/rollup-android-arm64@4.50.0': optional: true '@rollup/rollup-darwin-arm64@4.31.0': @@ -19033,7 +19026,7 @@ snapshots: '@rollup/rollup-darwin-arm64@4.34.8': optional: true - '@rollup/rollup-darwin-arm64@4.49.0': + '@rollup/rollup-darwin-arm64@4.50.0': optional: true '@rollup/rollup-darwin-x64@4.31.0': @@ -19042,7 +19035,7 @@ snapshots: '@rollup/rollup-darwin-x64@4.34.8': optional: true - '@rollup/rollup-darwin-x64@4.49.0': + '@rollup/rollup-darwin-x64@4.50.0': optional: true '@rollup/rollup-freebsd-arm64@4.31.0': @@ -19051,7 +19044,7 @@ snapshots: '@rollup/rollup-freebsd-arm64@4.34.8': optional: true - '@rollup/rollup-freebsd-arm64@4.49.0': + '@rollup/rollup-freebsd-arm64@4.50.0': optional: true '@rollup/rollup-freebsd-x64@4.31.0': @@ -19060,7 +19053,7 @@ snapshots: '@rollup/rollup-freebsd-x64@4.34.8': optional: true - '@rollup/rollup-freebsd-x64@4.49.0': + '@rollup/rollup-freebsd-x64@4.50.0': optional: true '@rollup/rollup-linux-arm-gnueabihf@4.31.0': @@ -19069,7 +19062,7 @@ snapshots: '@rollup/rollup-linux-arm-gnueabihf@4.34.8': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.49.0': + '@rollup/rollup-linux-arm-gnueabihf@4.50.0': optional: true '@rollup/rollup-linux-arm-musleabihf@4.31.0': @@ -19078,7 +19071,7 @@ snapshots: '@rollup/rollup-linux-arm-musleabihf@4.34.8': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.49.0': + '@rollup/rollup-linux-arm-musleabihf@4.50.0': optional: true '@rollup/rollup-linux-arm64-gnu@4.31.0': @@ -19087,7 +19080,7 @@ snapshots: '@rollup/rollup-linux-arm64-gnu@4.34.8': optional: true - '@rollup/rollup-linux-arm64-gnu@4.49.0': + '@rollup/rollup-linux-arm64-gnu@4.50.0': optional: true '@rollup/rollup-linux-arm64-musl@4.31.0': @@ -19096,7 +19089,7 @@ snapshots: '@rollup/rollup-linux-arm64-musl@4.34.8': optional: true - '@rollup/rollup-linux-arm64-musl@4.49.0': + '@rollup/rollup-linux-arm64-musl@4.50.0': optional: true '@rollup/rollup-linux-loongarch64-gnu@4.31.0': @@ -19105,7 +19098,7 @@ snapshots: '@rollup/rollup-linux-loongarch64-gnu@4.34.8': optional: true - '@rollup/rollup-linux-loongarch64-gnu@4.49.0': + '@rollup/rollup-linux-loongarch64-gnu@4.50.0': optional: true '@rollup/rollup-linux-powerpc64le-gnu@4.31.0': @@ -19114,7 +19107,7 @@ snapshots: '@rollup/rollup-linux-powerpc64le-gnu@4.34.8': optional: true - '@rollup/rollup-linux-ppc64-gnu@4.49.0': + '@rollup/rollup-linux-ppc64-gnu@4.50.0': optional: true '@rollup/rollup-linux-riscv64-gnu@4.31.0': @@ -19123,10 +19116,10 @@ snapshots: '@rollup/rollup-linux-riscv64-gnu@4.34.8': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.49.0': + '@rollup/rollup-linux-riscv64-gnu@4.50.0': optional: true - '@rollup/rollup-linux-riscv64-musl@4.49.0': + '@rollup/rollup-linux-riscv64-musl@4.50.0': optional: true '@rollup/rollup-linux-s390x-gnu@4.31.0': @@ -19135,7 +19128,7 @@ snapshots: '@rollup/rollup-linux-s390x-gnu@4.34.8': optional: true - '@rollup/rollup-linux-s390x-gnu@4.49.0': + '@rollup/rollup-linux-s390x-gnu@4.50.0': optional: true '@rollup/rollup-linux-x64-gnu@4.31.0': @@ -19147,7 +19140,7 @@ snapshots: '@rollup/rollup-linux-x64-gnu@4.44.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.49.0': + '@rollup/rollup-linux-x64-gnu@4.50.0': optional: true '@rollup/rollup-linux-x64-musl@4.31.0': @@ -19156,7 +19149,10 @@ snapshots: '@rollup/rollup-linux-x64-musl@4.34.8': optional: true - '@rollup/rollup-linux-x64-musl@4.49.0': + '@rollup/rollup-linux-x64-musl@4.50.0': + optional: true + + '@rollup/rollup-openharmony-arm64@4.50.0': optional: true '@rollup/rollup-win32-arm64-msvc@4.31.0': @@ -19165,7 +19161,7 @@ snapshots: '@rollup/rollup-win32-arm64-msvc@4.34.8': optional: true - '@rollup/rollup-win32-arm64-msvc@4.49.0': + '@rollup/rollup-win32-arm64-msvc@4.50.0': optional: true '@rollup/rollup-win32-ia32-msvc@4.31.0': @@ -19174,7 +19170,7 @@ snapshots: '@rollup/rollup-win32-ia32-msvc@4.34.8': optional: true - '@rollup/rollup-win32-ia32-msvc@4.49.0': + '@rollup/rollup-win32-ia32-msvc@4.50.0': optional: true '@rollup/rollup-win32-x64-msvc@4.31.0': @@ -19183,7 +19179,7 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.34.8': optional: true - '@rollup/rollup-win32-x64-msvc@4.49.0': + '@rollup/rollup-win32-x64-msvc@4.50.0': optional: true '@rtsao/scc@1.1.0': {} @@ -19215,38 +19211,38 @@ snapshots: ajv-formats: 3.0.1(ajv@8.17.1) js-yaml: 4.1.0 - '@shikijs/core@3.12.0': + '@shikijs/core@3.12.1': dependencies: - '@shikijs/types': 3.12.0 + '@shikijs/types': 3.12.1 '@shikijs/vscode-textmate': 10.0.2 '@types/hast': 3.0.4 hast-util-to-html: 9.0.5 - '@shikijs/engine-javascript@3.12.0': + '@shikijs/engine-javascript@3.12.1': dependencies: - '@shikijs/types': 3.12.0 + '@shikijs/types': 3.12.1 '@shikijs/vscode-textmate': 10.0.2 oniguruma-to-es: 4.3.3 - '@shikijs/engine-oniguruma@3.12.0': + '@shikijs/engine-oniguruma@3.12.1': dependencies: - '@shikijs/types': 3.12.0 + '@shikijs/types': 3.12.1 '@shikijs/vscode-textmate': 10.0.2 - '@shikijs/langs@3.12.0': + '@shikijs/langs@3.12.1': dependencies: - '@shikijs/types': 3.12.0 + '@shikijs/types': 3.12.1 - '@shikijs/themes@3.12.0': + '@shikijs/themes@3.12.1': dependencies: - '@shikijs/types': 3.12.0 + '@shikijs/types': 3.12.1 - '@shikijs/transformers@3.12.0': + '@shikijs/transformers@3.12.1': dependencies: - '@shikijs/core': 3.12.0 - '@shikijs/types': 3.12.0 + '@shikijs/core': 3.12.1 + '@shikijs/types': 3.12.1 - '@shikijs/types@3.12.0': + '@shikijs/types@3.12.1': dependencies: '@shikijs/vscode-textmate': 10.0.2 '@types/hast': 3.0.4 @@ -19302,7 +19298,7 @@ snapshots: '@sveltejs/adapter-auto@4.0.0(@sveltejs/kit@2.17.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.19.9)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)))(svelte@5.19.9)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)))': dependencies: '@sveltejs/kit': 2.17.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.19.9)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)))(svelte@5.19.9)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) - import-meta-resolve: 4.1.0 + import-meta-resolve: 4.2.0 '@sveltejs/kit@2.17.1(@sveltejs/vite-plugin-svelte@5.0.3(svelte@5.19.9)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)))(svelte@5.19.9)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))': dependencies: @@ -19311,7 +19307,7 @@ snapshots: cookie: 0.6.0 devalue: 5.3.2 esm-env: 1.2.2 - import-meta-resolve: 4.1.0 + import-meta-resolve: 4.2.0 kleur: 4.1.5 magic-string: 0.30.18 mrmime: 2.0.1 @@ -19898,12 +19894,12 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.11.1': optional: true - '@vercel/nft@0.29.4(encoding@0.1.13)(rollup@4.49.0)': + '@vercel/nft@0.29.4(encoding@0.1.13)(rollup@4.50.0)': dependencies: '@mapbox/node-pre-gyp': 2.0.0(encoding@0.1.13) - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) - acorn: 8.15.0 - acorn-import-attributes: 1.9.5(acorn@8.15.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) + acorn: 8.14.0 + acorn-import-attributes: 1.9.5(acorn@8.14.0) async-sema: 3.1.1 bindings: 1.5.0 estree-walker: 2.0.2 @@ -20231,7 +20227,7 @@ snapshots: '@vue/devtools-core@7.6.8(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3))': dependencies: - '@vue/devtools-kit': 7.7.7 + '@vue/devtools-kit': 7.6.8 '@vue/devtools-shared': 7.7.7 mitt: 3.0.1 nanoid: 5.1.5 @@ -20243,7 +20239,7 @@ snapshots: '@vue/devtools-core@7.6.8(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.9.2))': dependencies: - '@vue/devtools-kit': 7.7.7 + '@vue/devtools-kit': 7.6.8 '@vue/devtools-shared': 7.7.7 mitt: 3.0.1 nanoid: 5.1.5 @@ -20401,26 +20397,26 @@ snapshots: typescript: 5.8.3 vue: 3.5.13(typescript@5.8.3) - '@vueuse/core@13.8.0(vue@3.5.20(typescript@5.9.2))': + '@vueuse/core@13.9.0(vue@3.5.20(typescript@5.9.2))': dependencies: '@types/web-bluetooth': 0.0.21 - '@vueuse/metadata': 13.8.0 - '@vueuse/shared': 13.8.0(vue@3.5.20(typescript@5.9.2)) + '@vueuse/metadata': 13.9.0 + '@vueuse/shared': 13.9.0(vue@3.5.20(typescript@5.9.2)) vue: 3.5.20(typescript@5.9.2) - '@vueuse/integrations@13.8.0(axios@1.8.2)(focus-trap@7.6.5)(jwt-decode@4.0.0)(vue@3.5.20(typescript@5.9.2))': + '@vueuse/integrations@13.9.0(axios@1.8.2)(focus-trap@7.6.5)(jwt-decode@4.0.0)(vue@3.5.20(typescript@5.9.2))': dependencies: - '@vueuse/core': 13.8.0(vue@3.5.20(typescript@5.9.2)) - '@vueuse/shared': 13.8.0(vue@3.5.20(typescript@5.9.2)) + '@vueuse/core': 13.9.0(vue@3.5.20(typescript@5.9.2)) + '@vueuse/shared': 13.9.0(vue@3.5.20(typescript@5.9.2)) vue: 3.5.20(typescript@5.9.2) optionalDependencies: axios: 1.8.2 focus-trap: 7.6.5 jwt-decode: 4.0.0 - '@vueuse/metadata@13.8.0': {} + '@vueuse/metadata@13.9.0': {} - '@vueuse/shared@13.8.0(vue@3.5.20(typescript@5.9.2))': + '@vueuse/shared@13.9.0(vue@3.5.20(typescript@5.9.2))': dependencies: vue: 3.5.20(typescript@5.9.2) @@ -20549,9 +20545,9 @@ snapshots: mime-types: 2.1.35 negotiator: 0.6.3 - acorn-import-attributes@1.9.5(acorn@8.15.0): + acorn-import-attributes@1.9.5(acorn@8.14.0): dependencies: - acorn: 8.15.0 + acorn: 8.14.0 acorn-jsx@5.3.2(acorn@7.4.1): dependencies: @@ -20779,8 +20775,8 @@ snapshots: autoprefixer@10.4.19(postcss@8.4.41): dependencies: - browserslist: 4.25.3 - caniuse-lite: 1.0.30001737 + browserslist: 4.25.4 + caniuse-lite: 1.0.30001739 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.1 @@ -20789,8 +20785,8 @@ snapshots: autoprefixer@10.4.20(postcss@8.4.41): dependencies: - browserslist: 4.25.3 - caniuse-lite: 1.0.30001737 + browserslist: 4.25.4 + caniuse-lite: 1.0.30001739 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.1 @@ -20799,8 +20795,8 @@ snapshots: autoprefixer@10.4.20(postcss@8.5.2): dependencies: - browserslist: 4.25.3 - caniuse-lite: 1.0.30001737 + browserslist: 4.25.4 + caniuse-lite: 1.0.30001739 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.1 @@ -20809,8 +20805,8 @@ snapshots: autoprefixer@10.4.20(postcss@8.5.6): dependencies: - browserslist: 4.25.3 - caniuse-lite: 1.0.30001737 + browserslist: 4.25.4 + caniuse-lite: 1.0.30001739 fraction.js: 4.3.7 normalize-range: 0.1.2 picocolors: 1.1.1 @@ -21004,12 +21000,12 @@ snapshots: dependencies: fill-range: 7.1.1 - browserslist@4.25.3: + browserslist@4.25.4: dependencies: - caniuse-lite: 1.0.30001737 + caniuse-lite: 1.0.30001739 electron-to-chromium: 1.5.211 node-releases: 2.0.19 - update-browserslist-db: 1.1.3(browserslist@4.25.3) + update-browserslist-db: 1.1.3(browserslist@4.25.4) buffer-crc32@0.2.13: {} @@ -21127,12 +21123,12 @@ snapshots: caniuse-api@3.0.0: dependencies: - browserslist: 4.25.3 - caniuse-lite: 1.0.30001737 + browserslist: 4.25.4 + caniuse-lite: 1.0.30001739 lodash.memoize: 4.1.2 lodash.uniq: 4.5.0 - caniuse-lite@1.0.30001737: {} + caniuse-lite@1.0.30001739: {} ccount@2.0.1: {} @@ -21428,7 +21424,7 @@ snapshots: core-js-compat@3.45.1: dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 core-util-is@1.0.3: {} @@ -21526,7 +21522,7 @@ snapshots: cssnano-preset-default@7.0.9(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 css-declaration-sorter: 7.2.0(postcss@8.5.6) cssnano-utils: 5.0.1(postcss@8.5.6) postcss: 8.5.6 @@ -21623,10 +21619,6 @@ snapshots: dependencies: ms: 2.1.3 - debug@4.3.4: - dependencies: - ms: 2.1.2 - debug@4.3.7: dependencies: ms: 2.1.3 @@ -22716,7 +22708,7 @@ snapshots: extract-zip@2.0.1: dependencies: - debug: 4.3.4 + debug: 4.4.1 get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: @@ -22724,7 +22716,7 @@ snapshots: transitivePeerDependencies: - supports-color - fake-indexeddb@6.2.0: {} + fake-indexeddb@6.2.2: {} fast-decode-uri-component@1.0.1: {} @@ -23006,7 +22998,7 @@ snapshots: get-caller-file@2.0.5: {} - get-east-asian-width@1.3.0: {} + get-east-asian-width@1.3.1: {} get-intrinsic@1.3.0: dependencies: @@ -23431,7 +23423,7 @@ snapshots: parent-module: 1.0.1 resolve-from: 4.0.0 - import-meta-resolve@4.1.0: {} + import-meta-resolve@4.2.0: {} impound@0.2.2(rollup@3.29.5): dependencies: @@ -23439,17 +23431,17 @@ snapshots: mlly: 1.7.4 mocked-exports: 0.1.1 pathe: 2.0.3 - unplugin: 2.3.9 + unplugin: 2.3.10 transitivePeerDependencies: - rollup - impound@0.2.2(rollup@4.49.0): + impound@0.2.2(rollup@4.50.0): dependencies: - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) mlly: 1.7.4 mocked-exports: 0.1.1 pathe: 2.0.3 - unplugin: 2.3.9 + unplugin: 2.3.10 transitivePeerDependencies: - rollup @@ -23480,7 +23472,7 @@ snapshots: ioredis@5.7.0: dependencies: - '@ioredis/commands': 1.3.0 + '@ioredis/commands': 1.3.1 cluster-key-slot: 1.1.2 debug: 4.4.1 denque: 2.1.0 @@ -23572,9 +23564,9 @@ snapshots: is-fullwidth-code-point@4.0.0: {} - is-fullwidth-code-point@5.0.0: + is-fullwidth-code-point@5.1.0: dependencies: - get-east-asian-width: 1.3.0 + get-east-asian-width: 1.3.1 is-generator-function@1.1.0: dependencies: @@ -24718,8 +24710,6 @@ snapshots: ms@2.0.0: {} - ms@2.1.2: {} - ms@2.1.3: {} msgpackr-extract@3.0.3: @@ -24797,7 +24787,7 @@ snapshots: '@swc/counter': 0.1.3 '@swc/helpers': 0.5.15 busboy: 1.6.0 - caniuse-lite: 1.0.30001737 + caniuse-lite: 1.0.30001739 postcss: 8.4.31 react: 19.0.0 react-dom: 19.0.0(react@19.0.0) @@ -24820,15 +24810,15 @@ snapshots: nitropack@2.12.4(@netlify/blobs@9.1.2)(encoding@0.1.13): dependencies: '@cloudflare/kv-asset-handler': 0.4.0 - '@netlify/functions': 3.1.10(encoding@0.1.13)(rollup@4.49.0) - '@rollup/plugin-alias': 5.1.1(rollup@4.49.0) - '@rollup/plugin-commonjs': 28.0.6(rollup@4.49.0) - '@rollup/plugin-inject': 5.0.5(rollup@4.49.0) - '@rollup/plugin-json': 6.1.0(rollup@4.49.0) - '@rollup/plugin-node-resolve': 16.0.1(rollup@4.49.0) - '@rollup/plugin-replace': 6.0.2(rollup@4.49.0) - '@rollup/plugin-terser': 0.4.4(rollup@4.49.0) - '@vercel/nft': 0.29.4(encoding@0.1.13)(rollup@4.49.0) + '@netlify/functions': 3.1.10(encoding@0.1.13)(rollup@4.50.0) + '@rollup/plugin-alias': 5.1.1(rollup@4.50.0) + '@rollup/plugin-commonjs': 28.0.6(rollup@4.50.0) + '@rollup/plugin-inject': 5.0.5(rollup@4.50.0) + '@rollup/plugin-json': 6.1.0(rollup@4.50.0) + '@rollup/plugin-node-resolve': 16.0.1(rollup@4.50.0) + '@rollup/plugin-replace': 6.0.2(rollup@4.50.0) + '@rollup/plugin-terser': 0.4.4(rollup@4.50.0) + '@vercel/nft': 0.29.4(encoding@0.1.13)(rollup@4.50.0) archiver: 7.0.1 c12: 3.2.0(magicast@0.3.5) chokidar: 4.0.3 @@ -24870,8 +24860,8 @@ snapshots: pkg-types: 2.3.0 pretty-bytes: 6.1.1 radix3: 1.1.2 - rollup: 4.49.0 - rollup-plugin-visualizer: 6.0.3(rollup@4.49.0) + rollup: 4.50.0 + rollup-plugin-visualizer: 6.0.3(rollup@4.50.0) scule: 1.3.0 semver: 7.7.2 serve-placeholder: 2.0.2 @@ -25193,14 +25183,14 @@ snapshots: - vue-tsc - xml2js - nuxt@3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)): + nuxt@3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)): dependencies: '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.7.0(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) - '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.49.0) - '@nuxt/schema': 3.14.1592(magicast@0.3.5)(rollup@4.49.0) + '@nuxt/devtools': 1.7.0(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) + '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.50.0) + '@nuxt/schema': 3.14.1592(magicast@0.3.5)(rollup@4.50.0) '@nuxt/telemetry': 2.6.6(magicast@0.3.5) - '@nuxt/vite-builder': 3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vue@3.5.13(typescript@5.8.3)) + '@nuxt/vite-builder': 3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.8.3)(vue@3.5.13(typescript@5.8.3)) '@unhead/dom': 1.11.20 '@unhead/shared': 1.11.20 '@unhead/ssr': 1.11.20 @@ -25223,7 +25213,7 @@ snapshots: h3: 1.15.4 hookable: 5.5.3 ignore: 6.0.2 - impound: 0.2.2(rollup@4.49.0) + impound: 0.2.2(rollup@4.50.0) jiti: 2.5.1 klona: 2.0.6 knitwork: 1.2.0 @@ -25250,9 +25240,9 @@ snapshots: unctx: 2.4.1 unenv: 1.10.0 unhead: 1.11.20 - unimport: 3.14.6(rollup@4.49.0) + unimport: 3.14.6(rollup@4.50.0) unplugin: 1.16.1 - unplugin-vue-router: 0.10.9(rollup@4.49.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.8.3)))(vue@3.5.13(typescript@5.8.3)) + unplugin-vue-router: 0.10.9(rollup@4.50.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.8.3)))(vue@3.5.13(typescript@5.8.3)) unstorage: 1.17.0(@netlify/blobs@9.1.2)(db0@0.3.2)(ioredis@5.7.0) untyped: 1.5.2 vue: 3.5.13(typescript@5.8.3) @@ -25314,14 +25304,14 @@ snapshots: - vue-tsc - xml2js - nuxt@3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)): + nuxt@3.14.1592(@netlify/blobs@9.1.2)(@parcel/watcher@2.5.1)(@types/node@22.10.5)(db0@0.3.2)(encoding@0.1.13)(eslint@9.17.0(jiti@2.5.1))(ioredis@5.7.0)(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)): dependencies: '@nuxt/devalue': 2.0.2 - '@nuxt/devtools': 1.7.0(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.9.2)) - '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.49.0) - '@nuxt/schema': 3.14.1592(magicast@0.3.5)(rollup@4.49.0) + '@nuxt/devtools': 1.7.0(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.9.2)) + '@nuxt/kit': 3.14.1592(magicast@0.3.5)(rollup@4.50.0) + '@nuxt/schema': 3.14.1592(magicast@0.3.5)(rollup@4.50.0) '@nuxt/telemetry': 2.6.6(magicast@0.3.5) - '@nuxt/vite-builder': 3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.49.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vue@3.5.13(typescript@5.9.2)) + '@nuxt/vite-builder': 3.14.1592(@types/node@22.10.5)(eslint@9.17.0(jiti@2.5.1))(less@4.2.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.50.0)(sass@1.85.0)(terser@5.43.1)(typescript@5.9.2)(vue@3.5.13(typescript@5.9.2)) '@unhead/dom': 1.11.20 '@unhead/shared': 1.11.20 '@unhead/ssr': 1.11.20 @@ -25344,7 +25334,7 @@ snapshots: h3: 1.15.4 hookable: 5.5.3 ignore: 6.0.2 - impound: 0.2.2(rollup@4.49.0) + impound: 0.2.2(rollup@4.50.0) jiti: 2.5.1 klona: 2.0.6 knitwork: 1.2.0 @@ -25371,9 +25361,9 @@ snapshots: unctx: 2.4.1 unenv: 1.10.0 unhead: 1.11.20 - unimport: 3.14.6(rollup@4.49.0) + unimport: 3.14.6(rollup@4.50.0) unplugin: 1.16.1 - unplugin-vue-router: 0.10.9(rollup@4.49.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.9.2)))(vue@3.5.13(typescript@5.9.2)) + unplugin-vue-router: 0.10.9(rollup@4.50.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.9.2)))(vue@3.5.13(typescript@5.9.2)) unstorage: 1.17.0(@netlify/blobs@9.1.2)(db0@0.3.2)(ioredis@5.7.0) untyped: 1.5.2 vue: 3.5.13(typescript@5.9.2) @@ -25692,7 +25682,7 @@ snapshots: '@npmcli/git': 6.0.3 '@npmcli/installed-package-contents': 3.0.0 '@npmcli/package-json': 6.2.0 - '@npmcli/promise-spawn': 8.0.2 + '@npmcli/promise-spawn': 8.0.3 '@npmcli/run-script': 9.1.0 cacache: 19.0.1 fs-minipass: 3.0.3 @@ -25880,7 +25870,7 @@ snapshots: postcss-colormin@7.0.4(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 caniuse-api: 3.0.0 colord: 2.9.3 postcss: 8.5.6 @@ -25888,7 +25878,7 @@ snapshots: postcss-convert-values@7.0.7(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 postcss: 8.5.6 postcss-value-parser: 4.2.0 @@ -25966,7 +25956,7 @@ snapshots: postcss-merge-rules@7.0.6(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 caniuse-api: 3.0.0 cssnano-utils: 5.0.1(postcss@8.5.6) postcss: 8.5.6 @@ -25986,7 +25976,7 @@ snapshots: postcss-minify-params@7.0.4(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 cssnano-utils: 5.0.1(postcss@8.5.6) postcss: 8.5.6 postcss-value-parser: 4.2.0 @@ -26059,7 +26049,7 @@ snapshots: postcss-normalize-unicode@7.0.4(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 postcss: 8.5.6 postcss-value-parser: 4.2.0 @@ -26081,7 +26071,7 @@ snapshots: postcss-reduce-initial@7.0.4(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 caniuse-api: 3.0.0 postcss: 8.5.6 @@ -26583,23 +26573,23 @@ snapshots: optionalDependencies: rollup: 3.29.5 - rollup-plugin-visualizer@5.14.0(rollup@4.49.0): + rollup-plugin-visualizer@5.14.0(rollup@4.50.0): dependencies: open: 8.4.2 picomatch: 4.0.3 source-map: 0.7.6 yargs: 17.7.2 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 - rollup-plugin-visualizer@6.0.3(rollup@4.49.0): + rollup-plugin-visualizer@6.0.3(rollup@4.50.0): dependencies: open: 8.4.2 picomatch: 4.0.3 source-map: 0.7.6 yargs: 17.7.2 optionalDependencies: - rollup: 4.49.0 + rollup: 4.50.0 rollup@3.29.5: optionalDependencies: @@ -26655,30 +26645,31 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.34.8 fsevents: 2.3.3 - rollup@4.49.0: + rollup@4.50.0: dependencies: '@types/estree': 1.0.8 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.49.0 - '@rollup/rollup-android-arm64': 4.49.0 - '@rollup/rollup-darwin-arm64': 4.49.0 - '@rollup/rollup-darwin-x64': 4.49.0 - '@rollup/rollup-freebsd-arm64': 4.49.0 - '@rollup/rollup-freebsd-x64': 4.49.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.49.0 - '@rollup/rollup-linux-arm-musleabihf': 4.49.0 - '@rollup/rollup-linux-arm64-gnu': 4.49.0 - '@rollup/rollup-linux-arm64-musl': 4.49.0 - '@rollup/rollup-linux-loongarch64-gnu': 4.49.0 - '@rollup/rollup-linux-ppc64-gnu': 4.49.0 - '@rollup/rollup-linux-riscv64-gnu': 4.49.0 - '@rollup/rollup-linux-riscv64-musl': 4.49.0 - '@rollup/rollup-linux-s390x-gnu': 4.49.0 - '@rollup/rollup-linux-x64-gnu': 4.49.0 - '@rollup/rollup-linux-x64-musl': 4.49.0 - '@rollup/rollup-win32-arm64-msvc': 4.49.0 - '@rollup/rollup-win32-ia32-msvc': 4.49.0 - '@rollup/rollup-win32-x64-msvc': 4.49.0 + '@rollup/rollup-android-arm-eabi': 4.50.0 + '@rollup/rollup-android-arm64': 4.50.0 + '@rollup/rollup-darwin-arm64': 4.50.0 + '@rollup/rollup-darwin-x64': 4.50.0 + '@rollup/rollup-freebsd-arm64': 4.50.0 + '@rollup/rollup-freebsd-x64': 4.50.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.50.0 + '@rollup/rollup-linux-arm-musleabihf': 4.50.0 + '@rollup/rollup-linux-arm64-gnu': 4.50.0 + '@rollup/rollup-linux-arm64-musl': 4.50.0 + '@rollup/rollup-linux-loongarch64-gnu': 4.50.0 + '@rollup/rollup-linux-ppc64-gnu': 4.50.0 + '@rollup/rollup-linux-riscv64-gnu': 4.50.0 + '@rollup/rollup-linux-riscv64-musl': 4.50.0 + '@rollup/rollup-linux-s390x-gnu': 4.50.0 + '@rollup/rollup-linux-x64-gnu': 4.50.0 + '@rollup/rollup-linux-x64-musl': 4.50.0 + '@rollup/rollup-openharmony-arm64': 4.50.0 + '@rollup/rollup-win32-arm64-msvc': 4.50.0 + '@rollup/rollup-win32-ia32-msvc': 4.50.0 + '@rollup/rollup-win32-x64-msvc': 4.50.0 fsevents: 2.3.3 rrweb-cssom@0.6.0: {} @@ -26937,14 +26928,14 @@ snapshots: shell-quote@1.8.3: {} - shiki@3.12.0: + shiki@3.12.1: dependencies: - '@shikijs/core': 3.12.0 - '@shikijs/engine-javascript': 3.12.0 - '@shikijs/engine-oniguruma': 3.12.0 - '@shikijs/langs': 3.12.0 - '@shikijs/themes': 3.12.0 - '@shikijs/types': 3.12.0 + '@shikijs/core': 3.12.1 + '@shikijs/engine-javascript': 3.12.1 + '@shikijs/engine-oniguruma': 3.12.1 + '@shikijs/langs': 3.12.1 + '@shikijs/themes': 3.12.1 + '@shikijs/types': 3.12.1 '@shikijs/vscode-textmate': 10.0.2 '@types/hast': 3.0.4 @@ -27031,7 +27022,7 @@ snapshots: slice-ansi@7.1.0: dependencies: ansi-styles: 6.2.1 - is-fullwidth-code-point: 5.0.0 + is-fullwidth-code-point: 5.1.0 smart-buffer@4.2.0: {} @@ -27076,7 +27067,7 @@ snapshots: socks-proxy-agent@8.0.5: dependencies: agent-base: 7.1.4 - debug: 4.3.4 + debug: 4.4.1 socks: 2.8.7 transitivePeerDependencies: - supports-color @@ -27231,7 +27222,7 @@ snapshots: string-width@7.2.0: dependencies: emoji-regex: 10.5.0 - get-east-asian-width: 1.3.0 + get-east-asian-width: 1.3.1 strip-ansi: 7.1.0 string.prototype.includes@2.0.1: @@ -27330,7 +27321,7 @@ snapshots: stylehacks@7.0.6(postcss@8.5.6): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 postcss: 8.5.6 postcss-selector-parser: 7.1.0 @@ -27513,7 +27504,7 @@ snapshots: terser@5.43.1: dependencies: '@jridgewell/source-map': 0.3.11 - acorn: 8.15.0 + acorn: 8.14.0 commander: 2.20.3 source-map-support: 0.5.21 @@ -27681,7 +27672,7 @@ snapshots: picocolors: 1.1.1 postcss-load-config: 6.0.1(jiti@2.5.1)(postcss@8.5.6)(yaml@2.8.0) resolve-from: 5.0.0 - rollup: 4.49.0 + rollup: 4.50.0 source-map: 0.8.0-beta.0 sucrase: 3.35.0 tinyexec: 0.3.2 @@ -27859,10 +27850,10 @@ snapshots: unctx@2.4.1: dependencies: - acorn: 8.14.0 + acorn: 8.15.0 estree-walker: 3.0.3 magic-string: 0.30.18 - unplugin: 2.3.9 + unplugin: 2.3.10 undici-types@6.20.0: {} @@ -27919,7 +27910,7 @@ snapshots: unimport@3.14.6(rollup@3.29.5): dependencies: '@rollup/pluginutils': 5.2.0(rollup@3.29.5) - acorn: 8.15.0 + acorn: 8.14.0 escape-string-regexp: 5.0.0 estree-walker: 3.0.3 fast-glob: 3.3.3 @@ -27935,10 +27926,10 @@ snapshots: transitivePeerDependencies: - rollup - unimport@3.14.6(rollup@4.49.0): + unimport@3.14.6(rollup@4.50.0): dependencies: - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) - acorn: 8.15.0 + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) + acorn: 8.14.0 escape-string-regexp: 5.0.0 estree-walker: 3.0.3 fast-glob: 3.3.3 @@ -27968,7 +27959,7 @@ snapshots: scule: 1.3.0 strip-literal: 3.0.0 tinyglobby: 0.2.14 - unplugin: 2.3.9 + unplugin: 2.3.10 unplugin-utils: 0.2.5 unimport@5.2.0: @@ -27985,7 +27976,7 @@ snapshots: scule: 1.3.0 strip-literal: 3.0.0 tinyglobby: 0.2.14 - unplugin: 2.3.9 + unplugin: 2.3.10 unplugin-utils: 0.2.5 unique-filename@4.0.0: @@ -28064,10 +28055,10 @@ snapshots: - rollup - vue - unplugin-vue-router@0.10.9(rollup@4.49.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.8.3)))(vue@3.5.13(typescript@5.8.3)): + unplugin-vue-router@0.10.9(rollup@4.50.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.8.3)))(vue@3.5.13(typescript@5.8.3)): dependencies: '@babel/types': 7.28.2 - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) '@vue-macros/common': 1.16.1(vue@3.5.13(typescript@5.8.3)) ast-walker-scope: 0.6.2 chokidar: 3.6.0 @@ -28086,10 +28077,10 @@ snapshots: - rollup - vue - unplugin-vue-router@0.10.9(rollup@4.49.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.9.2)))(vue@3.5.13(typescript@5.9.2)): + unplugin-vue-router@0.10.9(rollup@4.50.0)(vue-router@4.5.0(vue@3.5.13(typescript@5.9.2)))(vue@3.5.13(typescript@5.9.2)): dependencies: '@babel/types': 7.28.2 - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) '@vue-macros/common': 1.16.1(vue@3.5.13(typescript@5.9.2)) ast-walker-scope: 0.6.2 chokidar: 3.6.0 @@ -28115,10 +28106,10 @@ snapshots: unplugin@2.0.0-beta.1: dependencies: - acorn: 8.15.0 + acorn: 8.14.0 webpack-virtual-modules: 0.6.2 - unplugin@2.3.9: + unplugin@2.3.10: dependencies: '@jridgewell/remapping': 2.3.5 acorn: 8.15.0 @@ -28198,11 +28189,11 @@ snapshots: mlly: 1.7.4 pathe: 2.0.3 pkg-types: 2.3.0 - unplugin: 2.3.9 + unplugin: 2.3.10 - update-browserslist-db@1.1.3(browserslist@4.25.3): + update-browserslist-db@1.1.3(browserslist@4.25.4): dependencies: - browserslist: 4.25.3 + browserslist: 4.25.4 escalade: 3.2.0 picocolors: 1.1.1 @@ -28405,10 +28396,10 @@ snapshots: - rollup - supports-color - vite-plugin-inspect@0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)): + vite-plugin-inspect@0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)): dependencies: '@antfu/utils': 0.7.10 - '@rollup/pluginutils': 5.2.0(rollup@4.49.0) + '@rollup/pluginutils': 5.2.0(rollup@4.50.0) debug: 4.4.1 error-stack-parser-es: 0.1.5 fs-extra: 11.3.1 @@ -28423,7 +28414,7 @@ snapshots: - rollup - supports-color - vite-plugin-vue-devtools@7.7.0(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)): + vite-plugin-vue-devtools@7.7.0(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)): dependencies: '@vue/devtools-core': 7.7.7(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.13(typescript@5.8.3)) '@vue/devtools-kit': 7.7.7 @@ -28431,7 +28422,7 @@ snapshots: execa: 9.6.0 sirv: 3.0.1 vite: 7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) - vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.49.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) + vite-plugin-inspect: 0.8.9(@nuxt/kit@3.15.4(magicast@0.3.5))(rollup@4.50.0)(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) vite-plugin-vue-inspector: 5.3.2(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0)) transitivePeerDependencies: - '@nuxt/kit' @@ -28500,7 +28491,7 @@ snapshots: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.49.0 + rollup: 4.50.0 tinyglobby: 0.2.14 optionalDependencies: '@types/node': 22.10.5 @@ -28517,7 +28508,7 @@ snapshots: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.49.0 + rollup: 4.50.0 tinyglobby: 0.2.14 optionalDependencies: '@types/node': 22.10.5 @@ -28534,7 +28525,7 @@ snapshots: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.49.0 + rollup: 4.50.0 tinyglobby: 0.2.14 optionalDependencies: '@types/node': 22.10.5 @@ -28572,20 +28563,20 @@ snapshots: dependencies: '@docsearch/css': 4.0.0-beta.8 '@docsearch/js': 4.0.0-beta.8 - '@iconify-json/simple-icons': 1.2.49 - '@shikijs/core': 3.12.0 - '@shikijs/transformers': 3.12.0 - '@shikijs/types': 3.12.0 + '@iconify-json/simple-icons': 1.2.50 + '@shikijs/core': 3.12.1 + '@shikijs/transformers': 3.12.1 + '@shikijs/types': 3.12.1 '@types/markdown-it': 14.1.2 '@vitejs/plugin-vue': 6.0.1(vite@7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0))(vue@3.5.20(typescript@5.9.2)) '@vue/devtools-api': 8.0.1 '@vue/shared': 3.5.20 - '@vueuse/core': 13.8.0(vue@3.5.20(typescript@5.9.2)) - '@vueuse/integrations': 13.8.0(axios@1.8.2)(focus-trap@7.6.5)(jwt-decode@4.0.0)(vue@3.5.20(typescript@5.9.2)) + '@vueuse/core': 13.9.0(vue@3.5.20(typescript@5.9.2)) + '@vueuse/integrations': 13.9.0(axios@1.8.2)(focus-trap@7.6.5)(jwt-decode@4.0.0)(vue@3.5.20(typescript@5.9.2)) focus-trap: 7.6.5 mark.js: 8.11.1 minisearch: 7.1.2 - shiki: 3.12.0 + shiki: 3.12.1 vite: 7.1.2(@types/node@22.10.5)(jiti@2.5.1)(less@4.2.2)(sass@1.85.0)(terser@5.43.1)(yaml@2.8.0) vue: 3.5.20(typescript@5.9.2) optionalDependencies: @@ -28970,7 +28961,7 @@ snapshots: '@webassemblyjs/wasm-edit': 1.14.1 '@webassemblyjs/wasm-parser': 1.14.1 acorn: 8.15.0 - browserslist: 4.25.3 + browserslist: 4.25.4 chrome-trace-event: 1.0.4 enhanced-resolve: 5.18.3 es-module-lexer: 1.7.0 @@ -29000,7 +28991,7 @@ snapshots: '@webassemblyjs/wasm-edit': 1.14.1 '@webassemblyjs/wasm-parser': 1.14.1 acorn: 8.15.0 - browserslist: 4.25.3 + browserslist: 4.25.4 chrome-trace-event: 1.0.4 enhanced-resolve: 5.18.3 es-module-lexer: 1.7.0