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
Uh oh!
There was an error while loading. Please reload this page.
-
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
privatefield in aPlug.Connstruct, 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