Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"type": "object",
"required": ["type", "location", "identifier"],
"additionalProperties": false,
"properties": {
"type": {
"description": "Describes in what service the asset is hosted in",
"enum": ["s3", "local"]
},
"location": {
"description": "The sub-level in which the asset is located (i.e: bucket, subdirectory)",
"type": "string"
},
"identifier": {
"description": "Must identify an asset within a location uniquely (i.e: full path)",
"type": "string"
}
}
}
+121
View File
@@ -0,0 +1,121 @@
{
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"apis",
"database",
"dataservices",
"user"
]
},
"apis": {
"type": "array",
"items": {
"type": "string",
"enum": [
"sql",
"maps",
"do"
]
}
},
"schemas": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"name",
"permissions"
],
"additionalProperties": false,
"properties": {
"schema": {
"type": "string"
},
"name": {
"type": "string"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"create"
]
}
}
}
}
},
"tables": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"schema",
"name",
"permissions"
],
"additionalProperties": false,
"properties": {
"schema": {
"type": "string"
},
"name": {
"type": "string"
},
"owner": {
"type": "boolean"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"insert",
"select",
"update",
"delete"
]
}
}
}
}
},
"services": {
"type": "array",
"items": {
"type": "string",
"enum": [
"geocoding",
"routing",
"isolines",
"observatory"
]
}
},
"data": {
"type": "array",
"items": {
"type": "string",
"enum": [
"profile"
]
}
},
"table_metadata": {
"type": "array"
}
}
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"type": "object",
"additionalProperties": false,
"properties": {
"columns": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
@@ -0,0 +1,13 @@
{
"type": "object",
"required": ["color"],
"additionalProperties": false,
"properties": {
"color": {
"type": "string",
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
},
"top_label": { "type": "string" },
"bottom_label": { "type": "string" }
}
}
@@ -0,0 +1,4 @@
{
"type": "object",
"additionalProperties": false
}
@@ -0,0 +1,10 @@
{
"type": "object",
"additionalProperties": false,
"properties": {
"prefix": { "type": "string" },
"suffix": { "type": "string" },
"left_label": { "type": "string" },
"right_label": { "type": "string" }
}
}
@@ -0,0 +1,37 @@
{
"type": "object",
"additionalProperties": false,
"anyOf": [
{ "required": ["categories"] },
{ "required": ["html"] }
],
"properties": {
"categories": {
"type": "array",
"required": [
"title"
],
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"title"
],
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
},
"color": {
"type": "string",
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
},
"icon": {
"type": "string"
}
}
}
},
"html": { "type": "string" }
}
}
@@ -0,0 +1,28 @@
{
"type": "object",
"required": ["colors"],
"additionalProperties": false,
"properties": {
"prefix": { "type": "string" },
"suffix": { "type": "string" },
"left_label": { "type": "string" },
"right_label": { "type": "string" },
"colors": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"color"
],
"additionalProperties": false,
"properties": {
"color": {
"type": "string",
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
}
}
}
}
}
}
@@ -0,0 +1,37 @@
{
"type": "object",
"additionalProperties": false,
"anyOf": [
{ "required": ["categories"] },
{ "required": ["html"] }
],
"properties": {
"categories": {
"type": "array",
"required": [
"title"
],
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"title"
],
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
},
"color": {
"type": "string",
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
},
"icon": {
"type": "string"
}
}
}
},
"html": { "type": "string" }
}
}
+19
View File
@@ -0,0 +1,19 @@
{
"type": "object",
"required": ["dashboard_menu", "legends", "scrollwheel", "layer_selector"],
"additionalProperties": false,
"properties": {
"dashboard_menu": {
"type": "boolean"
},
"legends": {
"type": "boolean"
},
"scrollwheel": {
"type": "boolean"
},
"layer_selector": {
"type": "boolean"
}
}
}