Skip to content

Commit

Permalink
Fixing titles of extension fields
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Sep 10, 2024
1 parent f47be9e commit 397e4ab
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bill/preceding.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Preceding struct {
// Tax period in which the previous invoice had an effect required by some tax regimes and formats.
Period *cal.Period `json:"period,omitempty" jsonschema:"title=Period"`
// Extensions for region specific requirements.
Ext tax.Extensions `json:"ext,omitempty" jsonschema:"title=Ext"`
Ext tax.Extensions `json:"ext,omitempty" jsonschema:"title=Extensions"`
// Additional semi-structured data that may be useful in specific regions
Meta cbc.Meta `json:"meta,omitempty" jsonschema:"title=Meta"`
}
Expand Down
2 changes: 1 addition & 1 deletion data/schemas/bill/invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@
},
"ext": {
"$ref": "https://gobl.org/draft-0/tax/extensions",
"title": "Ext",
"title": "Extensions",
"description": "Extensions for region specific requirements."
},
"meta": {
Expand Down
2 changes: 1 addition & 1 deletion data/schemas/org/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
"ext": {
"$ref": "https://gobl.org/draft-0/tax/extensions",
"title": "Ext",
"title": "Extensions",
"description": "Extension code map for any additional regime specific codes that may be required."
},
"meta": {
Expand Down
2 changes: 1 addition & 1 deletion data/schemas/org/party.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
"ext": {
"$ref": "https://gobl.org/draft-0/tax/extensions",
"title": "Ext",
"title": "Extensions",
"description": "Extension code map for any additional regime specific codes that may be required."
},
"meta": {
Expand Down
4 changes: 2 additions & 2 deletions data/schemas/tax/regime.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@
"$ref": "https://gobl.org/draft-0/cbc/key"
},
"type": "array",
"title": "Tag",
"description": "Tag that was applied to the document"
"title": "Tags",
"description": "Array of tags that have been applied to the document."
},
"ext_key": {
"$ref": "https://gobl.org/draft-0/cbc/key",
Expand Down
2 changes: 1 addition & 1 deletion data/schemas/tax/set.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"ext": {
"$ref": "https://gobl.org/draft-0/tax/extensions",
"title": "Ext",
"title": "Extensions",
"description": "Local codes that apply for a given rate or percentage that need to be identified and validated."
}
},
Expand Down
2 changes: 1 addition & 1 deletion data/schemas/tax/total.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"ext": {
"$ref": "https://gobl.org/draft-0/tax/extensions",
"title": "Ext",
"title": "Extensions",
"description": "If the rate is defined with extensions, they'll be used to group by also."
},
"base": {
Expand Down
2 changes: 1 addition & 1 deletion org/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Item struct {
// Country code of where this item was from originally.
Origin l10n.ISOCountryCode `json:"origin,omitempty" jsonschema:"title=Country of Origin"`
// Extension code map for any additional regime specific codes that may be required.
Ext tax.Extensions `json:"ext,omitempty" jsonschema:"title=Ext"`
Ext tax.Extensions `json:"ext,omitempty" jsonschema:"title=Extensions"`
// Additional meta information that may be useful
Meta cbc.Meta `json:"meta,omitempty" jsonschema:"title=Meta"`
}
Expand Down
2 changes: 1 addition & 1 deletion org/party.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type Party struct {
// Images that can be used to identify the party visually.
Logos []*Image `json:"logos,omitempty" jsonschema:"title=Logos"`
// Extension code map for any additional regime specific codes that may be required.
Ext tax.Extensions `json:"ext,omitempty" jsonschema:"title=Ext"`
Ext tax.Extensions `json:"ext,omitempty" jsonschema:"title=Extensions"`
// Any additional semi-structured information that does not fit into the rest of the party.
Meta cbc.Meta `json:"meta,omitempty" jsonschema:"title=Meta"`
}
Expand Down
2 changes: 1 addition & 1 deletion tax/combo.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Combo struct {
// Some countries require an additional surcharge (calculated if rate present).
Surcharge *num.Percentage `json:"surcharge,omitempty" jsonschema:"title=Surcharge" jsonschema_extras:"calculated=true"`
// Local codes that apply for a given rate or percentage that need to be identified and validated.
Ext Extensions `json:"ext,omitempty" jsonschema:"title=Ext"`
Ext Extensions `json:"ext,omitempty" jsonschema:"title=Extensions"`

// Copied from the category definition, implies this tax combo is retained
retained bool `json:"-"`
Expand Down
4 changes: 2 additions & 2 deletions tax/scenario.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type Scenario struct {
// Type of document, if present.
Types []cbc.Key `json:"type,omitempty" jsonschema:"title=Type"`

// Tag that was applied to the document
Tags []cbc.Key `json:"tags,omitempty" jsonschema:"title=Tag"`
// Array of tags that have been applied to the document.
Tags []cbc.Key `json:"tags,omitempty" jsonschema:"title=Tags"`

// Extension key that must be present in the document.
ExtKey cbc.Key `json:"ext_key,omitempty" jsonschema:"title=Extension Key"`
Expand Down
2 changes: 1 addition & 1 deletion tax/totals.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type RateTotal struct {
// this would be possible.
Country l10n.TaxCountryCode `json:"country,omitempty" jsonschema:"title=Country"`
// If the rate is defined with extensions, they'll be used to group by also.
Ext Extensions `json:"ext,omitempty" jsonschema:"title=Ext"`
Ext Extensions `json:"ext,omitempty" jsonschema:"title=Extensions"`
// Base amount that the percentage is applied to.
Base num.Amount `json:"base" jsonschema:"title=Base"`
// Percentage of the rate. Will be nil when taxes are **exempt**.
Expand Down

0 comments on commit 397e4ab

Please sign in to comment.