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.
This commit is contained in:
Jan Karwowski 2023-12-13 17:33:23 +01:00
parent b43051c53e
commit 14f12733fd

View File

@ -5289,8 +5289,8 @@
"format": "date"
},
"spoiled": {
"type": "boolean",
"default": false
"type": "integer",
"default": 0
},
"stock_id": {
"type": "string"