Commit c6e122e6 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[schema][algorithm] Separate endpoint definition

parent 0dadd0f6
......@@ -5,19 +5,23 @@
"definitions": {
"endpoint": {
"type": "object",
"properties": {
"type": { "$ref": "../common/1.json#/definitions/reference" },
"description": { "type": "string" }
},
"required": [
"type"
],
"additionalProperties": false
},
"endpoints": {
"type": "object",
"patternProperties": {
"^[a-zA-Z_][a-zA-Z0-9_-]*$": {
"type": "object",
"properties": {
"type": { "$ref": "../common/1.json#/definitions/reference" },
"description": { "type": "string" }
},
"required": [
"type"
],
"additionalProperties": false
"$ref": "#/definitions/endpoint"
}
},
"uniqueItems": true,
......
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