Skip to content

Commit b08bc40

Browse files
committed
Fix spec
1 parent 5ebc4cf commit b08bc40

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Http/Resources/Public/CocktailResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
new OAT\Property(property: 'glass', type: 'string', nullable: true, example: 'Highball glass', description: 'Type of glass used for the cocktail'),
3232
new OAT\Property(property: 'utensils', type: 'array', items: new OAT\Items(type: 'string'), description: 'Utensils used for preparing the cocktail'),
3333
new OAT\Property(property: 'method', type: 'string', nullable: true, example: 'Shaken', description: 'Method of preparation for the cocktail'),
34-
new OAT\Property(property: 'method_dilution_percentage', type: 'number', nullable: true, example: '12', description: 'Dilution percentage associated with the preparation method'),
35-
new OAT\Property(property: 'volume_ml', type: 'number', nullable: true, example: '120', description: 'Total volume of the cocktail in milliliters'),
34+
new OAT\Property(property: 'method_dilution_percentage', type: 'number', nullable: true, example: 12, description: 'Dilution percentage associated with the preparation method'),
35+
new OAT\Property(property: 'volume_ml', type: 'number', nullable: true, example: 120d, description: 'Total volume of the cocktail in milliliters'),
3636
new OAT\Property(property: 'created_at', type: 'string', format: 'date-time', example: '2023-10-01T12:00:00Z', description: 'Date and time when the cocktail was created'),
3737
new OAT\Property(property: 'in_bar_shelf', type: 'boolean', example: true, description: 'Indicates if the cocktail can be made in the current bar'),
3838
new OAT\Property(property: 'abv', type: 'number', format: 'float', nullable: true, example: 0.15, description: 'Alcohol by volume percentage of the cocktail'),

docs/openapi-generated.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10169,13 +10169,13 @@ components:
1016910169
type:
1017010170
- number
1017110171
- 'null'
10172-
example: '12'
10172+
example: 12
1017310173
volume_ml:
1017410174
description: 'Total volume of the cocktail in milliliters'
1017510175
type:
1017610176
- number
1017710177
- 'null'
10178-
example: '120'
10178+
example: 120
1017910179
created_at:
1018010180
description: 'Date and time when the cocktail was created'
1018110181
type: string

0 commit comments

Comments
 (0)