From 33f22010049e211f0de852a8cc19cd6d58d46fee Mon Sep 17 00:00:00 2001 From: Adrian-Stefan Mares Date: Thu, 2 Nov 2023 16:58:41 +0100 Subject: [PATCH] api: Increase gateway identifiers limit --- api/ttn/lorawan/v3/api.md | 2 +- api/ttn/lorawan/v3/gateway_services.proto | 2 +- pkg/ttnpb/gateway_services.pb.go | 2 +- pkg/ttnpb/gateway_services.pb.validate.go | 4 ++-- sdk/js/generated/api.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/ttn/lorawan/v3/api.md b/api/ttn/lorawan/v3/api.md index 82623b4f31..0522be96e7 100644 --- a/api/ttn/lorawan/v3/api.md +++ b/api/ttn/lorawan/v3/api.md @@ -5240,7 +5240,7 @@ Identifies an end device model with version information. | Field | Validations | | ----- | ----------- | -| `gateway_ids` |

`repeated.min_items`: `1`

`repeated.max_items`: `20`

| +| `gateway_ids` |

`repeated.min_items`: `1`

`repeated.max_items`: `100`

| | `required` |

`message.required`: `true`

| ### Message `BatchDeleteGatewaysRequest` diff --git a/api/ttn/lorawan/v3/gateway_services.proto b/api/ttn/lorawan/v3/gateway_services.proto index dc2a082ed9..907bd30e79 100644 --- a/api/ttn/lorawan/v3/gateway_services.proto +++ b/api/ttn/lorawan/v3/gateway_services.proto @@ -181,7 +181,7 @@ service GatewayConfigurator { message AssertGatewayRightsRequest { repeated GatewayIdentifiers gateway_ids = 1 [ (validate.rules).repeated.min_items = 1, - (validate.rules).repeated.max_items = 20 + (validate.rules).repeated.max_items = 100 ]; Rights required = 2 [(validate.rules).message.required = true]; } diff --git a/pkg/ttnpb/gateway_services.pb.go b/pkg/ttnpb/gateway_services.pb.go index 18a89af65d..515c777438 100644 --- a/pkg/ttnpb/gateway_services.pb.go +++ b/pkg/ttnpb/gateway_services.pb.go @@ -231,7 +231,7 @@ var file_ttn_lorawan_v3_gateway_services_proto_rawDesc = []byte{ 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x74, 0x6e, 0x2e, 0x6c, 0x6f, 0x72, 0x61, 0x77, 0x61, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x92, 0x01, 0x04, 0x08, 0x01, - 0x10, 0x14, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x73, 0x12, 0x3c, + 0x10, 0x64, 0x52, 0x0a, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x49, 0x64, 0x73, 0x12, 0x3c, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x74, 0x6e, 0x2e, 0x6c, 0x6f, 0x72, 0x61, 0x77, 0x61, 0x6e, 0x2e, 0x76, 0x33, 0x2e, 0x52, 0x69, 0x67, 0x68, 0x74, 0x73, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, diff --git a/pkg/ttnpb/gateway_services.pb.validate.go b/pkg/ttnpb/gateway_services.pb.validate.go index 8d21dc3a21..ed9e539bb4 100644 --- a/pkg/ttnpb/gateway_services.pb.validate.go +++ b/pkg/ttnpb/gateway_services.pb.validate.go @@ -155,10 +155,10 @@ func (m *AssertGatewayRightsRequest) ValidateFields(paths ...string) error { switch name { case "gateway_ids": - if l := len(m.GetGatewayIds()); l < 1 || l > 20 { + if l := len(m.GetGatewayIds()); l < 1 || l > 100 { return AssertGatewayRightsRequestValidationError{ field: "gateway_ids", - reason: "value must contain between 1 and 20 items, inclusive", + reason: "value must contain between 1 and 100 items, inclusive", } } diff --git a/sdk/js/generated/api.json b/sdk/js/generated/api.json index 76a0852b33..e851f96442 100644 --- a/sdk/js/generated/api.json +++ b/sdk/js/generated/api.json @@ -23471,7 +23471,7 @@ }, { "name": "repeated.max_items", - "value": 20 + "value": 100 } ] }