From eb63a93463d14c7081f3f8f99c62c3caa9b32b54 Mon Sep 17 00:00:00 2001 From: Christian Eichenberger Date: Mon, 19 Jun 2023 08:50:42 +0200 Subject: [PATCH] Fix 204 without description. org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI). | Error count: 1, Warning count: 0 Errors: -attribute paths.'/api/billing/token'(put).responses.204.description is missing --- .../src/main/java/org/cryptomator/hub/api/BillingResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/cryptomator/hub/api/BillingResource.java b/backend/src/main/java/org/cryptomator/hub/api/BillingResource.java index 52c96896..1745e04a 100644 --- a/backend/src/main/java/org/cryptomator/hub/api/BillingResource.java +++ b/backend/src/main/java/org/cryptomator/hub/api/BillingResource.java @@ -52,7 +52,7 @@ public BillingDto get() { @RolesAllowed("admin") @Consumes(MediaType.TEXT_PLAIN) @Operation(summary = "set the token") - @APIResponse(responseCode = "204") + @APIResponse(responseCode = "204", description = "token set") @APIResponse(responseCode = "400", description = "token is invalid (e.g., expired or invalid signature)") @APIResponse(responseCode = "403", description = "only admins are allowed to set the token") public Response setToken(@NotNull @ValidJWS String token) {