Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 80 additions & 51 deletions modules/meta-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,55 @@
"type": "array",
"description": "Input channels for the module",
"items": {
"type": "array",
"items": { "$ref": "#/definitions/elementProperties" }
"oneOf": [{
"type": "array",
"items": {
"type": "object",
"patternProperties": {
".*": {
"$ref": "#/definitions/elementProperties"
}
}
}
},
{
"type": "object",
"patternProperties": {
".*": {
"$ref": "#/definitions/elementProperties"
}
}}
]
}
},
"output": {
"type": "array",
"type": "object",
"description": "Output channels for the module",
"items": {
"type": "object",
"patternProperties": {
".*": {
"type": "array",
"items": {
"$ref": "#/definitions/elementProperties"
}
"patternProperties": {
".*": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"patternProperties": {
".*": {
"$ref": "#/definitions/elementProperties"
}
}
},
{
"type": "array",
"items": {
"type": "object",
"patternProperties": {
".*": {
"$ref": "#/definitions/elementProperties"
}
}
}
}
]
}
}
}
Expand Down Expand Up @@ -158,49 +192,44 @@
"definitions": {
"elementProperties": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of the channel element",
"enum": ["map", "file", "directory", "string", "integer", "float", "boolean", "list"]
},
"description": {
"type": "string",
"description": "Description of the channel"
},
"pattern": {
"type": "string",
"description": "Pattern of the channel, given in Java glob syntax"
},
"enum": {
"type": "array",
"description": "List of allowed values for the channel",
"items": {
"type": ["string", "number", "boolean", "array", "object"]
},
"uniqueItems": true
},
"ontologies": {
"type": "array",
"description": "List of ontologies for the channel",
"uniqueItems": true,
"items": {
"type": "object",
"patternProperties": {
".*": {
"type": "string",
"pattern": "^(http|https)://.*"
}
}
"properties": {
"type": {
"type": "string",
"description": "Type of the channel element",
"enum": ["map", "file", "directory", "string", "integer", "float", "boolean", "list"]
},
"description": {
"type": "string",
"description": "Description of the channel"
},
"pattern": {
"type": "string",
"description": "Pattern of the channel, given in Java glob syntax"
},
"enum": {
"type": "array",
"description": "List of allowed values for the channel",
"items": {
"type": ["string", "number", "boolean", "array", "object"]
},
"uniqueItems": true
},
"ontologies": {
"type": "array",
"description": "List of ontologies for the channel",
"uniqueItems": true,
"items": {
"type": "object",
"patternProperties": {
".*": {
"type": "string",
"pattern": "^(http|https)://.*"
}
}
},
"required": ["type", "description"]
}
}
}
},
"required": ["type", "description"]
}
},
"required": ["name", "description", "keywords", "authors", "output", "tools"]
Expand Down
Loading