This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option for using BigDecimal for number type (#42)
We are using generated clients to transfer monetary data for fields that are declared as type:number. Before this commit Double would be generated for number types which was not adequate for transfering monetary data. This commit exposes the option provided by jsonschema2pojo to generate BigDecimals for numbers. NOTE: raml-spec does not define arbitrary precision numbers but only provides the option to select from fixed precision formats. Despite this we think that using BigDecimals on clients is reasonable to represent & transfer such information. Their use is supported by various tools such as serializers/deserializers eg jackson and code generators for other specification eg openapi-generator-maven-plugin.
- Loading branch information
Showing
5 changed files
with
24 additions
and
1 deletion.
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