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
Invalid swagger generated for types that are represented as nested arrays of different types.
For example,
data Simple = Simple Int String (Int, String)
both seem to be represented as Swagger Arrays of two items with two types.
But if I'm representing a array of these types:
[Simple] [(Int,String)] newtype SimpleMap = SimpleMap (HashMap SomeType1 SomeType2)
seemed to be represented as Swagger Arrays of Swagger Arrays of different types.
When I run the generated swagger through a swagger editor, I get an error because swagger 2.0 doesn't like nested arrays of different types.
Swagger:
SimpleMap: items: minItems: 2 items: - $ref: '#/definitions/SomeType1' - $ref: '#/definitions/SomeType2' maxItems: 2 type: array type: array
Error:
Structural error at definitions.SimpleMap.items.items should be object
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Invalid swagger generated for types that are represented as nested arrays of different types.
For example,
both seem to be represented as Swagger Arrays of two items with two types.
But if I'm representing a array of these types:
seemed to be represented as Swagger Arrays of Swagger Arrays of different types.
When I run the generated swagger through a swagger editor, I get an error because swagger 2.0 doesn't like nested arrays of different types.
Swagger:
Error:
The text was updated successfully, but these errors were encountered: