[jbosstools-issues] [JBoss JIRA] (ERT-212) Apply Completion & JSON Schema support for "enum" & "default" [EBZ#494100]

Friendly Jira Robot (JIRA) issues at jboss.org
Wed May 25 15:31:00 EDT 2016


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)


More information about the jbosstools-issues mailing list