From 91c7cbffa4f551bdb461a43145f022875e3b7609 Mon Sep 17 00:00:00 2001 From: Jan Karwowski Date: Mon, 11 Dec 2023 15:41:45 +0100 Subject: [PATCH] In Openapi description fix type product_barcodes to be array Openapi schema should say thatn product_barcodes field in ProductDetailsResponse is an array of ProductBarcode not a single object. Make the value an array not a single field --- grocy.openapi.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/grocy.openapi.json b/grocy.openapi.json index 07bb5869..2b588de8 100644 --- a/grocy.openapi.json +++ b/grocy.openapi.json @@ -4733,7 +4733,10 @@ "$ref": "#/components/schemas/Product" }, "product_barcodes": { - "$ref": "#/components/schemas/ProductBarcode" + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductBarcode" + } }, "quantity_unit_stock": { "$ref": "#/components/schemas/QuantityUnit"