]
Gorkem Ercan updated ERT-215:
-----------------------------
Sprint: devex #115 May 2016
Improve JSON completion apply according the JSON Schema [EBZ#494114]
--------------------------------------------------------------------
Key: ERT-215
URL:
https://issues.jboss.org/browse/ERT-215
Project: Eclipse Release Train
Issue Type: Task
Components: WTP Source Editing
Reporter: Friendly Jira Robot
Priority: Trivial
Labels: bzira, wst.json
Today, when JSON completion item is applied, it generates the "name" and
"value" fields. According the JSON Schema, it generates for instance
"false" as value if the JSON field is declared as "boolean" in the
JSON Schema.
I think we could improve this behaviour:
* apply completion should show a second popup for boolean value ( with "true",
"false").
* apply completion should generate "true" if JSON Schema "default"
declare it as "true"
* apply completion should use JSON Schema "enum" to show a second popup with
"enum" values.
* apply completion should generate a JSON Object with JSON pair which declare some
"name" JSON fields as "required".