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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The code below shows that the numeric enums are converted to strings when being written as YAML:
String yaml = "swagger: '2.0'\n" + "paths:\n" + " /test:\n" + " get:\n" + " parameters:\n" + " - name: \"days\"\n" + " in: \"path\"\n" + " required: true\n" + " type: \"integer\"\n" + " format: \"int32\"\n" + " enum:\n" + " - 1\n" + " - 2\n" + " - 3\n" + " - 4\n" + " - 5\n" + " responses:\n" + " default:\n" + " description: great"; Swagger swagger = Yaml.mapper().readValue(yaml, Swagger.class); Yaml.prettyPrint(swagger);
The text was updated successfully, but these errors were encountered:
Merge pull request #1829 from frantuma/issue-1765_compatibility
3e5a7e6
refs #1765 - numeric enums in parameter
frantuma
No branches or pull requests
The code below shows that the numeric enums are converted to strings when being written as YAML:
The text was updated successfully, but these errors were encountered: