-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcercaStazione.schema.json
More file actions
29 lines (29 loc) · 977 Bytes
/
Copy pathcercaStazione.schema.json
File metadata and controls
29 lines (29 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/dltmtt/viaggiatreno-api/refs/heads/main/schemas/cercaStazione.schema.json",
"title": "Risposta dell'endpoint /cercaStazione",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^S\\d{5}$",
"description": "Codice della stazione."
},
"label": {
"type": ["string", "null"],
"description": "Nome in title case. Generalmente più corto di nomeBreve."
},
"nomeBreve": {
"type": "string",
"description": "Nome breve, tendenzialmente in title case ma talvolta in maiuscolo. Può essere uguale a nomeLungo. In genere contiene qualche abbreviazione."
},
"nomeLungo": {
"type": "string",
"description": "Nome lungo in maiuscolo."
}
},
"required": ["id", "label", "nomeBreve", "nomeLungo"]
}
}