Commit fcfe0b45 authored by Samuel GAIST's avatar Samuel GAIST

[schema][database] Move environment definition to common file

parent 6a62a11c
......@@ -19,18 +19,7 @@
"items": { "$ref": "#/definitions/protocol" }
},
"environment": {
"type": "object",
"properties": {
"name": { "type": "string" },
"version": { "type": "string" }
},
"required": [
"name",
"version"
],
"additionalProperties": false
},
"environment": {"$ref": "common.json#/definitions/environment"},
"description": { "$ref": "../common/1.json#/definitions/description" },
......
......@@ -21,18 +21,7 @@
"description": { "$ref": "../common/1.json#/definitions/description" },
"environment": {
"type": "object",
"properties": {
"name": { "type": "string" },
"version": { "type": "string" }
},
"required": [
"name",
"version"
],
"additionalProperties": false
},
"environment": {"$ref": "common.json#/definitions/environment"},
"schema_version": { "const": 2 },
......
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Algorithm common components descriptor",
"description": "This schema defines the components used in one or more versions of the Database",
"definitions": {
"direct_rawdata_access": {
"type": "boolean",
"default": false
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Algorithm common components descriptor",
"description": "This schema defines the components used in one or more versions of the Database",
"definitions": {
"direct_rawdata_access": {
"type": "boolean",
"default": false
},
"environment": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"name",
"version"
],
"additionalProperties": false
}
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment