-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JSON schemas to JSON store #279
Comments
We should. Would be even useful for yaml validation in vscode |
Here's the config content: {
"name": "bower.json",
"description": "Bower package description file",
"fileMatch": [ "bower.json", ".bower.json" ],
"url": "http://schemastore.org/schemas/json/bower"
} Is there any room for us defining new extensions here? If not, how would we specify file matching (or not worry about it; it is optional)? So something like: {
"name": "CSL Bib Data",
"description": "CSL bibliographic input data",
"url": "https://resource.citationstyles.org/schema/latest/input/json/csl-data.json"
} |
So this would allow vscode to autocomplete and validate CSL JSON/YAML? How does a text editor know that any given |
In Atom, you can specify based on file extensions, etc, or allow the user to manually choose the grammar. Not sure here. |
Glob patterns work in vscode |
Ideally there would be a way for the JSON file to specify what schema it intends to follow. VS Code supports VS Code also supports a workspace setting, which is what I think @denismaier mentions in "Glob patterns work in vscode". I have been naming my CSL JSON files like
not yet |
Not sure, but we could add it and recommend? So
Let's sort out the outstanding issues with the input schema for 1.1, and then we can do this then? The schema store doesn't appear to support versions. |
I added the following in my workspace's "json.schemas": [
{
"fileMatch": [
"*references*.json"
],
"url": "https://github.com/dhimmel/csl-schema/raw/manubot/csl-data.json"
}
] So users can always specify https://resource.citationstyles.org/schema/latest/input/json/csl-data.json for the schema, but does JSON Store make this easier? |
I know some tools have support for the store, so you can probably select the schema without knowing the URL? That was the impression I got. |
Shouldn't we add our schemas to here, maybe when we release 1.1 (or simply
latest
)?https://www.schemastore.org/json/
Seems tools are setup to auto find and consume them, for both json and yaml validation.
see #278
The text was updated successfully, but these errors were encountered: