You can contribute in a variety of ways. For a detailed tutorial, read Scott Addie's Community-Driven JSON Schemas in Visual Studio 2015 blog post.
- Submit new JSON schema files
- Add a JSON schema file to the catalog
- Modify/update existing schema files
Versioning of schema files are handled by modifying the file name to include the version number: myschema-1.2.json
When uploading a new schema file, make sure it targets a file that is commonly used or has potential for broad uptake.
Use the lowest possible schema draft needed, preferably Draft v4, to ensure interoperability with as many supported editors, IDEs and parsers as possible.
If you don't have Visual Studio (using macOS or Linux?), you can check your modifications are fine by running:
make
After adding schema files, register them in schema catalog by adding an entry corresponding to your schema:
{
"name": "Friendly schema name",
"description": "Schema description",
"fileMatch": [
"list of well-known filenames matching schema"
],
"url": "https://json.schemastore.org/<schemaName>.json"
}
To make sure that files are validated against your schema correctly (we strongly suggest adding at least one before creating a pull request):
- Create a subfolder in
src/test
named as your schema file - Create one or more
.json
files in that folder - Run
npm run build
If the build succeeds, your changes are valid and you can safely create a PR.
A valid YAML file can be translated to JSON file and used as a test file.
If you wish to retain full control over your schema definition, simply register it in the schema catalog by providing a url
pointing to the self-hosted schema file to the entry.
This project contains an .editorconfig
file.
If your IDE or code editor doesn't natively support it, please install the EditorConfig plugin.
The CSS specification is divided into multiple XML documents
one for each CSS module as specified by the W3C.
Each XML document can contain properties, @-directives and pseudo elements/classes with descriptions, example usage and allowed values.
Here are some ways to contribute:
- Add missing descriptions
- Add missing properties and values
- Update the supported browsers attribute
- Add new CSS modules by creating a new file
The easiest way to contribute is to use Visual Studio 2012 or newer, since it has native support for this XML format.
After cloning this project to your local machine, copy the XML schema files to this folder:
C:\Users[username]\AppData\Roaming\Microsoft\VisualStudio\14.0\schemas\css where 14.0 refers to the version of Visual Studio.
If the last part of the path (schemas\css) doesn't exist, you should create it manually.
Visual Studio will now use these schema files instead of the ones it ships with.