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

Snjezana Peco (JIRA) issues at jboss.org
Tue Jun 14 18:04:00 EDT 2016


     [ https://issues.jboss.org/browse/ERT-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Snjezana Peco reassigned ERT-212:
---------------------------------

    Assignee: Snjezana Peco


> 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
>            Assignee: Snjezana Peco
>            Priority: Trivial
>              Labels: bzira, wst.json
>
> 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