Skip to content

Commit

Permalink
MODFEE-391 Do not override parameter constraint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrVidinieiev committed Oct 18, 2024
1 parent 44149e3 commit 15266db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/org/folio/rest/impl/ManualBlockTemplatesAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Pattern;

import javax.ws.rs.core.Response;

import org.folio.rest.annotations.Validate;
Expand All @@ -24,9 +26,11 @@ public class ManualBlockTemplatesAPI implements ManualBlockTemplates {
@Override
@Validate
public void getManualBlockTemplates(String query, String orderBy,
ManualBlockTemplatesGetOrder order, String totalRecords, @Min(0) @Max(2147483647) int offset,
@Min(0) @Max(2147483647) int limit, Map<String, String> okapiHeaders,
Handler<AsyncResult<Response>> asyncResultHandler, Context vertxContext) {
ManualBlockTemplatesGetOrder order,
@Pattern(regexp = "exact|estimated|none|auto") String totalRecords,
@Min(0) @Max(2147483647) int offset, @Min(0) @Max(2147483647) int limit,
Map<String, String> okapiHeaders, Handler<AsyncResult<Response>> asyncResultHandler,
Context vertxContext) {

PgUtil
.get(TEMPLATES_TABLE, ManualBlockTemplate.class, ManualBlockTemplateCollection.class, query,
Expand Down

0 comments on commit 15266db

Please sign in to comment.