Replies: 1 comment
-
In release 0.0.6, the generator accepts a new option It's likely I will move the configuration option or change how it works in the future, but this is a good first draft. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Occasionally, client library authors may want the opportunity to stash additional information in data returned from API requests. I'm considering the addition of a metadata field to all generated structs. This would be similar to the
private
field in aPlug.Conn
struct, or__meta__
in an Ecto schema.For clarity, a double-underscore field name might be appropriate. It seems prudent to avoid
__meta__
in case folks would like to create Ecto schemas out of the generated structs in the future. Perhaps__info__
or__private__
would be appropriate.Open to thoughts!
cc @feynmanliang and @aej for your thoughts as library implementers.
Beta Was this translation helpful? Give feedback.
All reactions