From a86b3498ca9a899a959fbfa888f89527ae64e0a0 Mon Sep 17 00:00:00 2001 From: Tim-Frederik Dauck Date: Fri, 20 Oct 2023 10:35:50 +0200 Subject: [PATCH] feat: makes price models consistent --- schemas/prices/StandardPrice.yaml | 8 ++++++-- schemas/prices/VatModelShort.yaml | 8 ++++---- schemas/products/CancellationPolicyShort.yaml | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/schemas/prices/StandardPrice.yaml b/schemas/prices/StandardPrice.yaml index adc4d22..a8f4ea0 100644 --- a/schemas/prices/StandardPrice.yaml +++ b/schemas/prices/StandardPrice.yaml @@ -3,5 +3,9 @@ required: [type, priceMinor] properties: type: $ref: './PriceType.yaml' - priceMinor: - $ref: '../types/MinorAmount.yaml' \ No newline at end of file + rules: + type: object + required: [priceMinor] + properties: + priceMinor: + $ref: '../types/MinorAmount.yaml' \ No newline at end of file diff --git a/schemas/prices/VatModelShort.yaml b/schemas/prices/VatModelShort.yaml index 8df6193..6c3a498 100644 --- a/schemas/prices/VatModelShort.yaml +++ b/schemas/prices/VatModelShort.yaml @@ -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' \ No newline at end of file + $ref: '../types/CreatedAt.yaml' + validFrom: + $ref: '../types/ValidFrom.yaml' \ No newline at end of file diff --git a/schemas/products/CancellationPolicyShort.yaml b/schemas/products/CancellationPolicyShort.yaml index 8df6193..2a08598 100644 --- a/schemas/products/CancellationPolicyShort.yaml +++ b/schemas/products/CancellationPolicyShort.yaml @@ -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' \ No newline at end of file