swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

@ArraySchema name does not override parameter name

Open pimentelra opened this issue 2 years ago • 0 comments

This

@ArraySchema(arraySchema = @Schema(description = "Status of the receipt", name = "status", example = "paid"))
private List<ReceiptStatus> statuses;

results in a parameter of type array with name statuses. As per the documentation (https://docs.swagger.io/swagger-core/v2.2.10/apidocs/io/swagger/v3/oas/annotations/media/ArraySchema.html#arraySchema()) my expectation was the property name to override the parameter name.

Tested with swagger-core 2.2.9, springdpc-openapi-securiy 1.7.0, swagger-annotations 2.2.10

pimentelra avatar Jun 06 '23 08:06 pimentelra