currency, settings.yaml and default currency

This commit is contained in:
Emi Vasilek 2023-11-17 21:36:26 +01:00
parent 21e68445e7
commit 3d49bc044d
5 changed files with 72 additions and 13 deletions

View file

@ -20,7 +20,8 @@
"properties": {
"price": { "type": "number" },
"amount": { "type": "integer" },
"unit": { "type": "string" }
"unit": { "type": "string" },
"currency": { "type": "string" }
}
}
},

11
schemas/settings.json Normal file
View file

@ -0,0 +1,11 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/settings.json",
"title": "Settings",
"description": "Settings",
"type": "object",
"additionalProperties": false,
"properties": {
"default_currency": { "type": "string" }
}
}