Open lwielek opened 4 years ago
One workaround for this issue is to apply a Schema
annotation to one of the "collection of B" properties.
We have exactly the same issue.
@ali-rantakari What did you mean by the workaround? How should the schema annotation looks like?
I have added @ArraySchema(schema = @Schema(implementation= B.class))
into my B class.
It generated the expected doc.
Version: io.swagger.vore.v3:swagger-core:2.1.1
The model resolver is skipping properties in the specific scenario:
The B collection property is missing in the schema definition
Below code example, that reproduces the issue. DataResponse has property
buckets
(List<BucketResponse>
). BucketResponse has propertybuckets
(List<BucketResponse>
). TheBucketResponse.buckets
property is missing in the OpenAPI schema.