You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
comsma
changed the title
Adding Kind Identifier to Type in fields generated from oneOf.
Adding Schema Identifier to Type in fields generated from oneOf.
Mar 5, 2025
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
The text was updated successfully, but these errors were encountered: