From 5067c1dc2bf4266f3b1c091e7d190ee343c46c02 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 17 Jul 2025 14:40:51 +0200 Subject: [PATCH] Bug 40434: Add maxLength to vendor spec file Test plan: Apply the "tests" patch first prove xt/api.t => fail Apply this patch => pass --- api/v1/swagger/definitions/vendor.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/v1/swagger/definitions/vendor.yaml b/api/v1/swagger/definitions/vendor.yaml index 717d958bf78..1a759b2ff9e 100644 --- a/api/v1/swagger/definitions/vendor.yaml +++ b/api/v1/swagger/definitions/vendor.yaml @@ -34,11 +34,13 @@ properties: - string - "null" description: Vendor phone number + maxLength: 30 fax: type: - string - "null" description: Vendor fax number + maxLength: 50 accountnumber: type: - string @@ -49,6 +51,7 @@ properties: - string - "null" description: Type of vendor + maxLength: 255 notes: type: - string @@ -64,6 +67,7 @@ properties: - string - "null" description: Vendor web address + maxLength: 255 active: type: - boolean @@ -74,11 +78,13 @@ properties: - string - "null" description: List prices currency + maxLength: 10 invoice_currency: type: - string - "null" description: Invoice prices currency + maxLength: 10 gst: type: - boolean @@ -114,6 +120,7 @@ properties: - string - "null" description: External id + maxLength: 255 aliases: type: array description: List of aliases -- 2.34.1