[JBoss JIRA] (ERT-213) Support for JSON Schema Catalog [EBZ#494110]
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/ERT-213?page=com.atlassian.jira.plugin.sy... ]
Gorkem Ercan updated ERT-213:
-----------------------------
Sprint: devex #115 May 2016
> Support for JSON Schema Catalog [EBZ#494110]
> --------------------------------------------
>
> Key: ERT-213
> URL: https://issues.jboss.org/browse/ERT-213
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Priority: Trivial
> Labels: bzira, wst.json
>
> JSON Schema store provides a JSON Schema catalog at https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catal...
> My idea is to have the same thing than XML Catalog :
> * System catalog where WTP JSON plugin host https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catal...
> * User Catalog to defines your own catalog
> When a JSON file is opened, it checks:
> * if a JSON Schema exists coming from the existing plugin extension point org.eclipse.wst.json.core.schemaCatalogContributions
> * if not, it uses System and User JSON catalog and download the well JSON Schema declared inside JSON Schema Catalog.
> Takes samples:
> 1) User create a JSON file with name "package.json", the JSON Schema which is used comes from org.eclipse.wst.json.core.schemaCatalogContributions (because it exists)
> 2) User create a JSON file with name "babelrc.json". In this case, org.eclipse.wst.json.core.schemaCatalogContributions doesn't define it and http://json.schemastore.org/babelrc is downloaded, because it is declared like this:
> -----------------------------------
> "schemas": [
> {
> "name": "babelrc.json",
> "description": "Babel configuration file",
> "fileMatch": [ ".babelrc" ],
> "url": "http://json.schemastore.org/babelrc"
> },
> -----------------------------------
> inside the system JSON Schema catalog (see at
> https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catal...)
> It should be good too to give the capability to link a JSON Schema to an image to know which icon should be displayed for the JSON file in the "Project Explorer".
> Please note that today it exists JSON Catalog (which is a copy/paste from XML Catalog) in the core. An UI JSON Catalog must be implemented to show system catalog and user catalog (like XML Catalog).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months
[JBoss JIRA] (ERT-214) Validate JSON file with JSON Schema [EBZ#494111]
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/ERT-214?page=com.atlassian.jira.plugin.sy... ]
Gorkem Ercan updated ERT-214:
-----------------------------
Sprint: devex #115 May 2016
> Validate JSON file with JSON Schema [EBZ#494111]
> ------------------------------------------------
>
> Key: ERT-214
> URL: https://issues.jboss.org/browse/ERT-214
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Priority: Trivial
> Labels: bzira, wst.json
>
> It's a very big task, but it should be fantastic if WTP Validator could validate JSON file by using JSON Schema.
> To do that:
> * JSONSchemaDocument should support the full specification of JSON Schema.
> * minimal-json should be improved to collect line, column or perhaps we could use IJSONDocument to validate it with JSON Schema.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months
[JBoss JIRA] (ERT-215) Improve JSON completion apply according the JSON Schema [EBZ#494114]
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/ERT-215?page=com.atlassian.jira.plugin.sy... ]
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".
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months
[JBoss JIRA] (ERT-212) Apply Completion & JSON Schema support for "enum" & "default" [EBZ#494100]
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/ERT-212?page=com.atlassian.jira.plugin.sy... ]
Gorkem Ercan updated ERT-212:
-----------------------------
Story Points: 10
> 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
> 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)
9 years, 10 months
[JBoss JIRA] (ERT-213) Support for JSON Schema Catalog [EBZ#494110]
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/ERT-213?page=com.atlassian.jira.plugin.sy... ]
Gorkem Ercan updated ERT-213:
-----------------------------
Story Points: 10
> Support for JSON Schema Catalog [EBZ#494110]
> --------------------------------------------
>
> Key: ERT-213
> URL: https://issues.jboss.org/browse/ERT-213
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Priority: Trivial
> Labels: bzira, wst.json
>
> JSON Schema store provides a JSON Schema catalog at https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catal...
> My idea is to have the same thing than XML Catalog :
> * System catalog where WTP JSON plugin host https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catal...
> * User Catalog to defines your own catalog
> When a JSON file is opened, it checks:
> * if a JSON Schema exists coming from the existing plugin extension point org.eclipse.wst.json.core.schemaCatalogContributions
> * if not, it uses System and User JSON catalog and download the well JSON Schema declared inside JSON Schema Catalog.
> Takes samples:
> 1) User create a JSON file with name "package.json", the JSON Schema which is used comes from org.eclipse.wst.json.core.schemaCatalogContributions (because it exists)
> 2) User create a JSON file with name "babelrc.json". In this case, org.eclipse.wst.json.core.schemaCatalogContributions doesn't define it and http://json.schemastore.org/babelrc is downloaded, because it is declared like this:
> -----------------------------------
> "schemas": [
> {
> "name": "babelrc.json",
> "description": "Babel configuration file",
> "fileMatch": [ ".babelrc" ],
> "url": "http://json.schemastore.org/babelrc"
> },
> -----------------------------------
> inside the system JSON Schema catalog (see at
> https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catal...)
> It should be good too to give the capability to link a JSON Schema to an image to know which icon should be displayed for the JSON file in the "Project Explorer".
> Please note that today it exists JSON Catalog (which is a copy/paste from XML Catalog) in the core. An UI JSON Catalog must be implemented to show system catalog and user catalog (like XML Catalog).
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months
[JBoss JIRA] (ERT-214) Validate JSON file with JSON Schema [EBZ#494111]
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/ERT-214?page=com.atlassian.jira.plugin.sy... ]
Gorkem Ercan updated ERT-214:
-----------------------------
Story Points: 10
> Validate JSON file with JSON Schema [EBZ#494111]
> ------------------------------------------------
>
> Key: ERT-214
> URL: https://issues.jboss.org/browse/ERT-214
> Project: Eclipse Release Train
> Issue Type: Task
> Components: WTP Source Editing
> Reporter: Friendly Jira Robot
> Priority: Trivial
> Labels: bzira, wst.json
>
> It's a very big task, but it should be fantastic if WTP Validator could validate JSON file by using JSON Schema.
> To do that:
> * JSONSchemaDocument should support the full specification of JSON Schema.
> * minimal-json should be improved to collect line, column or perhaps we could use IJSONDocument to validate it with JSON Schema.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months
[JBoss JIRA] (ERT-215) Improve JSON completion apply according the JSON Schema [EBZ#494114]
by Gorkem Ercan (JIRA)
[ https://issues.jboss.org/browse/ERT-215?page=com.atlassian.jira.plugin.sy... ]
Gorkem Ercan updated ERT-215:
-----------------------------
Story Points: 10
> 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".
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years, 10 months