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
Consider the following schema:
{ "enum": [ true, false] }
When deserialized to a Schema object, the type is correctly inferred to be "boolean":
Schema
assertEquals( schema.getType(), "boolean"); // Passes
But "enum" values are not deserialized correctly:
assertEquals( schema.getEnum().get(0), "true"); // Passes! assertEquals( schema.getEnum().get(1), Boolean.FALSE); // Fails!
The text was updated successfully, but these errors were encountered:
Fixes issue swagger-api#1129
413b10c
This defect is demonstrated and repaired by changes in PR #1130
Sorry, something went wrong.
Merge pull request #1130 from kerrykimbrough/boolean-enum
b83b171
Fixes issue #1129
this issue was closed by #1130
25345e8
No branches or pull requests
Consider the following schema:
When deserialized to a
Schema
object, the type is correctly inferred to be "boolean":But "enum" values are not deserialized correctly:
The text was updated successfully, but these errors were encountered: