Skip to content

Commit

Permalink
feat: makes price models consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Frederik Dauck committed Oct 20, 2023
1 parent 6f53245 commit a86b349
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions schemas/prices/StandardPrice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ required: [type, priceMinor]
properties:
type:
$ref: './PriceType.yaml'
priceMinor:
$ref: '../types/MinorAmount.yaml'
rules:
type: object
required: [priceMinor]
properties:
priceMinor:
$ref: '../types/MinorAmount.yaml'
8 changes: 4 additions & 4 deletions schemas/prices/VatModelShort.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
type: object
required: [id, createdAt]
required: [id, createdAt, validFrom]
properties:
id:
$ref: '../types/IDwritable.yaml'
validFrom:
$ref: '../types/ValidFrom.yaml'
createdAt:
$ref: '../types/CreatedAt.yaml'
$ref: '../types/CreatedAt.yaml'
validFrom:
$ref: '../types/ValidFrom.yaml'
4 changes: 2 additions & 2 deletions schemas/products/CancellationPolicyShort.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ required: [id, createdAt]
properties:
id:
$ref: '../types/IDwritable.yaml'
createdAt:
$ref: '../types/CreatedAt.yaml'
validFrom:
$ref: '../types/ValidFrom.yaml'
createdAt:
$ref: '../types/CreatedAt.yaml'

0 comments on commit a86b349

Please sign in to comment.