New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json: way to omit fields #298
Comments
Hmm, the configuration format is currently not set up to allow this type of fine-grained configuration. Any idea on how we could change it? |
I mean probably the answer is just "don't use the same struct for JSON serialization that you use for the database." |
(having thought about this for a few days) |
I have also arrived at the same conclusion no less than 3 times in the past, after starting out with JSON on my (hand-written) database models and fighting the inflexibility 😂 |
@kevinburkemeter Going to mark this as wontfix. |
Maybe we can use comments for this:
For |
@kyleconroy I was wondering if this will be given consideration, moreover with the comment from @dimuls . |
Was this implemented? |
open pr for the feature -> #3117 |
I have emit_json_tags set to true but it would be nice to have some way to omit specific tags. In particular, I would not like to expose
auto_id
, the serial incrementing integer fieldThe text was updated successfully, but these errors were encountered: