|
70 | 70 | "properties": {
|
71 | 71 | "product_name": {
|
72 | 72 | "type": "string"
|
| 73 | + }, |
| 74 | + "barcode": { |
| 75 | + "type": "string", |
| 76 | + "description": "Barcode" |
| 77 | + }, |
| 78 | + "sku": { |
| 79 | + "type": "string", |
| 80 | + "description": "Product SKU" |
| 81 | + }, |
| 82 | + "vendor_uuid": { |
| 83 | + "$ref": "#/components/schemas/type_uuid", |
| 84 | + "description": "Vendor UUID" |
| 85 | + }, |
| 86 | + "purl": { |
| 87 | + "type": "string", |
| 88 | + "description": "Package URL (PURL)" |
73 | 89 | }
|
74 |
| - }, |
75 |
| - "required": [ |
76 |
| - "product_name" |
77 |
| - ] |
| 90 | + } |
| 91 | + }, |
| 92 | + "examples": { |
| 93 | + "basic": { |
| 94 | + "summary": "Basic product update", |
| 95 | + "value": { |
| 96 | + "product_name": "Updated Product Name", |
| 97 | + "barcode": "123456789012", |
| 98 | + "sku": "PROD-001", |
| 99 | + "vendor_uuid": "123e4567-e89b-12d3-a456-426614174000", |
| 100 | + "purl": "pkg:generic/example@1.0.0" |
| 101 | + } |
| 102 | + } |
78 | 103 | }
|
79 | 104 | }
|
80 | 105 | }
|
|
210 | 235 | "properties": {
|
211 | 236 | "product_name": {
|
212 | 237 | "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)" |
213 | 254 | }
|
214 | 255 | },
|
215 | 256 | "required": [
|
|
222 | 263 | "value": {
|
223 | 264 | "product_name": "Example Product"
|
224 | 265 | }
|
| 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 | + } |
225 | 276 | }
|
226 | 277 | }
|
227 | 278 | }
|
|
240 | 291 | },
|
241 | 292 | "product_name": {
|
242 | 293 | "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" |
243 | 306 | }
|
244 | 307 | },
|
245 | 308 | "required": [
|
|
0 commit comments