fork of hey-api/openapi-ts because I need some additional things

Merge pull request #2850 from hey-api/copilot/fix-writeonly-regression

Fix writeOnly regression: response types incorrectly use writable variants

authored by Lubos and committed by GitHub f14f95ad 3fc7caaf

Changed files
+3249 -141
.changeset
packages
openapi-ts
src
openApi
shared
transforms
openapi-ts-tests
main
test
__snapshots__
2.0.x
plugins
@angular
common
default
default-class
@hey-api
schemas
default
sdk
default
throwOnError
@pinia
colada
fetch
@tanstack
angular-query-experimental
react-query
solid-query
svelte-query
vue-query
fastify
default
valibot
default
3.0.x
plugins
@angular
common
default
default-class
@hey-api
schemas
default
sdk
default
throwOnError
@pinia
colada
fetch
@tanstack
angular-query-experimental
react-query
solid-query
svelte-query
vue-query
fastify
default
valibot
default
transforms-properties-required-by-default
3.1.x
clients
@hey-api
client-axios
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-fetch
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-next
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-nuxt
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-ofetch
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-custom
base-url-false
base-url-number
base-url-strict
base-url-string
bundle
default
sdk-client-optional
sdk-client-required
my-client
base-url-false
base-url-number
base-url-strict
base-url-string
bundle
default
sdk-client-optional
sdk-client-required
plugins
@angular
common
default
default-class
@hey-api
schemas
default
sdk
default
throwOnError
typescript
transforms-read-write-custom-name
@pinia
colada
fetch
@tanstack
angular-query-experimental
react-query
solid-query
svelte-query
vue-query
fastify
default
valibot
default
transforms-read-write
transforms-read-write-nested
transforms-read-write-response
zod
v3
__snapshots__
2.0.x
mini
default
v3
default
v4
default
3.0.x
mini
default
v3
default
v4
default
3.1.x
mini
default
v3
default
v4
default
v4
__snapshots__
2.0.x
mini
default
v3
default
v4
default
3.0.x
mini
default
v3
default
v4
default
3.1.x
mini
default
v3
default
v4
default
+5
.changeset/mighty-adults-wave.md
··· 1 + --- 2 + "@hey-api/openapi-ts": patch 3 + --- 4 + 5 + fix(parser): write-only schema incorrectly used in response schemas
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default-class/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+10
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts
··· 693 693 required: ['id'] 694 694 } as const; 695 695 696 + export const ModelWithReferenceWritableSchema = { 697 + description: 'This is a model with one property containing a reference', 698 + type: 'object', 699 + properties: { 700 + prop: { 701 + '$ref': '#/definitions/ModelWithPropertiesWritable' 702 + } 703 + } 704 + } as const; 705 + 696 706 export const ModelWithPropertiesWritableSchema = { 697 707 description: 'This is a model with one nested property', 698 708 type: 'object',
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/fastify/default/types.gen.ts
··· 420 420 }; 421 421 422 422 /** 423 + * This is a model with one property containing a reference 424 + */ 425 + export type ModelWithReferenceWritable = { 426 + prop?: ModelWithPropertiesWritable; 427 + }; 428 + 429 + /** 423 430 * This is a model with one nested property 424 431 */ 425 432 export type ModelWithPropertiesWritable = {
+7
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/valibot/default/valibot.gen.ts
··· 422 422 }); 423 423 424 424 /** 425 + * This is a model with one property containing a reference 426 + */ 427 + export const vModelWithReferenceWritable = v.object({ 428 + prop: v.optional(vModelWithPropertiesWritable) 429 + }); 430 + 431 + /** 425 432 * This is a model that contains a some patterns 426 433 */ 427 434 export const vModelWithPatternWritable = v.object({
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default-class/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+77
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts
··· 2003 2003 required: ['id'] 2004 2004 } as const; 2005 2005 2006 + export const ModelWithReferenceWritableSchema = { 2007 + description: 'This is a model with one property containing a reference', 2008 + type: 'object', 2009 + properties: { 2010 + prop: { 2011 + '$ref': '#/components/schemas/ModelWithPropertiesWritable' 2012 + } 2013 + } 2014 + } as const; 2015 + 2016 + export const ModelWithArrayReadOnlyAndWriteOnlyWritableSchema = { 2017 + description: 'This is a model with one property containing an array', 2018 + type: 'object', 2019 + properties: { 2020 + prop: { 2021 + type: 'array', 2022 + items: { 2023 + '$ref': '#/components/schemas/ModelWithReadOnlyAndWriteOnlyWritable' 2024 + } 2025 + }, 2026 + propWithFile: { 2027 + type: 'array', 2028 + items: { 2029 + format: 'binary', 2030 + type: 'string' 2031 + } 2032 + }, 2033 + propWithNumber: { 2034 + type: 'array', 2035 + items: { 2036 + type: 'number' 2037 + } 2038 + } 2039 + } 2040 + } as const; 2041 + 2006 2042 export const ModelWithPropertiesWritableSchema = { 2007 2043 description: 'This is a model with one nested property', 2008 2044 type: 'object', ··· 2103 2139 } 2104 2140 } as const; 2105 2141 2142 + export const ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritableSchema = { 2143 + type: 'array', 2144 + items: { 2145 + oneOf: [ 2146 + { 2147 + type: 'number' 2148 + }, 2149 + { 2150 + '$ref': '#/components/schemas/import' 2151 + } 2152 + ] 2153 + }, 2154 + minItems: 2, 2155 + maxItems: 2 2156 + } as const; 2157 + 2106 2158 export const AdditionalPropertiesUnknownIssueWritableSchema = { 2107 2159 type: 'object', 2108 2160 additionalProperties: { ··· 2115 2167 } 2116 2168 ] 2117 2169 } 2170 + } as const; 2171 + 2172 + export const OneOfAllOfIssueWritableSchema = { 2173 + oneOf: [ 2174 + { 2175 + allOf: [ 2176 + { 2177 + oneOf: [ 2178 + { 2179 + '$ref': '#/components/schemas/ConstValue' 2180 + }, 2181 + { 2182 + '$ref': '#/components/schemas/Generic.Schema.Duplicate.Issue`1[System.Boolean]' 2183 + } 2184 + ] 2185 + }, 2186 + { 2187 + '$ref': '#/components/schemas/3e-num_1Период' 2188 + } 2189 + ] 2190 + }, 2191 + { 2192 + '$ref': '#/components/schemas/Generic.Schema.Duplicate.Issue`1[System.String]' 2193 + } 2194 + ] 2118 2195 } as const; 2119 2196 2120 2197 export const Generic_Schema_Duplicate_Issue_1_System_Boolean_WritableSchema = {
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts
··· 970 970 }; 971 971 972 972 /** 973 + * This is a model with one property containing a reference 974 + */ 975 + export type ModelWithReferenceWritable = { 976 + prop?: ModelWithPropertiesWritable; 977 + }; 978 + 979 + /** 980 + * This is a model with one property containing an array 981 + */ 982 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 983 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 984 + propWithFile?: Array<Blob | File>; 985 + propWithNumber?: Array<number>; 986 + }; 987 + 988 + /** 973 989 * This is a model with one nested property 974 990 */ 975 991 export type ModelWithPropertiesWritable = { ··· 1009 1025 baz: string; 1010 1026 }; 1011 1027 1028 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1029 + number | Import, 1030 + number | Import 1031 + ]; 1032 + 1012 1033 export type AdditionalPropertiesUnknownIssueWritable = { 1013 1034 [key: string]: string | number; 1014 1035 }; 1036 + 1037 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1015 1038 1016 1039 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1017 1040 item?: boolean; ··· 1062 1085 }; 1063 1086 1064 1087 export type ImportData = { 1065 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1088 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1066 1089 path?: never; 1067 1090 query?: never; 1068 1091 url: '/api/v{api-version}/no+tag';
+39 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/valibot/default/valibot.gen.ts
··· 1052 1052 }); 1053 1053 1054 1054 /** 1055 + * This is a model with one property containing a reference 1056 + */ 1057 + export const vModelWithReferenceWritable = v.object({ 1058 + prop: v.optional(vModelWithPropertiesWritable) 1059 + }); 1060 + 1061 + /** 1055 1062 * This is a model that contains a some patterns 1056 1063 */ 1057 1064 export const vModelWithPatternWritable = v.object({ ··· 1073 1080 baz: v.string() 1074 1081 }); 1075 1082 1083 + /** 1084 + * This is a model with one property containing an array 1085 + */ 1086 + export const vModelWithArrayReadOnlyAndWriteOnlyWritable = v.object({ 1087 + prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnlyWritable)), 1088 + propWithFile: v.optional(v.array(v.string())), 1089 + propWithNumber: v.optional(v.array(v.number())) 1090 + }); 1091 + 1092 + export const vModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = v.tuple([ 1093 + v.union([ 1094 + v.number(), 1095 + vImport 1096 + ]), 1097 + v.union([ 1098 + v.number(), 1099 + vImport 1100 + ]) 1101 + ]); 1102 + 1076 1103 export const vAdditionalPropertiesUnknownIssueWritable = v.object({}); 1104 + 1105 + export const vOneOfAllOfIssueWritable = v.union([ 1106 + v.intersect([ 1107 + v.union([ 1108 + vConstValue, 1109 + vGenericSchemaDuplicateIssue1SystemBoolean 1110 + ]), 1111 + v3eNum1Период 1112 + ]), 1113 + vGenericSchemaDuplicateIssue1SystemString 1114 + ]); 1077 1115 1078 1116 export const vGenericSchemaDuplicateIssue1SystemBooleanWritable = v.object({ 1079 1117 item: v.optional(v.boolean()), ··· 1156 1194 export const vImportData = v.object({ 1157 1195 body: v.union([ 1158 1196 vModelWithReadOnlyAndWriteOnlyWritable, 1159 - vModelWithArrayReadOnlyAndWriteOnly 1197 + vModelWithArrayReadOnlyAndWriteOnlyWritable 1160 1198 ]), 1161 1199 path: v.optional(v.never()), 1162 1200 query: v.optional(v.never())
+10 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-properties-required-by-default/types.gen.ts
··· 4864 4864 amount: number; 4865 4865 }; 4866 4866 4867 + export type BroadcastedResponsesWritable = { 4868 + responses: Array<LocationResponseWritable> | null; 4869 + }; 4870 + 4867 4871 /** 4868 4872 * Product category sales summary for cannabis retail closing reports and financial analysis. 4869 4873 */ ··· 5441 5445 serialNumber: string | null; 5442 5446 }; 5443 5447 5448 + export type InventoryIntegrationReconResponseWritable = { 5449 + lastUpdated: string | null; 5450 + discrepancies: Array<InventoryDiscrepancyWritable> | null; 5451 + }; 5452 + 5444 5453 /** 5445 5454 * Inventory item model representing current stock and product details for available inventory. 5446 5455 */ ··· 5875 5884 externalId: string | null; 5876 5885 syncExternally: boolean; 5877 5886 regulatoryName: string | null; 5878 - broadcastedResponses: BroadcastedResponses; 5887 + broadcastedResponses: BroadcastedResponsesWritable; 5879 5888 administrationMethod: string | null; 5880 5889 unitCBDContentDose: number | null; 5881 5890 unitTHCContentDose: number | null;
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/import-file-extension-ts/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/import-file-extension-ts/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/import-file-extension-ts/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/import-file-extension-ts/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-number/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-strict/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-string/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/clean-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/import-file-extension-ts/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-optional/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-required/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-nodenext-sdk/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default-class/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+77
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/schemas/default/schemas.gen.ts
··· 1997 1997 required: ['id'] 1998 1998 } as const; 1999 1999 2000 + export const ModelWithReferenceWritableSchema = { 2001 + description: 'This is a model with one property containing a reference', 2002 + type: 'object', 2003 + properties: { 2004 + prop: { 2005 + '$ref': '#/components/schemas/ModelWithPropertiesWritable' 2006 + } 2007 + } 2008 + } as const; 2009 + 2010 + export const ModelWithArrayReadOnlyAndWriteOnlyWritableSchema = { 2011 + description: 'This is a model with one property containing an array', 2012 + type: 'object', 2013 + properties: { 2014 + prop: { 2015 + type: 'array', 2016 + items: { 2017 + '$ref': '#/components/schemas/ModelWithReadOnlyAndWriteOnlyWritable' 2018 + } 2019 + }, 2020 + propWithFile: { 2021 + type: 'array', 2022 + items: { 2023 + format: 'binary', 2024 + type: 'string' 2025 + } 2026 + }, 2027 + propWithNumber: { 2028 + type: 'array', 2029 + items: { 2030 + type: 'number' 2031 + } 2032 + } 2033 + } 2034 + } as const; 2035 + 2000 2036 export const ModelWithPropertiesWritableSchema = { 2001 2037 description: 'This is a model with one nested property', 2002 2038 type: 'object', ··· 2096 2132 } 2097 2133 } as const; 2098 2134 2135 + export const ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritableSchema = { 2136 + type: 'array', 2137 + items: { 2138 + oneOf: [ 2139 + { 2140 + type: 'number' 2141 + }, 2142 + { 2143 + '$ref': '#/components/schemas/import' 2144 + } 2145 + ] 2146 + }, 2147 + minItems: 2, 2148 + maxItems: 2 2149 + } as const; 2150 + 2099 2151 export const AdditionalPropertiesUnknownIssueWritableSchema = { 2100 2152 type: 'object', 2101 2153 additionalProperties: { ··· 2108 2160 } 2109 2161 ] 2110 2162 } 2163 + } as const; 2164 + 2165 + export const OneOfAllOfIssueWritableSchema = { 2166 + oneOf: [ 2167 + { 2168 + allOf: [ 2169 + { 2170 + oneOf: [ 2171 + { 2172 + '$ref': '#/components/schemas/ConstValue' 2173 + }, 2174 + { 2175 + '$ref': '#/components/schemas/Generic.Schema.Duplicate.Issue`1[System.Boolean]' 2176 + } 2177 + ] 2178 + }, 2179 + { 2180 + '$ref': '#/components/schemas/3e-num_1Период' 2181 + } 2182 + ] 2183 + }, 2184 + { 2185 + '$ref': '#/components/schemas/Generic.Schema.Duplicate.Issue`1[System.String]' 2186 + } 2187 + ] 2111 2188 } as const; 2112 2189 2113 2190 export const Generic_Schema_Duplicate_Issue_1_System_Boolean_WritableSchema = {
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+8 -8
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/types.gen.ts
··· 16 16 readonly baz?: string; 17 17 }; 18 18 19 - export type FooReadWriteRef = { 20 - foo?: ReadableFooReadWrite; 21 - bar?: FooReadWriteRef; 22 - }; 23 - 24 - export type FooReadWriteRef2 = ReadableFooReadWrite; 25 - 26 19 export type ReadableFooReadWrite = ReadableBarRead; 27 20 28 21 export type WritableFooReadWrite = WritableBarRead & { ··· 76 69 77 70 export type ReadableFooReadWriteRef = { 78 71 foo?: ReadableFooReadWrite; 79 - bar?: FooReadWriteRef; 72 + bar?: ReadableFooReadWriteRef; 73 + }; 74 + 75 + export type WritableFooReadWriteRef = { 76 + foo?: WritableFooReadWrite; 77 + bar?: WritableFooReadWriteRef; 80 78 }; 81 79 82 80 export type ReadableFooReadWriteRef2 = ReadableFooReadWrite; 81 + 82 + export type WritableFooReadWriteRef2 = WritableFooReadWrite; 83 83 84 84 /** 85 85 * Query parameter
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+24 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts
··· 983 983 }; 984 984 985 985 /** 986 + * This is a model with one property containing a reference 987 + */ 988 + export type ModelWithReferenceWritable = { 989 + prop?: ModelWithPropertiesWritable; 990 + }; 991 + 992 + /** 993 + * This is a model with one property containing an array 994 + */ 995 + export type ModelWithArrayReadOnlyAndWriteOnlyWritable = { 996 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 997 + propWithFile?: Array<Blob | File>; 998 + propWithNumber?: Array<number>; 999 + }; 1000 + 1001 + /** 986 1002 * This is a model with one nested property 987 1003 */ 988 1004 export type ModelWithPropertiesWritable = { ··· 1022 1038 baz: string; 1023 1039 }; 1024 1040 1041 + export type ModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = [ 1042 + number | Import, 1043 + number | Import 1044 + ]; 1045 + 1025 1046 export type AdditionalPropertiesUnknownIssueWritable = { 1026 1047 [key: string]: string | number; 1027 1048 }; 1049 + 1050 + export type OneOfAllOfIssueWritable = ((ConstValue | GenericSchemaDuplicateIssue1SystemBoolean) & _3eNum1Период) | GenericSchemaDuplicateIssue1SystemString; 1028 1051 1029 1052 export type GenericSchemaDuplicateIssue1SystemBooleanWritable = { 1030 1053 item?: boolean; ··· 1081 1104 }; 1082 1105 1083 1106 export type ImportData = { 1084 - body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnly; 1107 + body: ModelWithReadOnlyAndWriteOnlyWritable | ModelWithArrayReadOnlyAndWriteOnlyWritable; 1085 1108 path?: never; 1086 1109 query?: never; 1087 1110 url: '/api/v{api-version}/no+tag';
+39 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/valibot/default/valibot.gen.ts
··· 1056 1056 }); 1057 1057 1058 1058 /** 1059 + * This is a model with one property containing a reference 1060 + */ 1061 + export const vModelWithReferenceWritable = v.object({ 1062 + prop: v.optional(vModelWithPropertiesWritable) 1063 + }); 1064 + 1065 + /** 1059 1066 * This is a model that contains a some patterns 1060 1067 */ 1061 1068 export const vModelWithPatternWritable = v.object({ ··· 1077 1084 baz: v.string() 1078 1085 }); 1079 1086 1087 + /** 1088 + * This is a model with one property containing an array 1089 + */ 1090 + export const vModelWithArrayReadOnlyAndWriteOnlyWritable = v.object({ 1091 + prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnlyWritable)), 1092 + propWithFile: v.optional(v.array(v.string())), 1093 + propWithNumber: v.optional(v.array(v.number())) 1094 + }); 1095 + 1096 + export const vModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = v.tuple([ 1097 + v.union([ 1098 + v.number(), 1099 + vImport 1100 + ]), 1101 + v.union([ 1102 + v.number(), 1103 + vImport 1104 + ]) 1105 + ]); 1106 + 1080 1107 export const vAdditionalPropertiesUnknownIssueWritable = v.object({}); 1108 + 1109 + export const vOneOfAllOfIssueWritable = v.union([ 1110 + v.intersect([ 1111 + v.union([ 1112 + vConstValue, 1113 + vGenericSchemaDuplicateIssue1SystemBoolean 1114 + ]), 1115 + v3eNum1Период 1116 + ]), 1117 + vGenericSchemaDuplicateIssue1SystemString 1118 + ]); 1081 1119 1082 1120 export const vGenericSchemaDuplicateIssue1SystemBooleanWritable = v.object({ 1083 1121 item: v.optional(v.boolean()), ··· 1166 1204 export const vImportData = v.object({ 1167 1205 body: v.union([ 1168 1206 vModelWithReadOnlyAndWriteOnlyWritable, 1169 - vModelWithArrayReadOnlyAndWriteOnly 1207 + vModelWithArrayReadOnlyAndWriteOnlyWritable 1170 1208 ]), 1171 1209 path: v.optional(v.never()), 1172 1210 query: v.optional(v.never())
+6 -2
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-read-write-nested/types.gen.ts
··· 5 5 }; 6 6 7 7 export type CreateItemRequest = { 8 - payload: PayloadWritable; 8 + payload: Payload; 9 9 }; 10 10 11 11 export type Payload = { 12 12 kind: 'jpeg'; 13 + }; 14 + 15 + export type CreateItemRequestWritable = { 16 + payload: PayloadWritable; 13 17 }; 14 18 15 19 export type PayloadWritable = { ··· 21 25 }; 22 26 23 27 export type ItemCreateData = { 24 - body: CreateItemRequest; 28 + body: CreateItemRequestWritable; 25 29 path?: never; 26 30 query?: never; 27 31 url: '/items';
+4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-read-write-response/types.gen.ts
··· 20 20 readonly created_at?: string; 21 21 }; 22 22 23 + export type ItemListResponseWritable = { 24 + items: Array<ItemWritable>; 25 + }; 26 + 23 27 export type ItemWritable = { 24 28 name: string; 25 29 };
+7
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-read-write/types.gen.ts
··· 74 74 }; 75 75 }; 76 76 77 + export type FooReadWriteRefWritable = { 78 + foo?: FooReadWriteWritable; 79 + bar?: FooReadWriteRefWritable; 80 + }; 81 + 82 + export type FooReadWriteRef2Writable = FooReadWriteWritable; 83 + 77 84 /** 78 85 * Query parameter 79 86 */
+7
packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/mini/default/zod.gen.ts
··· 441 441 }); 442 442 443 443 /** 444 + * This is a model with one property containing a reference 445 + */ 446 + export const zModelWithReferenceWritable = z.object({ 447 + prop: z.optional(zModelWithPropertiesWritable) 448 + }); 449 + 450 + /** 444 451 * This is a model that contains a some patterns 445 452 */ 446 453 export const zModelWithPatternWritable = z.object({
+7
packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v3/default/zod.gen.ts
··· 439 439 }); 440 440 441 441 /** 442 + * This is a model with one property containing a reference 443 + */ 444 + export const zModelWithReferenceWritable = z.object({ 445 + prop: zModelWithPropertiesWritable.optional() 446 + }); 447 + 448 + /** 442 449 * This is a model that contains a some patterns 443 450 */ 444 451 export const zModelWithPatternWritable = z.object({
+7
packages/openapi-ts-tests/zod/v3/__snapshots__/2.0.x/v4/default/zod.gen.ts
··· 441 441 }); 442 442 443 443 /** 444 + * This is a model with one property containing a reference 445 + */ 446 + export const zModelWithReferenceWritable = z.object({ 447 + prop: z.optional(zModelWithPropertiesWritable) 448 + }); 449 + 450 + /** 444 451 * This is a model that contains a some patterns 445 452 */ 446 453 export const zModelWithPatternWritable = z.object({
+36 -1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/mini/default/zod.gen.ts
··· 1091 1091 }); 1092 1092 1093 1093 /** 1094 + * This is a model with one property containing a reference 1095 + */ 1096 + export const zModelWithReferenceWritable = z.object({ 1097 + prop: z.optional(zModelWithPropertiesWritable) 1098 + }); 1099 + 1100 + /** 1094 1101 * This is a model that contains a some patterns 1095 1102 */ 1096 1103 export const zModelWithPatternWritable = z.object({ ··· 1112 1119 baz: z.string() 1113 1120 }); 1114 1121 1122 + /** 1123 + * This is a model with one property containing an array 1124 + */ 1125 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1126 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1127 + propWithFile: z.optional(z.array(z.string())), 1128 + propWithNumber: z.optional(z.array(z.number())) 1129 + }); 1130 + 1131 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1132 + z.union([ 1133 + z.number(), 1134 + zImport 1135 + ]), 1136 + z.union([ 1137 + z.number(), 1138 + zImport 1139 + ]) 1140 + ]); 1141 + 1115 1142 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1116 1143 z.string(), 1117 1144 z.number() 1118 1145 ])); 1146 + 1147 + export const zOneOfAllOfIssueWritable = z.union([ 1148 + z.intersection(z.union([ 1149 + zConstValue, 1150 + zGenericSchemaDuplicateIssue1SystemBoolean 1151 + ]), z3eNum1Период), 1152 + zGenericSchemaDuplicateIssue1SystemString 1153 + ]); 1119 1154 1120 1155 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1121 1156 item: z.optional(z.boolean()), ··· 1192 1227 export const zImportData = z.object({ 1193 1228 body: z.union([ 1194 1229 zModelWithReadOnlyAndWriteOnlyWritable, 1195 - zModelWithArrayReadOnlyAndWriteOnly 1230 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1196 1231 ]), 1197 1232 path: z.optional(z.never()), 1198 1233 query: z.optional(z.never())
+36 -1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v3/default/zod.gen.ts
··· 1089 1089 }); 1090 1090 1091 1091 /** 1092 + * This is a model with one property containing a reference 1093 + */ 1094 + export const zModelWithReferenceWritable = z.object({ 1095 + prop: zModelWithPropertiesWritable.optional() 1096 + }); 1097 + 1098 + /** 1092 1099 * This is a model that contains a some patterns 1093 1100 */ 1094 1101 export const zModelWithPatternWritable = z.object({ ··· 1110 1117 baz: z.string() 1111 1118 }); 1112 1119 1120 + /** 1121 + * This is a model with one property containing an array 1122 + */ 1123 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1124 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 1125 + propWithFile: z.array(z.string()).optional(), 1126 + propWithNumber: z.array(z.number()).optional() 1127 + }); 1128 + 1129 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1130 + z.union([ 1131 + z.number(), 1132 + zImport 1133 + ]), 1134 + z.union([ 1135 + z.number(), 1136 + zImport 1137 + ]) 1138 + ]); 1139 + 1113 1140 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([ 1114 1141 z.string(), 1115 1142 z.number() 1116 1143 ])); 1144 + 1145 + export const zOneOfAllOfIssueWritable = z.union([ 1146 + z.intersection(z.union([ 1147 + zConstValue, 1148 + zGenericSchemaDuplicateIssue1SystemBoolean 1149 + ]), z3eNum1Период), 1150 + zGenericSchemaDuplicateIssue1SystemString 1151 + ]); 1117 1152 1118 1153 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1119 1154 item: z.boolean().optional(), ··· 1190 1225 export const zImportData = z.object({ 1191 1226 body: z.union([ 1192 1227 zModelWithReadOnlyAndWriteOnlyWritable, 1193 - zModelWithArrayReadOnlyAndWriteOnly 1228 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1194 1229 ]), 1195 1230 path: z.never().optional(), 1196 1231 query: z.never().optional()
+36 -1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v4/default/zod.gen.ts
··· 1091 1091 }); 1092 1092 1093 1093 /** 1094 + * This is a model with one property containing a reference 1095 + */ 1096 + export const zModelWithReferenceWritable = z.object({ 1097 + prop: z.optional(zModelWithPropertiesWritable) 1098 + }); 1099 + 1100 + /** 1094 1101 * This is a model that contains a some patterns 1095 1102 */ 1096 1103 export const zModelWithPatternWritable = z.object({ ··· 1112 1119 baz: z.string() 1113 1120 }); 1114 1121 1122 + /** 1123 + * This is a model with one property containing an array 1124 + */ 1125 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1126 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1127 + propWithFile: z.optional(z.array(z.string())), 1128 + propWithNumber: z.optional(z.array(z.number())) 1129 + }); 1130 + 1131 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1132 + z.union([ 1133 + z.number(), 1134 + zImport 1135 + ]), 1136 + z.union([ 1137 + z.number(), 1138 + zImport 1139 + ]) 1140 + ]); 1141 + 1115 1142 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1116 1143 z.string(), 1117 1144 z.number() 1118 1145 ])); 1146 + 1147 + export const zOneOfAllOfIssueWritable = z.union([ 1148 + z.intersection(z.union([ 1149 + zConstValue, 1150 + zGenericSchemaDuplicateIssue1SystemBoolean 1151 + ]), z3eNum1Период), 1152 + zGenericSchemaDuplicateIssue1SystemString 1153 + ]); 1119 1154 1120 1155 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1121 1156 item: z.optional(z.boolean()), ··· 1192 1227 export const zImportData = z.object({ 1193 1228 body: z.union([ 1194 1229 zModelWithReadOnlyAndWriteOnlyWritable, 1195 - zModelWithArrayReadOnlyAndWriteOnly 1230 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1196 1231 ]), 1197 1232 path: z.optional(z.never()), 1198 1233 query: z.optional(z.never())
+36 -1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/mini/default/zod.gen.ts
··· 1097 1097 }); 1098 1098 1099 1099 /** 1100 + * This is a model with one property containing a reference 1101 + */ 1102 + export const zModelWithReferenceWritable = z.object({ 1103 + prop: z.optional(zModelWithPropertiesWritable) 1104 + }); 1105 + 1106 + /** 1100 1107 * This is a model that contains a some patterns 1101 1108 */ 1102 1109 export const zModelWithPatternWritable = z.object({ ··· 1118 1125 baz: z.string() 1119 1126 }); 1120 1127 1128 + /** 1129 + * This is a model with one property containing an array 1130 + */ 1131 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1132 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1133 + propWithFile: z.optional(z.array(z.string())), 1134 + propWithNumber: z.optional(z.array(z.number())) 1135 + }); 1136 + 1137 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1138 + z.union([ 1139 + z.number(), 1140 + zImport 1141 + ]), 1142 + z.union([ 1143 + z.number(), 1144 + zImport 1145 + ]) 1146 + ]); 1147 + 1121 1148 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1122 1149 z.string(), 1123 1150 z.number() 1124 1151 ])); 1152 + 1153 + export const zOneOfAllOfIssueWritable = z.union([ 1154 + z.intersection(z.union([ 1155 + zConstValue, 1156 + zGenericSchemaDuplicateIssue1SystemBoolean 1157 + ]), z3eNum1Период), 1158 + zGenericSchemaDuplicateIssue1SystemString 1159 + ]); 1125 1160 1126 1161 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1127 1162 item: z.optional(z.boolean()), ··· 1204 1239 export const zImportData = z.object({ 1205 1240 body: z.union([ 1206 1241 zModelWithReadOnlyAndWriteOnlyWritable, 1207 - zModelWithArrayReadOnlyAndWriteOnly 1242 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1208 1243 ]), 1209 1244 path: z.optional(z.never()), 1210 1245 query: z.optional(z.never())
+36 -1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v3/default/zod.gen.ts
··· 1095 1095 }); 1096 1096 1097 1097 /** 1098 + * This is a model with one property containing a reference 1099 + */ 1100 + export const zModelWithReferenceWritable = z.object({ 1101 + prop: zModelWithPropertiesWritable.optional() 1102 + }); 1103 + 1104 + /** 1098 1105 * This is a model that contains a some patterns 1099 1106 */ 1100 1107 export const zModelWithPatternWritable = z.object({ ··· 1116 1123 baz: z.string() 1117 1124 }); 1118 1125 1126 + /** 1127 + * This is a model with one property containing an array 1128 + */ 1129 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1130 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 1131 + propWithFile: z.array(z.string()).optional(), 1132 + propWithNumber: z.array(z.number()).optional() 1133 + }); 1134 + 1135 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1136 + z.union([ 1137 + z.number(), 1138 + zImport 1139 + ]), 1140 + z.union([ 1141 + z.number(), 1142 + zImport 1143 + ]) 1144 + ]); 1145 + 1119 1146 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([ 1120 1147 z.string(), 1121 1148 z.number() 1122 1149 ])); 1150 + 1151 + export const zOneOfAllOfIssueWritable = z.union([ 1152 + z.intersection(z.union([ 1153 + zConstValue, 1154 + zGenericSchemaDuplicateIssue1SystemBoolean 1155 + ]), z3eNum1Период), 1156 + zGenericSchemaDuplicateIssue1SystemString 1157 + ]); 1123 1158 1124 1159 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1125 1160 item: z.boolean().optional(), ··· 1202 1237 export const zImportData = z.object({ 1203 1238 body: z.union([ 1204 1239 zModelWithReadOnlyAndWriteOnlyWritable, 1205 - zModelWithArrayReadOnlyAndWriteOnly 1240 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1206 1241 ]), 1207 1242 path: z.never().optional(), 1208 1243 query: z.never().optional()
+36 -1
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v4/default/zod.gen.ts
··· 1097 1097 }); 1098 1098 1099 1099 /** 1100 + * This is a model with one property containing a reference 1101 + */ 1102 + export const zModelWithReferenceWritable = z.object({ 1103 + prop: z.optional(zModelWithPropertiesWritable) 1104 + }); 1105 + 1106 + /** 1100 1107 * This is a model that contains a some patterns 1101 1108 */ 1102 1109 export const zModelWithPatternWritable = z.object({ ··· 1118 1125 baz: z.string() 1119 1126 }); 1120 1127 1128 + /** 1129 + * This is a model with one property containing an array 1130 + */ 1131 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1132 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1133 + propWithFile: z.optional(z.array(z.string())), 1134 + propWithNumber: z.optional(z.array(z.number())) 1135 + }); 1136 + 1137 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1138 + z.union([ 1139 + z.number(), 1140 + zImport 1141 + ]), 1142 + z.union([ 1143 + z.number(), 1144 + zImport 1145 + ]) 1146 + ]); 1147 + 1121 1148 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1122 1149 z.string(), 1123 1150 z.number() 1124 1151 ])); 1152 + 1153 + export const zOneOfAllOfIssueWritable = z.union([ 1154 + z.intersection(z.union([ 1155 + zConstValue, 1156 + zGenericSchemaDuplicateIssue1SystemBoolean 1157 + ]), z3eNum1Период), 1158 + zGenericSchemaDuplicateIssue1SystemString 1159 + ]); 1125 1160 1126 1161 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1127 1162 item: z.optional(z.boolean()), ··· 1204 1239 export const zImportData = z.object({ 1205 1240 body: z.union([ 1206 1241 zModelWithReadOnlyAndWriteOnlyWritable, 1207 - zModelWithArrayReadOnlyAndWriteOnly 1242 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1208 1243 ]), 1209 1244 path: z.optional(z.never()), 1210 1245 query: z.optional(z.never())
+7
packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/mini/default/zod.gen.ts
··· 441 441 }); 442 442 443 443 /** 444 + * This is a model with one property containing a reference 445 + */ 446 + export const zModelWithReferenceWritable = z.object({ 447 + prop: z.optional(zModelWithPropertiesWritable) 448 + }); 449 + 450 + /** 444 451 * This is a model that contains a some patterns 445 452 */ 446 453 export const zModelWithPatternWritable = z.object({
+7
packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v3/default/zod.gen.ts
··· 439 439 }); 440 440 441 441 /** 442 + * This is a model with one property containing a reference 443 + */ 444 + export const zModelWithReferenceWritable = z.object({ 445 + prop: zModelWithPropertiesWritable.optional() 446 + }); 447 + 448 + /** 442 449 * This is a model that contains a some patterns 443 450 */ 444 451 export const zModelWithPatternWritable = z.object({
+7
packages/openapi-ts-tests/zod/v4/__snapshots__/2.0.x/v4/default/zod.gen.ts
··· 441 441 }); 442 442 443 443 /** 444 + * This is a model with one property containing a reference 445 + */ 446 + export const zModelWithReferenceWritable = z.object({ 447 + prop: z.optional(zModelWithPropertiesWritable) 448 + }); 449 + 450 + /** 444 451 * This is a model that contains a some patterns 445 452 */ 446 453 export const zModelWithPatternWritable = z.object({
+36 -1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/mini/default/zod.gen.ts
··· 1091 1091 }); 1092 1092 1093 1093 /** 1094 + * This is a model with one property containing a reference 1095 + */ 1096 + export const zModelWithReferenceWritable = z.object({ 1097 + prop: z.optional(zModelWithPropertiesWritable) 1098 + }); 1099 + 1100 + /** 1094 1101 * This is a model that contains a some patterns 1095 1102 */ 1096 1103 export const zModelWithPatternWritable = z.object({ ··· 1112 1119 baz: z.string() 1113 1120 }); 1114 1121 1122 + /** 1123 + * This is a model with one property containing an array 1124 + */ 1125 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1126 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1127 + propWithFile: z.optional(z.array(z.string())), 1128 + propWithNumber: z.optional(z.array(z.number())) 1129 + }); 1130 + 1131 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1132 + z.union([ 1133 + z.number(), 1134 + zImport 1135 + ]), 1136 + z.union([ 1137 + z.number(), 1138 + zImport 1139 + ]) 1140 + ]); 1141 + 1115 1142 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1116 1143 z.string(), 1117 1144 z.number() 1118 1145 ])); 1146 + 1147 + export const zOneOfAllOfIssueWritable = z.union([ 1148 + z.intersection(z.union([ 1149 + zConstValue, 1150 + zGenericSchemaDuplicateIssue1SystemBoolean 1151 + ]), z3eNum1Период), 1152 + zGenericSchemaDuplicateIssue1SystemString 1153 + ]); 1119 1154 1120 1155 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1121 1156 item: z.optional(z.boolean()), ··· 1192 1227 export const zImportData = z.object({ 1193 1228 body: z.union([ 1194 1229 zModelWithReadOnlyAndWriteOnlyWritable, 1195 - zModelWithArrayReadOnlyAndWriteOnly 1230 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1196 1231 ]), 1197 1232 path: z.optional(z.never()), 1198 1233 query: z.optional(z.never())
+36 -1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v3/default/zod.gen.ts
··· 1089 1089 }); 1090 1090 1091 1091 /** 1092 + * This is a model with one property containing a reference 1093 + */ 1094 + export const zModelWithReferenceWritable = z.object({ 1095 + prop: zModelWithPropertiesWritable.optional() 1096 + }); 1097 + 1098 + /** 1092 1099 * This is a model that contains a some patterns 1093 1100 */ 1094 1101 export const zModelWithPatternWritable = z.object({ ··· 1110 1117 baz: z.string() 1111 1118 }); 1112 1119 1120 + /** 1121 + * This is a model with one property containing an array 1122 + */ 1123 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1124 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 1125 + propWithFile: z.array(z.string()).optional(), 1126 + propWithNumber: z.array(z.number()).optional() 1127 + }); 1128 + 1129 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1130 + z.union([ 1131 + z.number(), 1132 + zImport 1133 + ]), 1134 + z.union([ 1135 + z.number(), 1136 + zImport 1137 + ]) 1138 + ]); 1139 + 1113 1140 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([ 1114 1141 z.string(), 1115 1142 z.number() 1116 1143 ])); 1144 + 1145 + export const zOneOfAllOfIssueWritable = z.union([ 1146 + z.intersection(z.union([ 1147 + zConstValue, 1148 + zGenericSchemaDuplicateIssue1SystemBoolean 1149 + ]), z3eNum1Период), 1150 + zGenericSchemaDuplicateIssue1SystemString 1151 + ]); 1117 1152 1118 1153 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1119 1154 item: z.boolean().optional(), ··· 1190 1225 export const zImportData = z.object({ 1191 1226 body: z.union([ 1192 1227 zModelWithReadOnlyAndWriteOnlyWritable, 1193 - zModelWithArrayReadOnlyAndWriteOnly 1228 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1194 1229 ]), 1195 1230 path: z.never().optional(), 1196 1231 query: z.never().optional()
+36 -1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v4/default/zod.gen.ts
··· 1091 1091 }); 1092 1092 1093 1093 /** 1094 + * This is a model with one property containing a reference 1095 + */ 1096 + export const zModelWithReferenceWritable = z.object({ 1097 + prop: z.optional(zModelWithPropertiesWritable) 1098 + }); 1099 + 1100 + /** 1094 1101 * This is a model that contains a some patterns 1095 1102 */ 1096 1103 export const zModelWithPatternWritable = z.object({ ··· 1112 1119 baz: z.string() 1113 1120 }); 1114 1121 1122 + /** 1123 + * This is a model with one property containing an array 1124 + */ 1125 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1126 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1127 + propWithFile: z.optional(z.array(z.string())), 1128 + propWithNumber: z.optional(z.array(z.number())) 1129 + }); 1130 + 1131 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1132 + z.union([ 1133 + z.number(), 1134 + zImport 1135 + ]), 1136 + z.union([ 1137 + z.number(), 1138 + zImport 1139 + ]) 1140 + ]); 1141 + 1115 1142 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1116 1143 z.string(), 1117 1144 z.number() 1118 1145 ])); 1146 + 1147 + export const zOneOfAllOfIssueWritable = z.union([ 1148 + z.intersection(z.union([ 1149 + zConstValue, 1150 + zGenericSchemaDuplicateIssue1SystemBoolean 1151 + ]), z3eNum1Период), 1152 + zGenericSchemaDuplicateIssue1SystemString 1153 + ]); 1119 1154 1120 1155 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1121 1156 item: z.optional(z.boolean()), ··· 1192 1227 export const zImportData = z.object({ 1193 1228 body: z.union([ 1194 1229 zModelWithReadOnlyAndWriteOnlyWritable, 1195 - zModelWithArrayReadOnlyAndWriteOnly 1230 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1196 1231 ]), 1197 1232 path: z.optional(z.never()), 1198 1233 query: z.optional(z.never())
+36 -1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/mini/default/zod.gen.ts
··· 1097 1097 }); 1098 1098 1099 1099 /** 1100 + * This is a model with one property containing a reference 1101 + */ 1102 + export const zModelWithReferenceWritable = z.object({ 1103 + prop: z.optional(zModelWithPropertiesWritable) 1104 + }); 1105 + 1106 + /** 1100 1107 * This is a model that contains a some patterns 1101 1108 */ 1102 1109 export const zModelWithPatternWritable = z.object({ ··· 1118 1125 baz: z.string() 1119 1126 }); 1120 1127 1128 + /** 1129 + * This is a model with one property containing an array 1130 + */ 1131 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1132 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1133 + propWithFile: z.optional(z.array(z.string())), 1134 + propWithNumber: z.optional(z.array(z.number())) 1135 + }); 1136 + 1137 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1138 + z.union([ 1139 + z.number(), 1140 + zImport 1141 + ]), 1142 + z.union([ 1143 + z.number(), 1144 + zImport 1145 + ]) 1146 + ]); 1147 + 1121 1148 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1122 1149 z.string(), 1123 1150 z.number() 1124 1151 ])); 1152 + 1153 + export const zOneOfAllOfIssueWritable = z.union([ 1154 + z.intersection(z.union([ 1155 + zConstValue, 1156 + zGenericSchemaDuplicateIssue1SystemBoolean 1157 + ]), z3eNum1Период), 1158 + zGenericSchemaDuplicateIssue1SystemString 1159 + ]); 1125 1160 1126 1161 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1127 1162 item: z.optional(z.boolean()), ··· 1204 1239 export const zImportData = z.object({ 1205 1240 body: z.union([ 1206 1241 zModelWithReadOnlyAndWriteOnlyWritable, 1207 - zModelWithArrayReadOnlyAndWriteOnly 1242 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1208 1243 ]), 1209 1244 path: z.optional(z.never()), 1210 1245 query: z.optional(z.never())
+36 -1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v3/default/zod.gen.ts
··· 1095 1095 }); 1096 1096 1097 1097 /** 1098 + * This is a model with one property containing a reference 1099 + */ 1100 + export const zModelWithReferenceWritable = z.object({ 1101 + prop: zModelWithPropertiesWritable.optional() 1102 + }); 1103 + 1104 + /** 1098 1105 * This is a model that contains a some patterns 1099 1106 */ 1100 1107 export const zModelWithPatternWritable = z.object({ ··· 1116 1123 baz: z.string() 1117 1124 }); 1118 1125 1126 + /** 1127 + * This is a model with one property containing an array 1128 + */ 1129 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1130 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 1131 + propWithFile: z.array(z.string()).optional(), 1132 + propWithNumber: z.array(z.number()).optional() 1133 + }); 1134 + 1135 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1136 + z.union([ 1137 + z.number(), 1138 + zImport 1139 + ]), 1140 + z.union([ 1141 + z.number(), 1142 + zImport 1143 + ]) 1144 + ]); 1145 + 1119 1146 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([ 1120 1147 z.string(), 1121 1148 z.number() 1122 1149 ])); 1150 + 1151 + export const zOneOfAllOfIssueWritable = z.union([ 1152 + z.intersection(z.union([ 1153 + zConstValue, 1154 + zGenericSchemaDuplicateIssue1SystemBoolean 1155 + ]), z3eNum1Период), 1156 + zGenericSchemaDuplicateIssue1SystemString 1157 + ]); 1123 1158 1124 1159 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1125 1160 item: z.boolean().optional(), ··· 1202 1237 export const zImportData = z.object({ 1203 1238 body: z.union([ 1204 1239 zModelWithReadOnlyAndWriteOnlyWritable, 1205 - zModelWithArrayReadOnlyAndWriteOnly 1240 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1206 1241 ]), 1207 1242 path: z.never().optional(), 1208 1243 query: z.never().optional()
+36 -1
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v4/default/zod.gen.ts
··· 1097 1097 }); 1098 1098 1099 1099 /** 1100 + * This is a model with one property containing a reference 1101 + */ 1102 + export const zModelWithReferenceWritable = z.object({ 1103 + prop: z.optional(zModelWithPropertiesWritable) 1104 + }); 1105 + 1106 + /** 1100 1107 * This is a model that contains a some patterns 1101 1108 */ 1102 1109 export const zModelWithPatternWritable = z.object({ ··· 1118 1125 baz: z.string() 1119 1126 }); 1120 1127 1128 + /** 1129 + * This is a model with one property containing an array 1130 + */ 1131 + export const zModelWithArrayReadOnlyAndWriteOnlyWritable = z.object({ 1132 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 1133 + propWithFile: z.optional(z.array(z.string())), 1134 + propWithNumber: z.optional(z.array(z.number())) 1135 + }); 1136 + 1137 + export const zModelWithAnyOfConstantSizeArrayWithNSizeAndOptionsWritable = z.tuple([ 1138 + z.union([ 1139 + z.number(), 1140 + zImport 1141 + ]), 1142 + z.union([ 1143 + z.number(), 1144 + zImport 1145 + ]) 1146 + ]); 1147 + 1121 1148 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([ 1122 1149 z.string(), 1123 1150 z.number() 1124 1151 ])); 1152 + 1153 + export const zOneOfAllOfIssueWritable = z.union([ 1154 + z.intersection(z.union([ 1155 + zConstValue, 1156 + zGenericSchemaDuplicateIssue1SystemBoolean 1157 + ]), z3eNum1Период), 1158 + zGenericSchemaDuplicateIssue1SystemString 1159 + ]); 1125 1160 1126 1161 export const zGenericSchemaDuplicateIssue1SystemBooleanWritable = z.object({ 1127 1162 item: z.optional(z.boolean()), ··· 1204 1239 export const zImportData = z.object({ 1205 1240 body: z.union([ 1206 1241 zModelWithReadOnlyAndWriteOnlyWritable, 1207 - zModelWithArrayReadOnlyAndWriteOnly 1242 + zModelWithArrayReadOnlyAndWriteOnlyWritable 1208 1243 ]), 1209 1244 path: z.optional(z.never()), 1210 1245 query: z.optional(z.never())
+22 -18
packages/openapi-ts/src/openApi/shared/transforms/readWrite.ts
··· 423 423 const writeSchema = deepClone<unknown>(nodeInfo.node); 424 424 pruneSchemaByScope(graph, writeSchema, 'readOnly'); 425 425 426 + // Check if this schema (or any of its descendants) references any schema that 427 + // will need read/write variants. This is determined by checking transitive 428 + // dependencies for schemas with both 'normal' and ('read' or 'write') scopes. 429 + const transitiveDeps = 430 + graph.transitiveDependencies.get(pointer) || new Set(); 431 + const referencesReadWriteSchemas = Array.from(transitiveDeps).some( 432 + (depPointer) => { 433 + const depNodeInfo = graph.nodes.get(depPointer); 434 + return ( 435 + depNodeInfo?.scopes?.has('normal') && 436 + (depNodeInfo.scopes.has('read') || depNodeInfo.scopes.has('write')) 437 + ); 438 + }, 439 + ); 440 + 426 441 // If pruning did not change anything (both variants equal and equal to original), 442 + // and the schema doesn't reference any schemas that will have read/write variants, 427 443 // skip splitting and keep the original single schema. 428 444 if ( 445 + !referencesReadWriteSchemas && 429 446 deepEqual(readSchema, writeSchema) && 430 447 deepEqual(readSchema, nodeInfo.node) 431 448 ) { ··· 475 492 * @param split - The split mapping (from splitSchemas) 476 493 */ 477 494 export const updateRefsInSpec = ({ 478 - graph, 479 495 logger, 480 496 spec, 481 497 split, 482 498 }: { 483 - graph: Graph; 484 499 logger: Logger; 485 500 spec: unknown; 486 501 split: Omit<SplitSchemas, 'schemas'>; ··· 524 539 } else if (mapping?.write === nextPointer) { 525 540 nextContext = 'write'; 526 541 } 527 - } else { 528 - // Not a split variant - check graph for the schema's scopes 529 - const nodeInfo = graph.nodes.get(nextPointer); 530 - if (nodeInfo?.scopes) { 531 - // If schema has only write scope, use write context 532 - // If schema has only read scope, use read context 533 - // If schema has both or neither, leave context as-is (null) 534 - const hasRead = nodeInfo.scopes.has('read'); 535 - const hasWrite = nodeInfo.scopes.has('write'); 536 - if (hasWrite && !hasRead) { 537 - nextContext = 'write'; 538 - } else if (hasRead && !hasWrite) { 539 - nextContext = 'read'; 540 - } 541 - } 542 542 } 543 + // For schemas that are not split variants, keep the inherited context. 544 + // This ensures that $refs inside these schemas are resolved based on 545 + // where the schema is actually used (requestBody vs responses), not 546 + // based on the schema's own scopes which track readOnly/writeOnly fields. 543 547 } 544 548 545 549 const compContext = getComponentContext(path); ··· 711 715 const originalSchemas = captureOriginalSchemas(spec, logger); 712 716 const split = splitSchemas({ config, graph, logger, spec }); 713 717 insertSplitSchemasIntoSpec({ logger, spec, split }); 714 - updateRefsInSpec({ graph, logger, spec, split }); 718 + updateRefsInSpec({ logger, spec, split }); 715 719 removeOriginalSplitSchemas({ logger, originalSchemas, spec, split }); 716 720 };