Skip to content

Commit

Permalink
Merge branch 'feature/HES-1512' into 'develop'
Browse files Browse the repository at this point in the history
HES-1512

See merge request heseya/core!55
  • Loading branch information
bvlinsky committed Jul 2, 2022
2 parents db71c72 + 1523ee2 commit b0f3d23
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/Http/Requests/OrderUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ public function rules(): array
'invoice_address.city' => ['string', 'max:255'],
'invoice_address.country' => ['string', 'size:2'],
'invoice_address.vat' => ['nullable', 'string', 'max:15'],

'validation' => ['boolean'],
];
}
}
74 changes: 72 additions & 2 deletions public/docs/requests/Schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,75 @@ SchemaUpdate:
application/json:
schema:
type: object
allOf:
- $ref: '../schemas/Schemas.yml#/Schema'
properties:
type:
type: string
enum:
- string
- numeric
- boolean
- date
- select
- file
- multiply
- multiply_schema
name:
type: string
example: Size
description:
type: string
price:
type: number
example: 9.99
hidden:
type: boolean
example: false
required:
type: boolean
example: false
min:
type: string
max:
type: string
step:
type: string
default:
type: string
pattern:
type: string
validation:
type: string
shipping_time:
type: integer
example: 5
shipping_date:
type: string
format: date-time
example: '2021-09-13T11:11'
options:
type: array
items:
properties:
name:
type: string
example: XL
price:
description: 'Additional price the customer will have to pay after selecting this option (can be negative)'
type: number
example: 3.99
disabled:
description: 'Shows if the option has been disabled manually'
type: boolean
example: false
items:
type: array
items:
properties:
id:
type: string
example: 026bc5f6-8373-4aeb-972e-e78d72a67121
used_schemas:
type: array
items:
type: string
example: 026bc5f6-8373-4aeb-972e-e78d72a67121

0 comments on commit b0f3d23

Please sign in to comment.