-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(type-safe-api): more robust support for composed schemas in types…
…cript (#856) Revamped models generated from composed schemas (ie oneOf, anyOf, allOf). Rather than inlining properties, use intersection and union types to represent allOf and anyOf. oneOf is difficult to model in typescript, so we opt for the same behaviour as anyOf for now. OpenAPI generator never worked for anyOf/oneOf with a mixture of object and primitive types, whereas this change generates valid code for this case.
- Loading branch information
Showing
16 changed files
with
24,381 additions
and
1,659 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
Oops, something went wrong.