Skip to content

Commit 14b3175

Browse files
committedNov 20, 2024
Fixes /product POST.
Signed-off-by: Viktor Petersson <self@vpetersson.com>
1 parent ec708de commit 14b3175

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
 

‎spec/openapi.json

+38
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,22 @@
235235
"properties": {
236236
"product_name": {
237237
"type": "string"
238+
},
239+
"barcode": {
240+
"type": "string",
241+
"description": "Barcode"
242+
},
243+
"sku": {
244+
"type": "string",
245+
"description": "Product SKU"
246+
},
247+
"vendor_uuid": {
248+
"$ref": "#/components/schemas/type_uuid",
249+
"description": "Vendor UUID"
250+
},
251+
"purl": {
252+
"type": "string",
253+
"description": "Package URL (PURL)"
238254
}
239255
},
240256
"required": [
@@ -247,6 +263,16 @@
247263
"value": {
248264
"product_name": "Example Product"
249265
}
266+
},
267+
"full": {
268+
"summary": "Full product creation with all fields",
269+
"value": {
270+
"product_name": "Complete Product Example",
271+
"barcode": "123456789012",
272+
"sku": "PROD-001",
273+
"vendor_uuid": "123e4567-e89b-12d3-a456-426614174000",
274+
"purl": "pkg:generic/example@1.0.0"
275+
}
250276
}
251277
}
252278
}
@@ -265,6 +291,18 @@
265291
},
266292
"product_name": {
267293
"type": "string"
294+
},
295+
"barcode": {
296+
"type": "string"
297+
},
298+
"sku": {
299+
"type": "string"
300+
},
301+
"vendor_uuid": {
302+
"$ref": "#/components/schemas/type_uuid"
303+
},
304+
"purl": {
305+
"type": "string"
268306
}
269307
},
270308
"required": [

0 commit comments

Comments
 (0)
Failed to load comments.