You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (JIRA)" <ji...@apache.org> on 2018/12/04 14:10:00 UTC

[jira] [Commented] (NETBEANS-973) Support for JSON Schema (Code completion, hints, etc.)

    [ https://issues.apache.org/jira/browse/NETBEANS-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16708744#comment-16708744 ] 

Christian Lenz commented on NETBEANS-973:
-----------------------------------------

As mentioned before on http://schemastore.org/json/ you can find a link to the catalog.json to get a full list of all supported files, an explanation and a list of supported Editors and IDEs. It would be nice if NetBeans could be one of them too ;).

ATM, I do some stuff for the eslint plugin like changing icon etc. so maybe I can try to create a first draft for this plugin and will create a PR for this implementation later. Only to let you know.

> Support for JSON Schema (Code completion, hints, etc.)
> ------------------------------------------------------
>
>                 Key: NETBEANS-973
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-973
>             Project: NetBeans
>          Issue Type: New Feature
>          Components: javascript - JSON
>    Affects Versions: Next
>            Reporter: Christian Lenz
>            Priority: Major
>
> As we have a lot of JSON files, which has a specific, known structure, like package.json, composer.json, angular-cli.json, angular.json, bower.json and a lot of others, we need the the ability to have code completion inside those files for the specific name. This feature is part of VS Code and IntelliJ and both uses the JSON Schema: http://schemastore.org/json/.
> So as you can see, not only .json files, but .bowerrc or others, should have the functionality too. WebStorm downloads the schema for each file like they described it here: https://blog.jetbrains.com/webstorm/2018/05/webstorm-2018-2-eap/#improved_support_for_json_schemas
> So you can see that they show the properties inside the code completion, that are allowed and the description to each property.
> I know, that we have code completion for composer.json but first it is a mess for the developers, to add each completion provider for each supported json file and new ones. So it would be better to call the API and parse the result, as you already wanted that, many years ago, as described here: http://wiki.netbeans.org/JsonTools#JS_expression -> Advaced features -> JSON validation against JSON Schemas.
> So this enhancement will be very great. And if this is happen, we can have some more features like validation in json files and add missing, required properties: https://blog.jetbrains.com/webstorm/2018/06/webstorm-2018-2-eap-182-3208/#add_missing_required_properties_in_json_files
> Here are some more links from json schema, for the implementation: http://json-schema.org/implementations.html
> Cheers
> Chris



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists