-
-
Notifications
You must be signed in to change notification settings - Fork 613
Open
Labels
enhancementNew feature or requestNew feature or requestopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library
Description
Description
I am currently using a schema that i'm returning search results with. I have implemented an aggregation schema that can represent multiple types of aggregations using the oneOf field in the openapi schema.
I am currently facing the issue of checking the aggregation schema type that is being used. Without explicitly checking for the existence of fields.
Proposal
When generating the schema typescript file is it possible to embed the type of schema being returned? Or implementing helper functions to check the type being returned?
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library