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
This commit is contained in:
Jan Karwowski 2023-12-11 15:41:45 +01:00
parent e0750a491d
commit 91c7cbffa4

View File

@ -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"