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
Describe the bug
Using @ArraySchema annotation on a field with implementation parameter generates invalid openapi schema.
@ArraySchema
To Reproduce
public enum MyEnum { red, green } public enum MyOtherEnum { green, blue } @ArraySchema(schema = @Schema(implementation = MyOtherEnum.class)) @Size(min = 1, max = 3) private List<MyEnum> setOfEnums;
Generated result:
"setOfEnums" : { "maxItems" : 3, "minItems" : 1, "type" : "array", "items" : { "maxLength" : 3, "minLength" : 1, "type" : "string", "enum" : [ "green", "blue" ] } }
Expected behavior
"setOfEnums" : { "maxItems" : 3, "minItems" : 1, "type" : "array", "items" : { "type" : "string", "enum" : [ "green", "blue" ] } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Using
@ArraySchema
annotation on a field with implementation parameter generates invalid openapi schema.To Reproduce
Generated result:
Expected behavior
The text was updated successfully, but these errors were encountered: