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
Hello, I've been using Go structs to define inputs and outputs and it has been working great! I was now thinking of a more customizable approach.
Is there any way to load in query fields, from a file for example, and generate input/output models from it?
Ideally just by adding extra query fields to the file (specifying field name, tag, type, validation, doc), Huma would generate the complete schema for all the fields.
This probably requires the use of maps instead of structs, but from what I understood Huma only expects structs, unless I missed something from the documentation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I've been using Go structs to define inputs and outputs and it has been working great! I was now thinking of a more customizable approach.
Is there any way to load in query fields, from a file for example, and generate input/output models from it?
Ideally just by adding extra query fields to the file (specifying field name, tag, type, validation, doc), Huma would generate the complete schema for all the fields.
This probably requires the use of maps instead of structs, but from what I understood Huma only expects structs, unless I missed something from the documentation?
Beta Was this translation helpful? Give feedback.
All reactions