test: NBP rates model

This commit is contained in:
Piotr Dec 2024-05-23 18:41:51 +02:00
parent b5237c49bc
commit d6e9136a68
Signed by: stawros
GPG key ID: F89F27AD8F881A91
3 changed files with 71 additions and 1 deletions

View file

@ -0,0 +1,53 @@
{
"$id": "https://api.nbp.pl/c/rates.json",
"$schema": "http://json-schema.org/draft/2020-12/schema",
"type": "object",
"def": {
"rate": {
"type": "object",
"properties": {
"no": {
"type": "string"
},
"effectiveDate": {
"type": "string"
},
"bid": {
"type": "number"
},
"ask": {
"type": "number"
}
},
"required": [
"no",
"effectiveDate",
"bid",
"ask"
]
}
},
"properties": {
"table": {
"type": "string"
},
"currency": {
"type": "string"
},
"code": {
"type": "string"
},
"rates": {
"type": "array",
"items": {
"$ref": "#/def/rate"
}
}
},
"required": [
"table",
"currency",
"code",
"rates"
]
}