From f33165622ce182d5c5fb396284116cc44a52ef52 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 24 Feb 2026 13:04:10 +0000 Subject: [PATCH] Bug 14962: (QA follow-up) Fix display_name type and required mismatch in OpenAPI definition The database defines display_name as varchar(255) DEFAULT NULL (nullable), but the OpenAPI definition declared it as a non-nullable string and listed it in the required array. This contradicted the schema. Allow null for display_name and remove it from required to match the actual database column definition. Sponsored-by: ByWater Solutions Signed-of-by: Martin Renvoize --- api/v1/swagger/definitions/display.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api/v1/swagger/definitions/display.yaml b/api/v1/swagger/definitions/display.yaml index 9593f5be4a6..b73cac45ce3 100644 --- a/api/v1/swagger/definitions/display.yaml +++ b/api/v1/swagger/definitions/display.yaml @@ -7,7 +7,9 @@ properties: readOnly: true display_name: description: display name - type: string + type: + - string + - "null" start_date: description: display start date type: @@ -97,6 +99,5 @@ properties: - "null" additionalProperties: false required: - - display_name - enabled - - display_return_over + - display_return_over -- 2.53.0