diff --git a/spec/openapi.json b/spec/openapi.json index 3c46ea1..30d95da 100644 --- a/spec/openapi.json +++ b/spec/openapi.json @@ -70,11 +70,36 @@ "properties": { "product_name": { "type": "string" + }, + "barcode": { + "type": "string", + "description": "Barcode" + }, + "sku": { + "type": "string", + "description": "Product SKU" + }, + "vendor_uuid": { + "$ref": "#/components/schemas/type_uuid", + "description": "Vendor UUID" + }, + "purl": { + "type": "string", + "description": "Package URL (PURL)" } - }, - "required": [ - "product_name" - ] + } + }, + "examples": { + "basic": { + "summary": "Basic product update", + "value": { + "product_name": "Updated Product Name", + "barcode": "123456789012", + "sku": "PROD-001", + "vendor_uuid": "123e4567-e89b-12d3-a456-426614174000", + "purl": "pkg:generic/example@1.0.0" + } + } } } }