From 14f12733fd42c2a31bdffccaac9fa13980a4114e Mon Sep 17 00:00:00 2001 From: Jan Karwowski Date: Wed, 13 Dec 2023 17:33:23 +0100 Subject: [PATCH] In openapi schema change type of spoiled to integer The stock log entry type contains a spoiled field which has either 0 or 1 value. In openapi schema it was declared as boolean but the api returns a number here so it won't satisfy boolean schema requirements. Change to int. --- grocy.openapi.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grocy.openapi.json b/grocy.openapi.json index 2a409b2f..cbf06b47 100644 --- a/grocy.openapi.json +++ b/grocy.openapi.json @@ -5289,8 +5289,8 @@ "format": "date" }, "spoiled": { - "type": "boolean", - "default": false + "type": "integer", + "default": 0 }, "stock_id": { "type": "string"