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
Is your feature request related to a problem? Please describe.
I have a schema in which an object is constructed from allOf with multiple refs, one of the refs itself has a discriminator field that points to the object.
Currently, the code cannot compile because the model_simple.mustache uses allVars in the helper (constructor) func while the struct has fields only coming from vars
Describe the solution you'd like
I would like the resulting code to have all the fields needed.
Is your feature request related to a problem? Please describe.
I have a schema in which an object is constructed from allOf with multiple refs, one of the refs itself has a discriminator field that points to the object.
Currently, the code cannot compile because the model_simple.mustache uses allVars in the helper (constructor) func while the struct has fields only coming from vars
Describe the solution you'd like
I would like the resulting code to have all the fields needed.
Describe alternatives you've considered
One alternative would be to build the schema as:
Additional context
This is an example schema for this:
The text was updated successfully, but these errors were encountered: