Schemas
VAT Calculator — input schema
Typed schema published by URSY.io.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"amount": {
"type": "number",
"minimum": 0,
"maximum": 1000000000000000,
"description": "User-selected currency or monetary unit."
},
"rate": {
"type": "number",
"minimum": 0,
"maximum": 1000000000000000,
"description": "Percent."
},
"direction": {
"type": "string",
"enum": [
"net",
"gross"
],
"default": "net"
},
"locale": {
"type": "string",
"minLength": 2,
"maxLength": 35,
"pattern": "^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
"default": "en-US",
"description": "Locale for display text; numerical result fields are locale independent."
}
},
"required": [
"amount",
"rate"
],
"additionalProperties": false
}