swagger-core
swagger-core copied to clipboard
@ArraySchema name does not override parameter name
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