Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
fcfe0b45
Commit
fcfe0b45
authored
Nov 16, 2020
by
Samuel GAIST
Browse files
[schema][database] Move environment definition to common file
parent
6a62a11c
Changes
3
Hide whitespace changes
Inline
Side-by-side
beat/core/schema/database/1.json
View file @
fcfe0b45
...
...
@@ -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"
},
...
...
beat/core/schema/database/2.json
View file @
fcfe0b45
...
...
@@ -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
},
...
...
beat/core/schema/database/common.json
View file @
fcfe0b45
{
"$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
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment