feat: Schema
This commit is contained in:
parent
3edf1cfb27
commit
2a3bfb3a5b
3 changed files with 51 additions and 1 deletions
25
schema/response.json
Normal file
25
schema/response.json
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"$id": "https://ztsh.eu/lfr/response.json",
|
||||
"$schema": "http://json-schema.org/draft/2020-12/schema",
|
||||
"type": "array",
|
||||
"def": {
|
||||
"entry": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"year": {
|
||||
"type": "string"
|
||||
},
|
||||
"averageTemperature": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"year",
|
||||
"averageTemperature"
|
||||
]
|
||||
}
|
||||
},
|
||||
"items": {
|
||||
"$ref": "#/def/entry"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue