-
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: Price which is set to
0
for CartItem / AdditionalCost are not …
…ignored (#19) ### 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 There's no nice way to address the problem gracefully using a configuration value for the Open API Generator, so currently we manually override the setting for those models. Currently supported: - `CartItem`'s `Price` property - `AdditionalCost`'s `Price` property ### Commit Summary * Force emitting default value of CartItem price (0-value decimal) * Also force emitting of zero values for additional costs's price * Bump version to 4.0.2
- Loading branch information
Showing
5 changed files
with
8 additions
and
8 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