-
-
Notifications
You must be signed in to change notification settings - Fork 43
-
Is your feature request related to a problem? Please describe. In my scenario, I need to assign default values during decoding if certain fields are missing (which is already supported), but I also want to avoid encoding a field if its value matches the same default. Consider this @CodableFor example, if Describe the solution you'd like I feel this feature would be particularly useful for user-editable configuration files where we would want to omit any "optional" fields, or just keeping human-readable configurations minimal for git diffing. |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
|
@tatewake have you looked into the the |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Ah, I have not, I'll look into it. |
Beta Was this translation helpful? Give feedback.
All reactions
-
|
I have moved this to discussion for now. |
Beta Was this translation helpful? Give feedback.