From de998b9addff253646834f7b620feb0fc479430c Mon Sep 17 00:00:00 2001 From: Max Martens Date: Thu, 13 Nov 2025 15:35:16 +0100 Subject: [PATCH] Make amountExclTax, taxCode, taxPercentage nullable schemas (+ example value always null for amountExclTax) --- src/openapi/products/SE-products-SE.yaml | 10 ++------- src/openapi/products/SE-products-TP.yaml | 10 ++------- src/openapi/products/products-crud.yaml | 28 +++++------------------- 3 files changed, 10 insertions(+), 38 deletions(-) diff --git a/src/openapi/products/SE-products-SE.yaml b/src/openapi/products/SE-products-SE.yaml index b97f796..2bc6a50 100644 --- a/src/openapi/products/SE-products-SE.yaml +++ b/src/openapi/products/SE-products-SE.yaml @@ -1936,9 +1936,6 @@ components: type: object required: - sellingPriceId - - amountExclTax - - taxCode - - taxPercentage - amountInclTax - fromInclusive - toInclusive @@ -1949,7 +1946,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: "V09" @@ -1974,9 +1971,6 @@ components: type: object required: - purchasePriceId - - amountExclTax - - taxCode - - taxPercentage - amountInclTax - fromInclusive - toInclusive @@ -1986,7 +1980,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: "V09" diff --git a/src/openapi/products/SE-products-TP.yaml b/src/openapi/products/SE-products-TP.yaml index da86e36..3368437 100644 --- a/src/openapi/products/SE-products-TP.yaml +++ b/src/openapi/products/SE-products-TP.yaml @@ -1936,9 +1936,6 @@ components: type: object required: - sellingPriceId - - amountExclTax - - taxCode - - taxPercentage - amountInclTax - fromInclusive - toInclusive @@ -1949,7 +1946,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: "V09" @@ -1974,9 +1971,6 @@ components: type: object required: - purchasePriceId - - amountExclTax - - taxCode - - taxPercentage - amountInclTax - fromInclusive - toInclusive @@ -1986,7 +1980,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: "V09" diff --git a/src/openapi/products/products-crud.yaml b/src/openapi/products/products-crud.yaml index 84bb142..1065260 100644 --- a/src/openapi/products/products-crud.yaml +++ b/src/openapi/products/products-crud.yaml @@ -2542,9 +2542,6 @@ components: type: object required: - sellingPriceId - - amountExclTax - - taxCode - - taxPercentage - amountInclTax - fromInclusive - toInclusive @@ -2555,7 +2552,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: 'V09' @@ -2580,7 +2577,6 @@ components: type: object required: - purchasePriceId - - amountExclTax - amountInclTax - fromInclusive - toInclusive @@ -2590,7 +2586,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: 'V09' @@ -3407,9 +3403,6 @@ components: items: type: object required: - - amountExclTax - - taxCode - - taxPercentage - amountInclTax - fromInclusive - toInclusive @@ -3417,7 +3410,7 @@ components: properties: amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: 'V09' @@ -3452,16 +3445,13 @@ components: items: type: object required: - - amountExclTax - - taxCode - - taxPercentage - amountInclTax - fromInclusive - toInclusive properties: amountExclTax: type: integer - example: 750 + example: null taxCode: type: string example: 'V09' @@ -3798,10 +3788,7 @@ components: items: type: object required: - - amountExclTax - amountInclTax - - taxCode - - taxPercentage - fromInclusive - toInclusive - internalPrice @@ -3815,7 +3802,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null amountInclTax: type: integer example: 908 @@ -3850,10 +3837,7 @@ components: items: type: object required: - - amountExclTax - amountInclTax - - taxCode - - taxPercentage - fromInclusive - toInclusive properties: @@ -3866,7 +3850,7 @@ components: example: 1 amountExclTax: type: integer - example: 750 + example: null amountInclTax: type: integer example: 908