[FINERACT-1863] Swagger schema fix for PutExternalEventConfigurationsRequest() and PutGlobalConfigurationsRequest()

This commit is contained in:
taskain7
2023-01-18 12:58:43 +01:00
committed by Arnold Gálovics
parent f574ea7659
commit 1138b969e5
3 changed files with 2 additions and 3 deletions
@@ -47,7 +47,7 @@ final class GlobalConfigurationApiResourceSwagger {
@Schema(example = "true")
public boolean enabled;
@Schema(example = "2")
public Long description;
public Long value;
}
@Schema(description = "PutGlobalConfigurationsResponse")
@@ -86,7 +86,6 @@ public class ExternalEventConfigurationApiResource {
@RequestBody(required = true, content = @Content(schema = @Schema(implementation = ExternalEventConfigurationApiResourceSwagger.PutExternalEventConfigurationsRequest.class)))
@ApiResponses({
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = CommandProcessingResult.class))) })
public String updateExternalEventConfigurationsDetails(@Parameter(hidden = true) final String apiRequestBodyAsJson) {
context.authenticatedUser().validateHasUpdatePermission(RESOURCE_NAME_FOR_PERMISSIONS);
final CommandWrapper commandRequest = new CommandWrapperBuilder() //
@@ -41,7 +41,7 @@ final class ExternalEventConfigurationApiResourceSwagger {
private PutExternalEventConfigurationsRequest() {}
@Schema(example = "\"CentersCreateBusinessEvent\":true,\n" + "\"ClientActivateBusinessEvent\":true")
public Map<String, Map<String, Boolean>> externalEventConfigurations;
public Map<String, Boolean> externalEventConfigurations;
}