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

Update all test snapshots affected by readWrite transform fix

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+213 -213
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default-class/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts
··· 515 515 prop: { 516 516 type: 'array', 517 517 items: { 518 - '$ref': '#/components/schemas/ModelWithReadOnlyAndWriteOnly' 518 + '$ref': '#/components/schemas/ModelWithReadOnlyAndWriteOnlyWritable' 519 519 } 520 520 }, 521 521 propWithFile: {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts
··· 359 359 * This is a model with one property containing an array 360 360 */ 361 361 export type ModelWithArrayReadOnlyAndWriteOnly = { 362 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 362 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 363 363 propWithFile?: Array<Blob | File>; 364 364 propWithNumber?: Array<number>; 365 365 };
+8 -8
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/valibot/default/valibot.gen.ts
··· 364 364 prop: v.optional(vModelWithProperties) 365 365 }); 366 366 367 - export const vModelWithReadOnlyAndWriteOnly = v.object({ 367 + export const vModelWithReadOnlyAndWriteOnlyWritable = v.object({ 368 368 foo: v.string(), 369 - bar: v.pipe(v.string(), v.readonly()) 369 + baz: v.string() 370 370 }); 371 371 372 372 /** 373 373 * This is a model with one property containing an array 374 374 */ 375 375 export const vModelWithArrayReadOnlyAndWriteOnly = v.object({ 376 - prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnly)), 376 + prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnlyWritable)), 377 377 propWithFile: v.optional(v.array(v.string())), 378 378 propWithNumber: v.optional(v.array(v.number())) 379 379 }); ··· 868 868 foo: v.optional(vModelWithNestedArrayEnumsDataFoo) 869 869 }); 870 870 871 + export const vModelWithReadOnlyAndWriteOnly = v.object({ 872 + foo: v.string(), 873 + bar: v.pipe(v.string(), v.readonly()) 874 + }); 875 + 871 876 export const vModelWithConstantSizeArray = v.tuple([ 872 877 v.number(), 873 878 v.number() ··· 1103 1108 1104 1109 export const vFileWritable = v.object({ 1105 1110 mime: v.pipe(v.string(), v.minLength(1), v.maxLength(24)) 1106 - }); 1107 - 1108 - export const vModelWithReadOnlyAndWriteOnlyWritable = v.object({ 1109 - foo: v.string(), 1110 - baz: v.string() 1111 1111 }); 1112 1112 1113 1113 export const vAdditionalPropertiesUnknownIssueWritable = v.object({});
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-properties-required-by-default/types.gen.ts
··· 194 194 }; 195 195 196 196 export type BroadcastedResponses = { 197 - responses: Array<LocationResponse> | null; 197 + responses: Array<LocationResponseWritable> | null; 198 198 }; 199 199 200 200 export type BulkCreateOrUpdateHarvest = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/import-file-extension-ts/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/import-file-extension-ts/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/import-file-extension-ts/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/import-file-extension-ts/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-number/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-strict/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-string/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/clean-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/import-file-extension-ts/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-optional/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-required/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-nodenext-sdk/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default-class/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/schemas/default/schemas.gen.ts
··· 506 506 prop: { 507 507 type: 'array', 508 508 items: { 509 - '$ref': '#/components/schemas/ModelWithReadOnlyAndWriteOnly' 509 + '$ref': '#/components/schemas/ModelWithReadOnlyAndWriteOnlyWritable' 510 510 } 511 511 }, 512 512 propWithFile: {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts
··· 365 365 * This is a model with one property containing an array 366 366 */ 367 367 export type ModelWithArrayReadOnlyAndWriteOnly = { 368 - prop?: Array<ModelWithReadOnlyAndWriteOnly>; 368 + prop?: Array<ModelWithReadOnlyAndWriteOnlyWritable>; 369 369 propWithFile?: Array<Blob | File>; 370 370 propWithNumber?: Array<number>; 371 371 };
+8 -8
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/valibot/default/valibot.gen.ts
··· 373 373 prop: v.optional(vModelWithProperties) 374 374 }); 375 375 376 - export const vModelWithReadOnlyAndWriteOnly = v.object({ 376 + export const vModelWithReadOnlyAndWriteOnlyWritable = v.object({ 377 377 foo: v.string(), 378 - bar: v.pipe(v.string(), v.readonly()) 378 + baz: v.string() 379 379 }); 380 380 381 381 /** 382 382 * This is a model with one property containing an array 383 383 */ 384 384 export const vModelWithArrayReadOnlyAndWriteOnly = v.object({ 385 - prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnly)), 385 + prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnlyWritable)), 386 386 propWithFile: v.optional(v.array(v.string())), 387 387 propWithNumber: v.optional(v.array(v.number())) 388 388 }); ··· 865 865 foo: v.optional(vModelWithNestedArrayEnumsDataFoo) 866 866 }); 867 867 868 + export const vModelWithReadOnlyAndWriteOnly = v.object({ 869 + foo: v.string(), 870 + bar: v.pipe(v.string(), v.readonly()) 871 + }); 872 + 868 873 export const vModelWithConstantSizeArray = v.tuple([ 869 874 v.number(), 870 875 v.number() ··· 1107 1112 1108 1113 export const vFileWritable = v.object({ 1109 1114 mime: v.pipe(v.string(), v.minLength(1), v.maxLength(24)) 1110 - }); 1111 - 1112 - export const vModelWithReadOnlyAndWriteOnlyWritable = v.object({ 1113 - foo: v.string(), 1114 - baz: v.string() 1115 1115 }); 1116 1116 1117 1117 export const vAdditionalPropertiesUnknownIssueWritable = v.object({});
+8 -8
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/mini/default/zod.gen.ts
··· 407 407 prop: z.optional(zModelWithProperties) 408 408 }); 409 409 410 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 410 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 411 411 foo: z.string(), 412 - bar: z.readonly(z.string()) 412 + baz: z.string() 413 413 }); 414 414 415 415 /** 416 416 * This is a model with one property containing an array 417 417 */ 418 418 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 419 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 419 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 420 420 propWithFile: z.optional(z.array(z.string())), 421 421 propWithNumber: z.optional(z.array(z.number())) 422 422 }); ··· 898 898 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 899 899 }); 900 900 901 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 902 + foo: z.string(), 903 + bar: z.readonly(z.string()) 904 + }); 905 + 901 906 export const zModelWithConstantSizeArray = z.tuple([ 902 907 z.number(), 903 908 z.number() ··· 1136 1141 1137 1142 export const zFileWritable = z.object({ 1138 1143 mime: z.string().check(z.minLength(1), z.maxLength(24)) 1139 - }); 1140 - 1141 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1142 - foo: z.string(), 1143 - baz: z.string() 1144 1144 }); 1145 1145 1146 1146 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([
+8 -8
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v3/default/zod.gen.ts
··· 407 407 prop: zModelWithProperties.optional() 408 408 }); 409 409 410 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 410 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 411 411 foo: z.string(), 412 - bar: z.string().readonly() 412 + baz: z.string() 413 413 }); 414 414 415 415 /** 416 416 * This is a model with one property containing an array 417 417 */ 418 418 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 419 - prop: z.array(zModelWithReadOnlyAndWriteOnly).optional(), 419 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 420 420 propWithFile: z.array(z.string()).optional(), 421 421 propWithNumber: z.array(z.number()).optional() 422 422 }); ··· 896 896 foo: zModelWithNestedArrayEnumsDataFoo.optional() 897 897 }); 898 898 899 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 900 + foo: z.string(), 901 + bar: z.string().readonly() 902 + }); 903 + 899 904 export const zModelWithConstantSizeArray = z.tuple([ 900 905 z.number(), 901 906 z.number() ··· 1134 1139 1135 1140 export const zFileWritable = z.object({ 1136 1141 mime: z.string().min(1).max(24) 1137 - }); 1138 - 1139 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1140 - foo: z.string(), 1141 - baz: z.string() 1142 1142 }); 1143 1143 1144 1144 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([
+8 -8
packages/openapi-ts-tests/zod/v3/__snapshots__/3.0.x/v4/default/zod.gen.ts
··· 407 407 prop: z.optional(zModelWithProperties) 408 408 }); 409 409 410 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 410 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 411 411 foo: z.string(), 412 - bar: z.string().readonly() 412 + baz: z.string() 413 413 }); 414 414 415 415 /** 416 416 * This is a model with one property containing an array 417 417 */ 418 418 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 419 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 419 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 420 420 propWithFile: z.optional(z.array(z.string())), 421 421 propWithNumber: z.optional(z.array(z.number())) 422 422 }); ··· 898 898 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 899 899 }); 900 900 901 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 902 + foo: z.string(), 903 + bar: z.string().readonly() 904 + }); 905 + 901 906 export const zModelWithConstantSizeArray = z.tuple([ 902 907 z.number(), 903 908 z.number() ··· 1136 1141 1137 1142 export const zFileWritable = z.object({ 1138 1143 mime: z.string().min(1).max(24) 1139 - }); 1140 - 1141 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1142 - foo: z.string(), 1143 - baz: z.string() 1144 1144 }); 1145 1145 1146 1146 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([
+8 -8
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/mini/default/zod.gen.ts
··· 416 416 prop: z.optional(zModelWithProperties) 417 417 }); 418 418 419 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 419 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 420 420 foo: z.string(), 421 - bar: z.readonly(z.string()) 421 + baz: z.string() 422 422 }); 423 423 424 424 /** 425 425 * This is a model with one property containing an array 426 426 */ 427 427 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 428 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 428 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 429 429 propWithFile: z.optional(z.array(z.string())), 430 430 propWithNumber: z.optional(z.array(z.number())) 431 431 }); ··· 901 901 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 902 902 }); 903 903 904 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 905 + foo: z.string(), 906 + bar: z.readonly(z.string()) 907 + }); 908 + 904 909 export const zModelWithConstantSizeArray = z.tuple([ 905 910 z.number(), 906 911 z.number() ··· 1142 1147 1143 1148 export const zFileWritable = z.object({ 1144 1149 mime: z.string().check(z.minLength(1), z.maxLength(24)) 1145 - }); 1146 - 1147 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1148 - foo: z.string(), 1149 - baz: z.string() 1150 1150 }); 1151 1151 1152 1152 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([
+8 -8
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v3/default/zod.gen.ts
··· 416 416 prop: zModelWithProperties.optional() 417 417 }); 418 418 419 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 419 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 420 420 foo: z.string(), 421 - bar: z.string().readonly() 421 + baz: z.string() 422 422 }); 423 423 424 424 /** 425 425 * This is a model with one property containing an array 426 426 */ 427 427 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 428 - prop: z.array(zModelWithReadOnlyAndWriteOnly).optional(), 428 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 429 429 propWithFile: z.array(z.string()).optional(), 430 430 propWithNumber: z.array(z.number()).optional() 431 431 }); ··· 899 899 foo: zModelWithNestedArrayEnumsDataFoo.optional() 900 900 }); 901 901 902 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 903 + foo: z.string(), 904 + bar: z.string().readonly() 905 + }); 906 + 902 907 export const zModelWithConstantSizeArray = z.tuple([ 903 908 z.number(), 904 909 z.number() ··· 1140 1145 1141 1146 export const zFileWritable = z.object({ 1142 1147 mime: z.string().min(1).max(24) 1143 - }); 1144 - 1145 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1146 - foo: z.string(), 1147 - baz: z.string() 1148 1148 }); 1149 1149 1150 1150 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([
+8 -8
packages/openapi-ts-tests/zod/v3/__snapshots__/3.1.x/v4/default/zod.gen.ts
··· 416 416 prop: z.optional(zModelWithProperties) 417 417 }); 418 418 419 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 419 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 420 420 foo: z.string(), 421 - bar: z.string().readonly() 421 + baz: z.string() 422 422 }); 423 423 424 424 /** 425 425 * This is a model with one property containing an array 426 426 */ 427 427 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 428 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 428 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 429 429 propWithFile: z.optional(z.array(z.string())), 430 430 propWithNumber: z.optional(z.array(z.number())) 431 431 }); ··· 901 901 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 902 902 }); 903 903 904 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 905 + foo: z.string(), 906 + bar: z.string().readonly() 907 + }); 908 + 904 909 export const zModelWithConstantSizeArray = z.tuple([ 905 910 z.number(), 906 911 z.number() ··· 1142 1147 1143 1148 export const zFileWritable = z.object({ 1144 1149 mime: z.string().min(1).max(24) 1145 - }); 1146 - 1147 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1148 - foo: z.string(), 1149 - baz: z.string() 1150 1150 }); 1151 1151 1152 1152 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([
+8 -8
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/mini/default/zod.gen.ts
··· 407 407 prop: z.optional(zModelWithProperties) 408 408 }); 409 409 410 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 410 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 411 411 foo: z.string(), 412 - bar: z.readonly(z.string()) 412 + baz: z.string() 413 413 }); 414 414 415 415 /** 416 416 * This is a model with one property containing an array 417 417 */ 418 418 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 419 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 419 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 420 420 propWithFile: z.optional(z.array(z.string())), 421 421 propWithNumber: z.optional(z.array(z.number())) 422 422 }); ··· 898 898 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 899 899 }); 900 900 901 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 902 + foo: z.string(), 903 + bar: z.readonly(z.string()) 904 + }); 905 + 901 906 export const zModelWithConstantSizeArray = z.tuple([ 902 907 z.number(), 903 908 z.number() ··· 1136 1141 1137 1142 export const zFileWritable = z.object({ 1138 1143 mime: z.string().check(z.minLength(1), z.maxLength(24)) 1139 - }); 1140 - 1141 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1142 - foo: z.string(), 1143 - baz: z.string() 1144 1144 }); 1145 1145 1146 1146 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([
+8 -8
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v3/default/zod.gen.ts
··· 407 407 prop: zModelWithProperties.optional() 408 408 }); 409 409 410 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 410 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 411 411 foo: z.string(), 412 - bar: z.string().readonly() 412 + baz: z.string() 413 413 }); 414 414 415 415 /** 416 416 * This is a model with one property containing an array 417 417 */ 418 418 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 419 - prop: z.array(zModelWithReadOnlyAndWriteOnly).optional(), 419 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 420 420 propWithFile: z.array(z.string()).optional(), 421 421 propWithNumber: z.array(z.number()).optional() 422 422 }); ··· 896 896 foo: zModelWithNestedArrayEnumsDataFoo.optional() 897 897 }); 898 898 899 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 900 + foo: z.string(), 901 + bar: z.string().readonly() 902 + }); 903 + 899 904 export const zModelWithConstantSizeArray = z.tuple([ 900 905 z.number(), 901 906 z.number() ··· 1134 1139 1135 1140 export const zFileWritable = z.object({ 1136 1141 mime: z.string().min(1).max(24) 1137 - }); 1138 - 1139 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1140 - foo: z.string(), 1141 - baz: z.string() 1142 1142 }); 1143 1143 1144 1144 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([
+8 -8
packages/openapi-ts-tests/zod/v4/__snapshots__/3.0.x/v4/default/zod.gen.ts
··· 407 407 prop: z.optional(zModelWithProperties) 408 408 }); 409 409 410 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 410 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 411 411 foo: z.string(), 412 - bar: z.string().readonly() 412 + baz: z.string() 413 413 }); 414 414 415 415 /** 416 416 * This is a model with one property containing an array 417 417 */ 418 418 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 419 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 419 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 420 420 propWithFile: z.optional(z.array(z.string())), 421 421 propWithNumber: z.optional(z.array(z.number())) 422 422 }); ··· 898 898 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 899 899 }); 900 900 901 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 902 + foo: z.string(), 903 + bar: z.string().readonly() 904 + }); 905 + 901 906 export const zModelWithConstantSizeArray = z.tuple([ 902 907 z.number(), 903 908 z.number() ··· 1136 1141 1137 1142 export const zFileWritable = z.object({ 1138 1143 mime: z.string().min(1).max(24) 1139 - }); 1140 - 1141 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1142 - foo: z.string(), 1143 - baz: z.string() 1144 1144 }); 1145 1145 1146 1146 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([
+8 -8
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/mini/default/zod.gen.ts
··· 416 416 prop: z.optional(zModelWithProperties) 417 417 }); 418 418 419 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 419 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 420 420 foo: z.string(), 421 - bar: z.readonly(z.string()) 421 + baz: z.string() 422 422 }); 423 423 424 424 /** 425 425 * This is a model with one property containing an array 426 426 */ 427 427 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 428 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 428 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 429 429 propWithFile: z.optional(z.array(z.string())), 430 430 propWithNumber: z.optional(z.array(z.number())) 431 431 }); ··· 901 901 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 902 902 }); 903 903 904 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 905 + foo: z.string(), 906 + bar: z.readonly(z.string()) 907 + }); 908 + 904 909 export const zModelWithConstantSizeArray = z.tuple([ 905 910 z.number(), 906 911 z.number() ··· 1142 1147 1143 1148 export const zFileWritable = z.object({ 1144 1149 mime: z.string().check(z.minLength(1), z.maxLength(24)) 1145 - }); 1146 - 1147 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1148 - foo: z.string(), 1149 - baz: z.string() 1150 1150 }); 1151 1151 1152 1152 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([
+8 -8
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v3/default/zod.gen.ts
··· 416 416 prop: zModelWithProperties.optional() 417 417 }); 418 418 419 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 419 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 420 420 foo: z.string(), 421 - bar: z.string().readonly() 421 + baz: z.string() 422 422 }); 423 423 424 424 /** 425 425 * This is a model with one property containing an array 426 426 */ 427 427 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 428 - prop: z.array(zModelWithReadOnlyAndWriteOnly).optional(), 428 + prop: z.array(zModelWithReadOnlyAndWriteOnlyWritable).optional(), 429 429 propWithFile: z.array(z.string()).optional(), 430 430 propWithNumber: z.array(z.number()).optional() 431 431 }); ··· 899 899 foo: zModelWithNestedArrayEnumsDataFoo.optional() 900 900 }); 901 901 902 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 903 + foo: z.string(), 904 + bar: z.string().readonly() 905 + }); 906 + 902 907 export const zModelWithConstantSizeArray = z.tuple([ 903 908 z.number(), 904 909 z.number() ··· 1140 1145 1141 1146 export const zFileWritable = z.object({ 1142 1147 mime: z.string().min(1).max(24) 1143 - }); 1144 - 1145 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1146 - foo: z.string(), 1147 - baz: z.string() 1148 1148 }); 1149 1149 1150 1150 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.union([
+8 -8
packages/openapi-ts-tests/zod/v4/__snapshots__/3.1.x/v4/default/zod.gen.ts
··· 416 416 prop: z.optional(zModelWithProperties) 417 417 }); 418 418 419 - export const zModelWithReadOnlyAndWriteOnly = z.object({ 419 + export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 420 420 foo: z.string(), 421 - bar: z.string().readonly() 421 + baz: z.string() 422 422 }); 423 423 424 424 /** 425 425 * This is a model with one property containing an array 426 426 */ 427 427 export const zModelWithArrayReadOnlyAndWriteOnly = z.object({ 428 - prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnly)), 428 + prop: z.optional(z.array(zModelWithReadOnlyAndWriteOnlyWritable)), 429 429 propWithFile: z.optional(z.array(z.string())), 430 430 propWithNumber: z.optional(z.array(z.number())) 431 431 }); ··· 901 901 foo: z.optional(zModelWithNestedArrayEnumsDataFoo) 902 902 }); 903 903 904 + export const zModelWithReadOnlyAndWriteOnly = z.object({ 905 + foo: z.string(), 906 + bar: z.string().readonly() 907 + }); 908 + 904 909 export const zModelWithConstantSizeArray = z.tuple([ 905 910 z.number(), 906 911 z.number() ··· 1142 1147 1143 1148 export const zFileWritable = z.object({ 1144 1149 mime: z.string().min(1).max(24) 1145 - }); 1146 - 1147 - export const zModelWithReadOnlyAndWriteOnlyWritable = z.object({ 1148 - foo: z.string(), 1149 - baz: z.string() 1150 1150 }); 1151 1151 1152 1152 export const zAdditionalPropertiesUnknownIssueWritable = z.record(z.string(), z.union([