Skip to content

Commit cbe18a6

Browse files
committed
update snapshot
1 parent 2e8bee5 commit cbe18a6

File tree

21 files changed

+44
-44
lines changed

21 files changed

+44
-44
lines changed

packages/openapi-ts-tests/test/__snapshots__/3.0.x/discriminator-mapped-many/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

33
export type Foo = ({
4-
foo?: 'one' | 'two';
4+
foo: 'one' | 'two';
55
} & Bar) | ({
6-
foo?: 'three';
6+
foo: 'three';
77
} & Baz);
88

99
export type Bar = {

packages/openapi-ts-tests/test/__snapshots__/3.0.x/discriminator-one-of/types.gen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

33
export type Foo = ({
4-
type?: 'Bar';
4+
type: 'Bar';
55
} & Bar) | ({
6-
type?: 'Baz';
6+
type: 'Baz';
77
} & Baz);
88

99
export type Baz = Qux;
@@ -18,9 +18,9 @@ export type Qux = {
1818
export type Quux = 'Bar' | 'Baz';
1919

2020
export type Quuz = ({
21-
type?: 'bar';
21+
type: 'bar';
2222
} & Bar) | ({
23-
type?: 'baz';
23+
type: 'baz';
2424
} & Baz);
2525

2626
export type ClientOptions = {

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ export type ModelSquare = {
442442
* This is a model with one property with a 'one of' relationship where the options are not $ref
443443
*/
444444
export type CompositionWithOneOfDiscriminator = ({
445-
kind?: 'circle';
445+
kind: 'circle';
446446
} & ModelCircle) | ({
447-
kind?: 'square';
447+
kind: 'square';
448448
} & ModelSquare);
449449

450450
/**

0 commit comments

Comments
 (0)