Skip to content

Add JSON schema for CPM package specification files (package.json)

Fredrik Wieczerkowski requested to merge package-schema into master

This branch adds a package.schema.json that describes the package.json format as a JSON schema. JSON schema is a widely adopted format that makes it easier to external tooling such as IDEs to provide validation and autocompletion in JSON documents.

With this schema, for example, Visual Studio Code can both provide completions and warn about missing mandatory fields:

vscode-cpm-schema

Merge request reports