Skip to content

Commit

Permalink
add meteo schema
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Mar 17, 2024
1 parent b3bbad2 commit 7dc6b15
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions schemas/meteo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://signalk.org/specification/1.5.1/schemas/meteo.json#",
"description": "An object describing a weather station. It should be an object in meteo, named using MMSI or a UUID",
"title": "Weather Stations",
"anyOf": [
{
"required": [
"mmsi"
]
},
{
"required": [
"url"
]
},
{
"required": [
"uuid"
]
}
],
"properties": {
"url": {
"description": "URL based identity of the weather station, if available.",
"$ref": "definitions.json#/definitions/url"
},
"mmsi": {
"description": "MMSI number of the weather station, if available.",
"$ref": "definitions.json#/definitions/sarMmsi"
},
"uuid": {
"description": "A unique Signal K flavoured maritime resource identifier, assigned by the server.",
"$ref": "definitions.json#/definitions/uuid",
"example": "urn:mrn:signalk:uuid:b7590868-1d62-47d9-989c-32321b349fb9"
},
"environment": {
"description": "Environment data.",
"$ref": "groups/environment.json#"
}
}
}

0 comments on commit 7dc6b15

Please sign in to comment.