test: NBP rates model
This commit is contained in:
parent
b5237c49bc
commit
d6e9136a68
3 changed files with 71 additions and 1 deletions
53
src/main/resources/schema/rates.json
Normal file
53
src/main/resources/schema/rates.json
Normal 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"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue