Skip to content

Commit

Permalink
Revert of JSON schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Feb 6, 2024
1 parent 0dbfce1 commit 7f7bb1b
Showing 1 changed file with 6 additions and 61 deletions.
67 changes: 6 additions & 61 deletions bufr2geojson/resources/schemas/wmo-om-profile-geojson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,76 +2,21 @@ $schema: 'https://json-schema.org/draft/2020-12/schema'
$id: 'https://raw.githubusercontent.com/wmo-im/bufr2geojson/main/bufr2geojson/resources/schemas/wmo-om-profile-geojson.yaml'
title: WMO GeoJSON profile for observations and measurements
description: WMO GeoJSON profile for observations and measurements
required:
- type
- geometry
- properties
allOf:
- $ref: 'https://raw.githubusercontent.com/opengeospatial/ogcapi-features/master/core/openapi/schemas/featureGeoJSON.yaml'
properties:
type:
type: string
enum:
- Feature
geometry:
oneOf:
- type: object
required:
- type
- coordinates
properties:
type:
type: string
enum:
- Point
coordinates:
type: array
minItems: 2
maxItems: 3
items:
type: number
- type: 'null'
id:
type:
- string
- integer
links:
type: array
items:
type: object
required:
- href
- rel
properties:
href:
type: string
example: http://data.example.com/buildings/123
rel:
type: string
example: alternate
type:
type: string
example: application/geo+json
hreflang:
type: string
example: en
title:
type: string
example: Trierer Strasse 70, 53115 Bonn
length:
type: integer
conformsTo:
type: array
items:
type: string
enum:
- 'http://www.wmo.int/spec/om-profile-1/1.0/req/geojson'
properties:
type: object
properties:
identifier:
type: string
description: feature identifier
wigos_station_identifier:
type:
- 'null'
- string
type: string
description: WIGOS station identifier for station making observations
phenomenonTime:
type: string
Expand Down Expand Up @@ -154,4 +99,4 @@ examples:
type: application/geo+json
hreflang: en
title: 'Trierer Strasse 70, 53115 Bonn'
length: 0
length: 0

0 comments on commit 7f7bb1b

Please sign in to comment.