This commit is contained in:
v-rucdu 2021-12-29 16:07:28 +05:30
Родитель 026f06122d
Коммит ce13459bfb
1 изменённых файлов: 36 добавлений и 181 удалений

Просмотреть файл

@ -1,14 +1,9 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://example.com/object1640699887.json",
"title": "Root",
"type": "object",
"required": [
"id",
"title",
"publisher",
"descriptionMarkdown",
"graphQueries",
"sampleQueries",
"dataTypes",
@ -19,41 +14,20 @@
],
"properties": {
"id": {
"$id": "#root/id",
"title": "Id",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"title": {
"$id": "#root/title",
"title": "Title",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"publisher": {
"$id": "#root/publisher",
"title": "Publisher",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"descriptionMarkdown": {
"$id": "#root/descriptionMarkdown",
"title": "Descriptionmarkdown",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"graphQueries": {
"$id": "#root/graphQueries",
"title": "Graphqueries",
"type": "array",
"default": [],
"items":{
"$id": "#root/graphQueries/items",
"title": "Items",
"items": {
"type": "object",
"required": [
"metricName",
@ -62,38 +36,20 @@
],
"properties": {
"metricName": {
"$id": "#root/graphQueries/items/metricName",
"title": "Metricname",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"legend": {
"$id": "#root/graphQueries/items/legend",
"title": "Legend",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"baseQuery": {
"$id": "#root/graphQueries/items/baseQuery",
"title": "Basequery",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
}
}
}
},
"sampleQueries": {
"$id": "#root/sampleQueries",
"title": "Samplequeries",
"type": "array",
"default": [],
"items":{
"$id": "#root/sampleQueries/items",
"title": "Items",
"items": {
"type": "object",
"required": [
"description",
@ -101,31 +57,17 @@
],
"properties": {
"description": {
"$id": "#root/sampleQueries/items/description",
"title": "Description",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"query": {
"$id": "#root/sampleQueries/items/query",
"title": "Query",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
}
}
}
},
"dataTypes": {
"$id": "#root/dataTypes",
"title": "Datatypes",
"type": "array",
"default": [],
"items":{
"$id": "#root/dataTypes/items",
"title": "Items",
"items": {
"type": "object",
"required": [
"name",
@ -133,31 +75,17 @@
],
"properties": {
"name": {
"$id": "#root/dataTypes/items/name",
"title": "Name",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"lastDataReceivedQuery": {
"$id": "#root/dataTypes/items/lastDataReceivedQuery",
"title": "Lastdatareceivedquery",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
}
}
}
},
"connectivityCriterias": {
"$id": "#root/connectivityCriterias",
"title": "Connectivitycriterias",
"type": "array",
"default": [],
"items":{
"$id": "#root/connectivityCriterias/items",
"title": "Items",
"items": {
"type": "object",
"required": [
"type",
@ -165,32 +93,20 @@
],
"properties": {
"type": {
"$id": "#root/connectivityCriterias/items/type",
"title": "Type",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"value": {
"$id": "#root/connectivityCriterias/items/value",
"title": "Value",
"type": "array",
"default": [],
"items":{
"$id": "#root/connectivityCriterias/items/value/items",
"title": "Items",
"type": "string",
"default": "",
"pattern": "^.*$"
"default": [
],
"items": {
"type": "string"
}
}
}
}
},
"availability": {
"$id": "#root/availability",
"title": "Availability",
"type": "object",
"required": [
"status",
@ -198,36 +114,22 @@
],
"properties": {
"status": {
"$id": "#root/availability/status",
"title": "Status",
"type": "integer",
"default": 0
"type": "integer"
},
"isPreview": {
"$id": "#root/availability/isPreview",
"title": "Ispreview",
"type": "boolean",
"default": true
"type": "boolean"
}
}
}
,
},
"permissions": {
"$id": "#root/permissions",
"title": "Permissions",
"type": "object",
"required": [
"resourceProvider"
],
"properties": {
"resourceProvider": {
"$id": "#root/permissions/resourceProvider",
"title": "Resourceprovider",
"type": "array",
"default": [],
"items":{
"$id": "#root/permissions/resourceProvider/items",
"title": "Items",
"items": {
"type": "object",
"required": [
"provider",
@ -238,36 +140,18 @@
],
"properties": {
"provider": {
"$id": "#root/permissions/resourceProvider/items/provider",
"title": "Provider",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"permissionsDisplayText": {
"$id": "#root/permissions/resourceProvider/items/permissionsDisplayText",
"title": "Permissionsdisplaytext",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"providerDisplayName": {
"$id": "#root/permissions/resourceProvider/items/providerDisplayName",
"title": "Providerdisplayname",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"scope": {
"$id": "#root/permissions/resourceProvider/items/scope",
"title": "Scope",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"requiredPermissions": {
"$id": "#root/permissions/resourceProvider/items/requiredPermissions",
"title": "Requiredpermissions",
"type": "object",
"required": [
"write",
@ -276,41 +160,24 @@
],
"properties": {
"write": {
"$id": "#root/permissions/resourceProvider/items/requiredPermissions/write",
"title": "Write",
"type": "boolean",
"default": true
"type": "boolean"
},
"read": {
"$id": "#root/permissions/resourceProvider/items/requiredPermissions/read",
"title": "Read",
"type": "boolean",
"default": true
"type": "boolean"
},
"delete": {
"$id": "#root/permissions/resourceProvider/items/requiredPermissions/delete",
"title": "Delete",
"type": "boolean",
"default": true
"type": "boolean"
}
}
}
}
}
}
}
}
,
},
"instructionSteps": {
"$id": "#root/instructionSteps",
"title": "Instructionsteps",
"type": "array",
"default": [],
"items":{
"$id": "#root/instructionSteps/items",
"title": "Items",
"items": {
"type": "object",
"required": [
"title",
@ -319,28 +186,16 @@
],
"properties": {
"title": {
"$id": "#root/instructionSteps/items/title",
"title": "Title",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"description": {
"$id": "#root/instructionSteps/items/description",
"title": "Description",
"type": "string",
"default": "",
"pattern": "^.*$"
"type": "string"
},
"instructions": {
"$id": "#root/instructionSteps/items/instructions",
"title": "Instructions",
"type": "array",
"default": []
"type": "array"
}
}
}
}
}
}