-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1177 from hey-api/refactor/parser-polish
refactor: polish parser output
- Loading branch information
Showing
17 changed files
with
237 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 4 additions & 16 deletions
20
packages/openapi-ts/test/__snapshots__/3.1.0/duplicate-null/types.gen.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
|
||
export type PostTestData = { | ||
/** | ||
* should not produce duplicate null | ||
*/ | ||
body?: { | ||
weirdEnum?: ('' | (string) | null); | ||
}; | ||
}; | ||
|
||
export type $OpenApiTs = { | ||
'/test': { | ||
post: { | ||
req: PostTestData; | ||
}; | ||
}; | ||
}; | ||
/** | ||
* should not produce duplicate null | ||
*/ | ||
export type WeirdEnum = '' | string | null; |
2 changes: 2 additions & 0 deletions
2
packages/openapi-ts/test/__snapshots__/3.1.0/object-properties-all-of/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
export * from './types.gen'; |
Oops, something went wrong.