Friendly Jira Robot created ERT-212:
---------------------------------------
Summary: Apply Completion & JSON Schema support for "enum"
& "default" [EBZ#494100]
Key: ERT-212
URL:
https://issues.jboss.org/browse/ERT-212
Project: Eclipse Release Train
Issue Type: Task
Components: WTP Source Editing
Reporter: Friendly Jira Robot
Priority: Trivial
JSON Editor completion should support JSON Schema "enum" when completion is
applied.
Takes a samples with tsconfig.json which defines a JSON Schema for "target" like
this:
-----------------------------------------------
"target": {
"description": "Specify ECMAScript target version.",
"enum": [
"es3",
"es5",
"es6",
"es2015"
],
"default": "es3"
}
-----------------------------------------------
When I open completion, it shows "target", and when I apply the completion, it
generates only
-----------------------------------------------
"target"
-----------------------------------------------
It should be very cool, if apply completion:
* generates
-----------------------------------------------
"target": "es3"
-----------------------------------------------
because "es3" is defined as "default".
* and when I do tab on "es3" value, it shows a second completion popup with
enum values ("es3", "es5", etc)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)