Skip to content

Commit

Permalink
Adjust schema for spatial #1340
Browse files Browse the repository at this point in the history
To validate RPB spatial info.
  • Loading branch information
TobiasNx committed Aug 5, 2024
1 parent f5cc4e1 commit f8da109
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/test/resources/schemas/spatial.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$id": "spatial.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Spatial",
"description": "Object for NWBib spatial classification",
"description": "Object for NWBib and RPB spatial classification",
"type": "array",
"items": {
"type": "object",
Expand Down Expand Up @@ -30,7 +30,10 @@
"id": {
"type": "string",
"format": "uri",
"const": "https://nwbib.de/spatial"
"enum": [
"https://nwbib.de/spatial",
"https://rpb.lobid.org/spatial"
]
},
"label": {
"type": "string"
Expand Down Expand Up @@ -58,10 +61,12 @@
"type": "object",
"properties": {
"lat": {
"type": "number"
"type": "string",
"pattern": "[\\d]*\\.[\\d]*"
},
"lon": {
"type": "number"
"type": "string",
"pattern": "[\\d]*\\.[\\d]*"
}
}
}
Expand Down

0 comments on commit f8da109

Please sign in to comment.