Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions spec/components/commons/fields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,21 @@ components:
description: Unit of the duration field
enum: [day, hour, minute]
example: hour
Validity:
type: number
format: float
description: Validity period of the booking (to be used in combination with validity unit). Represents how long the ticket/voucher remains valid after booking or activation.
example: 30.0
ValidityUnit:
type: string
description: Unit of the validity field
enum: [day, hour, minute, month, year]
example: day
ValidityFrom:
type: string
description: When the validity period starts counting from.
enum: [time_booked, time_selected, time_activated]
example: time_booked
Email:
description: Correspondence email.
example: address@example.com
Expand Down
6 changes: 6 additions & 0 deletions spec/components/schema/option.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ components:
$ref: "../commons/fields.yaml#/components/schemas/Duration"
duration_unit:
$ref: "../commons/fields.yaml#/components/schemas/DurationUnit"
validity:
$ref: "../commons/fields.yaml#/components/schemas/Validity"
validity_unit:
$ref: "../commons/fields.yaml#/components/schemas/ValidityUnit"
validity_from:
$ref: "../commons/fields.yaml#/components/schemas/ValidityFrom"
cond_language:
type: object
properties:
Expand Down
Loading