From 5ac6b3f1641353d6e71bff02a46f406ffd448df9 Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Fri, 21 Aug 2026 15:22:50 -0400 Subject: [PATCH] CBG-5715: use minLength/maxLength for string length constraints `minimum`/`maximum` only apply to numeric schemas, so the length limits declared on these string schemas were silently ignored by validators and not rendered in the docs. - `replicationid` path parameter: 1-160 characters - `Replication.replication_id`: max 160 characters - `Database.user_xattr_key`: max 15 characters Co-Authored-By: Claude Opus 5 (1M context) --- docs/api/components/parameters.yaml | 4 ++-- docs/api/components/schemas.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/components/parameters.yaml b/docs/api/components/parameters.yaml index 01bcb7bf43..3860e07b51 100644 --- a/docs/api/components/parameters.yaml +++ b/docs/api/components/parameters.yaml @@ -331,8 +331,8 @@ replicationid: required: true schema: type: string - minimum: 1 - maximum: 160 + minLength: 1 + maxLength: 160 description: What replication to target based on its replication ID. replicator2: name: replicator2 diff --git a/docs/api/components/schemas.yaml b/docs/api/components/schemas.yaml index 222a6a02d8..826a70428b 100644 --- a/docs/api/components/schemas.yaml +++ b/docs/api/components/schemas.yaml @@ -892,7 +892,7 @@ Replication: When the replication ID is specified in the URL, this must be set to the same replication ID if specifying it at all. type: string - maximum: 160 + maxLength: 160 run_as: description: This is used if you want to specify a user to run the replication as. This means that the replication will only be able to replicate what the user access to what the user has access to. type: string @@ -1777,7 +1777,7 @@ Database: This is an Enterprise Edition feature only. type: string - maximum: 15 + maxLength: 15 username: description: The username for authenticating to the server. type: string