We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
JsonSchema.Net.Generation
4.0.0
If I have the following code:
[Nullable(true)] [MultipleOf(0.1)] public decimal? Apr { get; set; }
the generated schema looks like:
"Apr": { "type": [ "number", "null" ] },
If I change decimal? to decimal I get:
"Apr": { "type": [ "number", "null" ], "multipleOf": 0.1 },
Is it possible to achieve the second result with a nullable decimal?
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. This is an interesting find!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Documentation
Nuget Package
JsonSchema.Net.Generation
Package Version
4.0.0
How can I help? Please provide as much context as possible.
If I have the following code:
the generated schema looks like:
If I change decimal? to decimal I get:
Is it possible to achieve the second result with a nullable decimal?
Code of Conduct
The text was updated successfully, but these errors were encountered: