[jbosstools-issues] [JBoss JIRA] (ERT-213) Support for JSON Schema Catalog [EBZ#494110]
Friendly Jira Robot (JIRA)
issues at jboss.org
Wed May 25 15:31:00 EDT 2016
Friendly Jira Robot created ERT-213:
---------------------------------------
Summary: 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
JSON Schema store provides a JSON Schema catalog at https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json
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/catalog.json
* 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/catalog.json#L7)
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)
More information about the jbosstools-issues
mailing list