Skip to content

Commit

Permalink
stricten schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tinovyatkin committed Oct 13, 2019
1 parent 8d33eea commit 1e16230
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pass.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
"currencyCode": {
"title": "Currency Code",
"description": "ISO 4217 currency code.",
"type": "string"
"type": "string",
"pattern": "^[A-Z]{3,3}$"
},
"currencyAmount": {
"title": "Currency Amount",
"description": "An ISO 4217 currency code and an amount.",
"type": "object",
"additionalProperties": false,
"properties": {
"currencyCode": { "$ref": "#/definitions/currencyCode" },
"amount": {
Expand Down Expand Up @@ -639,6 +641,7 @@
"title": "Beacon",
"description": "Information about a location beacon.",
"type": "object",
"additionalProperties": false,
"properties": {
"major": {
"title": "Major",
Expand Down Expand Up @@ -674,6 +677,7 @@
"title": "Location",
"description": "Information about a location.",
"type": "object",
"additionalProperties": false,
"properties": {
"altitude": {
"title": "Altitude",
Expand All @@ -683,12 +687,16 @@
"latitude": {
"title": "Latitude",
"description": "Latitude, in degrees, of the location.",
"type": "number"
"type": "number",
"minimum": -90,
"maximum": 90
},
"longitude": {
"title": "Longitude",
"description": "Longitude, in degrees, of the location.",
"type": "number"
"type": "number",
"minimum": -180,
"maximum": 180
},
"relevantText": {
"title": "Relevant Text",
Expand Down

0 comments on commit 1e16230

Please sign in to comment.