@@ -5546,6 +5546,21 @@ export type CompositionWithOneOfAnonymous = {
5546
5546
"
5547
5547
`;
5548
5548
5549
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/models/CompositionWithOneOfDiscriminator.ts 1`] = `
5550
+ "/* istanbul ignore file */
5551
+ /* tslint:disable */
5552
+ /* eslint-disable */
5553
+
5554
+ import type { ModelCircle } from './ModelCircle';
5555
+ import type { ModelSquare } from './ModelSquare';
5556
+
5557
+ /**
5558
+ * This is a model with one property with a 'one of' relationship where the options are not $ref
5559
+ */
5560
+ export type CompositionWithOneOfDiscriminator = (ModelCircle | ModelSquare);
5561
+ "
5562
+ `;
5563
+
5549
5564
exports[`v3 should generate with exportClient: ./test/generated/v3_client/models/DictionaryWithArray.ts 1`] = `
5550
5565
"/* istanbul ignore file */
5551
5566
/* tslint:disable */
@@ -5685,6 +5700,51 @@ export enum EnumWithStrings {
5685
5700
}"
5686
5701
`;
5687
5702
5703
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/models/File.ts 1`] = `
5704
+ "/* istanbul ignore file */
5705
+ /* tslint:disable */
5706
+ /* eslint-disable */
5707
+
5708
+ export type File = {
5709
+ readonly id?: string;
5710
+ readonly updated_at?: string;
5711
+ readonly created_at?: string;
5712
+ mime: string;
5713
+ readonly file?: string;
5714
+ }
5715
+ "
5716
+ `;
5717
+
5718
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/models/ModelCircle.ts 1`] = `
5719
+ "/* istanbul ignore file */
5720
+ /* tslint:disable */
5721
+ /* eslint-disable */
5722
+
5723
+ /**
5724
+ * Circle
5725
+ */
5726
+ export type ModelCircle = {
5727
+ kind: 'circle';
5728
+ radius?: number;
5729
+ }
5730
+ "
5731
+ `;
5732
+
5733
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/models/ModelSquare.ts 1`] = `
5734
+ "/* istanbul ignore file */
5735
+ /* tslint:disable */
5736
+ /* eslint-disable */
5737
+
5738
+ /**
5739
+ * Square
5740
+ */
5741
+ export type ModelSquare = {
5742
+ kind: 'square';
5743
+ sideLength?: number;
5744
+ }
5745
+ "
5746
+ `;
5747
+
5688
5748
exports[`v3 should generate with exportClient: ./test/generated/v3_client/models/ModelThatExtends.ts 1`] = `
5689
5749
"/* istanbul ignore file */
5690
5750
/* tslint:disable */
@@ -6455,6 +6515,21 @@ export const $CompositionWithOneOfAnonymous = {
6455
6515
} as const;"
6456
6516
`;
6457
6517
6518
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/schemas/$CompositionWithOneOfDiscriminator.ts 1`] = `
6519
+ "/* istanbul ignore file */
6520
+ /* tslint:disable */
6521
+ /* eslint-disable */
6522
+ export const $CompositionWithOneOfDiscriminator = {
6523
+ type: 'one-of',
6524
+ description: \`This is a model with one property with a 'one of' relationship where the options are not $ref\`,
6525
+ contains: [{
6526
+ type: 'ModelCircle',
6527
+ }, {
6528
+ type: 'ModelSquare',
6529
+ }],
6530
+ } as const;"
6531
+ `;
6532
+
6458
6533
exports[`v3 should generate with exportClient: ./test/generated/v3_client/schemas/$DictionaryWithArray.ts 1`] = `
6459
6534
"/* istanbul ignore file */
6460
6535
/* tslint:disable */
@@ -6564,6 +6639,78 @@ export const $EnumWithStrings = {
6564
6639
} as const;"
6565
6640
`;
6566
6641
6642
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/schemas/$File.ts 1`] = `
6643
+ "/* istanbul ignore file */
6644
+ /* tslint:disable */
6645
+ /* eslint-disable */
6646
+ export const $File = {
6647
+ properties: {
6648
+ id: {
6649
+ type: 'string',
6650
+ isReadOnly: true,
6651
+ minLength: 1,
6652
+ },
6653
+ updated_at: {
6654
+ type: 'string',
6655
+ isReadOnly: true,
6656
+ format: 'date-time',
6657
+ },
6658
+ created_at: {
6659
+ type: 'string',
6660
+ isReadOnly: true,
6661
+ format: 'date-time',
6662
+ },
6663
+ mime: {
6664
+ type: 'string',
6665
+ isRequired: true,
6666
+ maxLength: 24,
6667
+ minLength: 1,
6668
+ },
6669
+ file: {
6670
+ type: 'string',
6671
+ isReadOnly: true,
6672
+ format: 'uri',
6673
+ },
6674
+ },
6675
+ } as const;"
6676
+ `;
6677
+
6678
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/schemas/$ModelCircle.ts 1`] = `
6679
+ "/* istanbul ignore file */
6680
+ /* tslint:disable */
6681
+ /* eslint-disable */
6682
+ export const $ModelCircle = {
6683
+ description: \`Circle\`,
6684
+ properties: {
6685
+ kind: {
6686
+ type: 'string',
6687
+ isRequired: true,
6688
+ },
6689
+ radius: {
6690
+ type: 'number',
6691
+ },
6692
+ },
6693
+ } as const;"
6694
+ `;
6695
+
6696
+ exports[`v3 should generate with exportClient: ./test/generated/v3_client/schemas/$ModelSquare.ts 1`] = `
6697
+ "/* istanbul ignore file */
6698
+ /* tslint:disable */
6699
+ /* eslint-disable */
6700
+ export const $ModelSquare = {
6701
+ description: \`Square\`,
6702
+ properties: {
6703
+ kind: {
6704
+ type: 'string',
6705
+ isRequired: true,
6706
+ },
6707
+ sideLength: {
6708
+ type: 'number',
6709
+ },
6710
+ },
6711
+ } as const;"
6712
+ `;
6713
+
6567
6714
exports[`v3 should generate with exportClient: ./test/generated/v3_client/schemas/$ModelThatExtends.ts 1`] = `
6568
6715
"/* istanbul ignore file */
6569
6716
/* tslint:disable */
0 commit comments