Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from ogavb/dynamicOptionsAlignment4
Dynamic options alignment4
- Loading branch information
Showing
4 changed files
with
342 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "app-config-schema.json", | ||
"self": { | ||
"vendor": "unical", | ||
"name": "app-config", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"max_age": { | ||
"title": "HSTS max age", | ||
"description": "This property specifies HTTP Strict Transport Security max age.", | ||
"type": "number", | ||
"minimum": 0 | ||
}, | ||
"port": { | ||
"title": "Ports configuration object", | ||
"description": "This object contains information about ports to be used for the various supported protocols.", | ||
"type": "object", | ||
"properties": { | ||
"http": { | ||
"title": "HTTP port", | ||
"description": "This property specifies the port to use for HTTP connections.", | ||
"type": "number", | ||
"minimum": 0, | ||
"maximum": 65535 | ||
}, | ||
"https": { | ||
"title": "HTTPS port", | ||
"description": "This property specifies the port to use for HTTPS connections.", | ||
"type": "number", | ||
"minimum": 0, | ||
"maximum": 65535 | ||
} | ||
}, | ||
"required": [ | ||
"http" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"path": { | ||
"title": "Paths configuration object", | ||
"description": "This object contains information about paths to be used for the various configurations.", | ||
"type": "object", | ||
"properties": { | ||
"key": { | ||
"title": "HTTPS key", | ||
"description": "This property specifies the path for the HTTPS key.", | ||
"type": "string" | ||
}, | ||
"cert": { | ||
"title": "HTTPS certificate", | ||
"description": "This property specifies the path for the HTTPS certificate.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"key", | ||
"cert" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": [ | ||
"port", | ||
"max_age" | ||
], | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "services-schema.json", | ||
"self": { | ||
"vendor": "unical", | ||
"name": "services", | ||
"format": "jsonschema", | ||
"version": "1-0-0" | ||
}, | ||
"properties": { | ||
"languages": { | ||
"title": "Supported languages.", | ||
"description": "This property indicates all the supported languages by the services avalable on the LoIDE Web Application.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "#/definitions/language" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"languages" | ||
], | ||
"additionalProperties": false, | ||
"definitions": { | ||
"language": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "Language name.", | ||
"description": "This property indicates the language name.", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"title": "Language value.", | ||
"description": "This property indicates the language value used in communication with other services.", | ||
"type": "string" | ||
}, | ||
"syntax-highlighter": { | ||
"title": "Syntax-Highlighter path.", | ||
"description": "This property indicates the syntax highlighter path corresponding to this language.", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "Syntax-Highlighter name.", | ||
"description": "This property indicates the syntax-highlighter name.", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"title": "Syntax-Highlighter description.", | ||
"description": "This property indicates the syntax-highlighter description.", | ||
"type": "string" | ||
}, | ||
"path": { | ||
"title": "Syntax-Highlighter path.", | ||
"description": "This property indicates the syntax-highlighter file path.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"path" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"solvers": { | ||
"title": "Supporting solvers.", | ||
"description": "This property indicates all supporting solvers for this language.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "#/definitions/solver" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"value", | ||
"solvers" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"solver": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "Solver name.", | ||
"description": "This property indicates the solver name.", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"title": "Solver value.", | ||
"description": "This property indicates the solver value used in communication with other services.", | ||
"type": "string" | ||
}, | ||
"executors": { | ||
"title": "Supporting executors.", | ||
"description": "This property indicates all supporting executors for this solver.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"$ref": "#/definitions/executor" | ||
} | ||
}, | ||
"options": { | ||
"title": "Solver option", | ||
"description": "This property indicates the options supported by the solver.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"title": "Option name.", | ||
"description": "This property indicates the option name.", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"title": "Option value.", | ||
"description": "This property indicates the command line argument passed to the solver.", | ||
"type": "string" | ||
}, | ||
"word_argument": { | ||
"title": "Word argument.", | ||
"description": "This property indicates if this type of argument requires the second argument or it's just a word argument (this is just a flag).", | ||
"type": "boolean" | ||
}, | ||
"description": { | ||
"title": "Option description.", | ||
"description": "This property contains the description of the option.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"value", | ||
"word_argument", | ||
"description" | ||
], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"value", | ||
"executors", | ||
"options" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"executor": { | ||
"type": "object", | ||
"properties": { | ||
"protocol": { | ||
"title": "Protocol name.", | ||
"description": "This property indicates the protocol name to use for a connection with this Executor.", | ||
"enum": [ "ws", "http" ] | ||
}, | ||
"url": { | ||
"title": "Executor URL.", | ||
"description": "This property indicates the executor URL to connect with it.", | ||
"type": "string", | ||
"oneOf": [ | ||
{ "format": "hostname" }, | ||
{ "format": "ipv4" }, | ||
{ "format": "ipv6" } | ||
] | ||
}, | ||
"name": { | ||
"title": "Executor name.", | ||
"description": "This property indicates the executor name.", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"title": "Executor value.", | ||
"description": "This property indicates the option value.", | ||
"type": "string" | ||
}, | ||
"path": { | ||
"title": "Executor path.", | ||
"description": "This property indicates the executor path relative to its URL.", | ||
"type": "string", | ||
"_comment": "Add the pattern to match with the 'path'." | ||
}, | ||
"port": { | ||
"title": "Connection port number.", | ||
"description": "This property indicates the port number open on this executor for the incoming connections.", | ||
"type": "number", | ||
"minimum": 0, | ||
"maximum": 65535 | ||
} | ||
}, | ||
"required": [ | ||
"protocol", | ||
"url", | ||
"path", | ||
"port" | ||
], | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters