Fixed response schema for GET /lists/blacklist/addresses endpoint

This commit is contained in:
CalDescent 2021-08-10 08:43:47 +01:00
parent 2a0a39a95a
commit 477a35a685

View File

@ -1,6 +1,7 @@
package org.qortal.api.resource;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
@ -244,7 +245,7 @@ public class ListsResource {
responses = {
@ApiResponse(
description = "A JSON array of addresses",
content = @Content(mediaType = MediaType.APPLICATION_JSON, schema = @Schema(type = "boolean"))
content = @Content(mediaType = MediaType.APPLICATION_JSON, array = @ArraySchema(schema = @Schema(implementation = String.class)))
)
}
)