Closed istibekesi closed 1 month ago
@istibekesi,
This is not a springdoc-openapi
issue, but generated directly in swagger-core
:
ResolvedSchema resolvedSchema = ModelConverters.getInstance()
.resolveAsResolvedSchema(
new AnnotatedType(PersonDTO.class).resolveAsRef(false));
Assert.isTrue((((ArraySchema)resolvedSchema.schema.getProperties().get("setOfEnums")).getItems()).getMaxLength() == null, "maxLength should not be set");
Feel free to raise an issue here: https://github.com/swagger-api/swagger-core/issues
Describe the bug
Using
@ArraySchema
annotation on a field with implementation parameter generates invalid openapi schema.To Reproduce
Generated result:
Expected behavior