-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Position field now emits also 0 values in JSON (#23)
### Problem Open API Generator sets `DataMember` attribute's `EmitDefaultValue` per default to `false`. Unfortunately for some of our data models, it means that the emitted JSON for decimal values of `0` are ignored. ### Solution Manually override the setting for those fields in these models. Currently supported: - `src/TalonOne/Model/CartItem.cs`'s `Position` property - `src/TalonOne/Model/ReturnedCartItem.cs`'s `Position` property - `src/TalonOne/Model/SetDiscountPerItemEffectProps.cs`'s `Position` property ### Notes - This is a similar problem to the one fixed in #19 , with a couple of new Models
- Loading branch information
Showing
7 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters