From 3d355eed7f7ee51187875b9cd768a8798beb96eb Mon Sep 17 00:00:00 2001 From: Sushant Saurabh Date: Fri, 26 Jun 2026 22:11:27 +0530 Subject: [PATCH] Use OpenAPI-compatible schema for unsigned 32-bit ASN fields --- connection-coordinator/schemas/connection.yaml | 10 ++++++++-- connection-coordinator/schemas/feature.yaml | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/connection-coordinator/schemas/connection.yaml b/connection-coordinator/schemas/connection.yaml index 4ee5d23..2263008 100644 --- a/connection-coordinator/schemas/connection.yaml +++ b/connection-coordinator/schemas/connection.yaml @@ -206,10 +206,16 @@ ASNRange: properties: start: description: First ASN (inclusive). - type: uint32 + type: integer + format: int64 + minimum: 0 + maximum: 4294967295 stop: description: Last ASN (inclusive). - type: uint32 + type: integer + format: int64 + minimum: 0 + maximum: 4294967295 type: object SubnetGuidance: diff --git a/connection-coordinator/schemas/feature.yaml b/connection-coordinator/schemas/feature.yaml index 7707b48..0c8fdd6 100644 --- a/connection-coordinator/schemas/feature.yaml +++ b/connection-coordinator/schemas/feature.yaml @@ -120,7 +120,10 @@ ProviderBgpConfig: type: string asn: description: Required. The ASN associated with the provider. - type: uint32 + type: integer + format: int64 + minimum: 0 + maximum: 4294967295 hostIpv4: description: Required. IPv4 address hosting BGP session for provider. type: string