Skip to content

Commit b9590d6

Browse files
authored
Merge pull request #566 from invopop/release-0.220.1
Release 0.220.1
2 parents 9fee061 + 249047b commit b9590d6

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
66

77
## [Unreleased]
88

9+
## [v0.220.1] - 2025-07-09
10+
11+
### Fixes
12+
13+
- `tax`: Correcting `$tags` JSON Schema properties from OneOf to AnyOf.
14+
915
## [v0.220.0] - 2025-07-09
1016

1117
### Added

tax/tags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (ts Tags) JSONSchemaExtendWithDefs(js *jsonschema.Schema, defs []*cbc.Defin
156156
Title: ao.Name.String(),
157157
}
158158
}
159-
asl.Items.OneOf = append(list, &jsonschema.Schema{
159+
asl.Items.AnyOf = append(list, &jsonschema.Schema{
160160
Pattern: cbc.KeyPattern,
161161
Title: "Any",
162162
})

tax/tags_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func TestTagsJSONSchemaEmbedWithDefs(t *testing.T) {
184184

185185
prop, ok := js.Properties.Get("$tags")
186186
require.True(t, ok)
187-
assert.Equal(t, 6, len(prop.Items.OneOf), "should have 5 tags plus 1 catch-all")
188-
assert.Equal(t, "simplified", prop.Items.OneOf[0].Const)
189-
assert.Equal(t, "Any", prop.Items.OneOf[5].Title)
187+
assert.Equal(t, 6, len(prop.Items.AnyOf), "should have 5 tags plus 1 catch-all")
188+
assert.Equal(t, "simplified", prop.Items.AnyOf[0].Const)
189+
assert.Equal(t, "Any", prop.Items.AnyOf[5].Title)
190190
}

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
type Version string
99

1010
// VERSION is the current version of the GOBL library.
11-
const VERSION Version = "v0.220.0"
11+
const VERSION Version = "v0.220.1"
1212

1313
// Semver parses and returns semver
1414
func (v Version) Semver() *semver.Version {

0 commit comments

Comments
 (0)