mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 11:26:16 +02:00
Fix data types in opeanapi description (#2433)
* In Openapi schema mark fields that return only date as date next_due_data and last_uset were using date-time format instead of date * 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 * In openapi schema fix purchased date format in stock log entry It should be just date not a date-time format. --------- Co-authored-by: Jan Karwowski <jan_karwowski@wp.pl>
This commit is contained in:
parent
bae83535dd
commit
3aeecfa24d
|
|
@ -4733,7 +4733,10 @@
|
||||||
"$ref": "#/components/schemas/Product"
|
"$ref": "#/components/schemas/Product"
|
||||||
},
|
},
|
||||||
"product_barcodes": {
|
"product_barcodes": {
|
||||||
"$ref": "#/components/schemas/ProductBarcode"
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/ProductBarcode"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"quantity_unit_stock": {
|
"quantity_unit_stock": {
|
||||||
"$ref": "#/components/schemas/QuantityUnit"
|
"$ref": "#/components/schemas/QuantityUnit"
|
||||||
|
|
@ -4753,7 +4756,7 @@
|
||||||
},
|
},
|
||||||
"last_used": {
|
"last_used": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date-time"
|
"format": "date"
|
||||||
},
|
},
|
||||||
"stock_amount": {
|
"stock_amount": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
|
|
@ -4763,7 +4766,7 @@
|
||||||
},
|
},
|
||||||
"next_due_date": {
|
"next_due_date": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date-time"
|
"format": "date"
|
||||||
},
|
},
|
||||||
"last_price": {
|
"last_price": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
|
@ -5326,7 +5329,7 @@
|
||||||
},
|
},
|
||||||
"purchased_date": {
|
"purchased_date": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date-time"
|
"format": "date"
|
||||||
},
|
},
|
||||||
"used_date": {
|
"used_date": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user