Skip to content

Commit

Permalink
fix: workaround for config schema generation tool bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 21, 2019
1 parent da3e754 commit e42799c
Showing 1 changed file with 72 additions and 44 deletions.
116 changes: 72 additions & 44 deletions src/configSchema.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"additionalProperties": false,
"properties": {
"tabs": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the tab that shows up in the actual tab control",
Expand All @@ -26,6 +28,7 @@
"filter": {
"description": "Contains configs for the filter widget.",
"type": "object",
"additionalProperties": false,
"properties": {
"layerNames": {
"description": "Defines all of the layer names as they show up in the web map",
Expand All @@ -39,6 +42,7 @@
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
Expand Down Expand Up @@ -89,6 +93,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
Expand All @@ -105,10 +110,14 @@
],
"oneOf": [
{
"required": [ "layerNames" ]
"required": [
"layerNames"
]
},
{
"required": [ "phase" ]
"required": [
"phase"
]
}
]
},
Expand All @@ -119,7 +128,10 @@
"type": "array",
"items": {
"description": "The first value is the field name and subsequent values correspond to the phases. The unfunded phase value is optional.",
"type": ["string", "number"]
"type": [
"string",
"number"
]
}
}
}
Expand All @@ -129,6 +141,7 @@
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
Expand Down Expand Up @@ -167,6 +180,7 @@
"sherlock": {
"description": "Configuration options for the map search widget",
"type": "object",
"additionalProperties": false,
"properties": {
"serviceUrl": {
"description": "The URL to the service that you would like to search features on.",
Expand All @@ -189,70 +203,82 @@
"layerSelector": {
"description": "Configuration options for the base map selector widget",
"type": "object",
"additionalProperties": false,
"properties": {
"baseLayers": {
"type": "array",
"items": {
"type": [
"object",
"string"
],
"properties": {
"id": {
"description": "The name of the layer",
"type": "string"
},
"Factory": {
"description": "The name of the esrijs module associated with the layer type",
"anyOf": [
{
"type": "string"
},
"urlTemplate": {
"description": "The urlTemplate for the layer. \"{quadWord}\" will be automatically replaced with the appropriate value at runtime.",
"type": "string"
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "The name of the layer",
"type": "string"
},
"Factory": {
"description": "The name of the esrijs module associated with the layer type",
"type": "string"
},
"urlTemplate": {
"description": "The urlTemplate for the layer. \"{quadWord}\" will be automatically replaced with the appropriate value at runtime.",
"type": "string"
}
},
"required": [
"id",
"Factory",
"urlTemplate"
]
}
},
"required": [
"id",
"Factory",
"urlTemplate"
]
}
},
"overlays": {
"type": "array",
"items": {
"type": [
"object",
"string"
],
"properties": {
"id": {
"description": "The name of the layer",
"type": "string"
},
"Factory": {
"description": "The name of the esrijs module associated with the layer type",
"anyOf": [
{
"type": "string"
},
"url": {
"description": "The url for the layer",
"type": "string"
},
"opacity": {
"type": "number"
{
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"description": "The name of the layer",
"type": "string"
},
"Factory": {
"description": "The name of the esrijs module associated with the layer type",
"type": "string"
},
"url": {
"description": "The url for the layer",
"type": "string"
},
"opacity": {
"type": "number"
}
},
"required": [
"id",
"Factory",
"url"
]
}
},
"required": [
"id",
"Factory",
"url"
]
}
}
}
},
"minimumLegendSizes": {
"type": "object",
"additionalProperties": false,
"properties": {
"pointSize": {
"type": "number"
Expand All @@ -268,6 +294,7 @@
},
"defaultExtent": {
"type": "object",
"additionalProperties": false,
"properties": {
"zoomLevel": {
"type": "number"
Expand All @@ -287,6 +314,7 @@
},
"links": {
"type": "object",
"additionalProperties": false,
"properties": {
"landingPage": {
"description": "This is the URL for the links on the logo (larger screens) and \"Wasatch Choice\" tab link (smaller screens)",
Expand Down

0 comments on commit e42799c

Please sign in to comment.