From e9da236bdfe938e31b4df9bc2136f5095d38d439 Mon Sep 17 00:00:00 2001 From: Sam Lown Date: Thu, 30 May 2024 20:26:20 +0000 Subject: [PATCH] Release GOBL 0.78 --- go.mod | 2 +- go.sum | 2 ++ internal/testdata/TestCorrect_options_schema | 11 ++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 9a2cd3e..4f3a075 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.19 require ( github.com/google/go-cmp v0.5.9 github.com/imdario/mergo v0.3.15 - github.com/invopop/gobl v0.77.0 + github.com/invopop/gobl v0.78.1 github.com/invopop/yaml v0.3.1 github.com/labstack/echo/v4 v4.10.2 github.com/magefile/mage v1.13.0 diff --git a/go.sum b/go.sum index 51adbcd..6ca9aad 100644 --- a/go.sum +++ b/go.sum @@ -26,6 +26,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/invopop/gobl v0.77.0 h1:fONqGuP73J3bqDLE+2TI75QfXDWGc9EwJFTtIK2SL8c= github.com/invopop/gobl v0.77.0/go.mod h1:3ixShxX1jlOKo5Rw22HVQh3jXnK9AZa7Twcw7L92qn0= +github.com/invopop/gobl v0.78.1 h1:ICohKmz4wQ8wTs16kYHAypEFtHEK052WSvXzBxN3NKw= +github.com/invopop/gobl v0.78.1/go.mod h1:3ixShxX1jlOKo5Rw22HVQh3jXnK9AZa7Twcw7L92qn0= github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI= github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0= github.com/invopop/validation v0.3.0 h1:o260kbjXzoBO/ypXDSSrCLL7SxEFUXBsX09YTE9AxZw= diff --git a/internal/testdata/TestCorrect_options_schema b/internal/testdata/TestCorrect_options_schema index f47d4e1..c954fa1 100644 --- a/internal/testdata/TestCorrect_options_schema +++ b/internal/testdata/TestCorrect_options_schema @@ -162,18 +162,19 @@ }, "type": { "$ref": "https://gobl.org/draft-0/cbc/key", + "default": "credit-note", "description": "The type of corrective invoice to produce.", "oneOf": [ - { - "const": "corrective", - "description": "Corrected invoice that completely *replaces* the preceding document.", - "title": "Corrective" - }, { "const": "credit-note", "description": "Reflects a refund either partial or complete of the preceding document. A \ncredit note effectively *extends* the previous document.", "title": "Credit Note" }, + { + "const": "corrective", + "description": "Corrected invoice that completely *replaces* the preceding document.", + "title": "Corrective" + }, { "const": "debit-note", "description": "An additional set of charges to be added to the preceding document.",