From 4de16a2a9803fcb978618baa33785c465b24cd4e Mon Sep 17 00:00:00 2001 From: Mikhail Alpinskiy Date: Fri, 7 Aug 2026 10:44:09 +0000 Subject: [PATCH] fix: remove 9000 cap on offset for GET /v2/jettons/{account_id}/holders The maximum was set at the spec level and enforced by generated request validation, rejecting offsets above 9000 before the handler ever ran. Neither the handler nor the underlying SQL query impose any bound of their own, so there's no reason to cap pagination depth here. Co-Authored-By: Claude Sonnet 5 --- api/openapi.json | 1 - api/openapi.yml | 1 - pkg/oas/oas_parameters_gen.go | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/openapi.json b/api/openapi.json index 329bd0aeb..ddc619b62 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -10742,7 +10742,6 @@ "required": false, "schema": { "default": 0, - "maximum": 9000, "minimum": 0, "type": "integer" } diff --git a/api/openapi.yml b/api/openapi.yml index 25fe58796..55ca4bc24 100644 --- a/api/openapi.yml +++ b/api/openapi.yml @@ -1652,7 +1652,6 @@ paths: type: integer default: 0 minimum: 0 - maximum: 9000 responses: '200': description: jetton's holders diff --git a/pkg/oas/oas_parameters_gen.go b/pkg/oas/oas_parameters_gen.go index 1a0e9812c..024c92c38 100644 --- a/pkg/oas/oas_parameters_gen.go +++ b/pkg/oas/oas_parameters_gen.go @@ -8097,8 +8097,8 @@ func decodeGetJettonHoldersParams(args [1]string, argsEscaped bool, r *http.Requ if err := (validate.Int{ MinSet: true, Min: 0, - MaxSet: true, - Max: 9000, + MaxSet: false, + Max: 0, MinExclusive: false, MaxExclusive: false, MultipleOfSet: false,