[jbosstools-issues] [JBoss JIRA] (ERT-213) Support for JSON Schema Catalog [EBZ#494110]
Gorkem Ercan (JIRA)
issues at jboss.org
Wed Jul 27 07:51:00 EDT 2016
[ https://issues.jboss.org/browse/ERT-213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gorkem Ercan updated ERT-213:
-----------------------------
Story Points: 2 (was: 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
> Assignee: Snjezana Peco
> Priority: Trivial
> Labels: bzira, wst.json
> Fix For: Neon.1 (4.6)
>
>
> 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