Skip to content

Implicit JSON Schema Support #358

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

Closed
grant opened this issue Mar 27, 2019 · 3 comments
Closed

Implicit JSON Schema Support #358

grant opened this issue Mar 27, 2019 · 3 comments
Labels
enhancement Some improvement that isn't a feature

Comments

@grant
Copy link

grant commented Mar 27, 2019

Expected

Editors like VS Code support JSON schemas out of the box.

This is done via http://schemastore.org/json/

I expect to not have to provide a $schema to get autocompletion. Just look up the filename.

Pull from the catalog:
API: http://schemastore.org/api/json/catalog.json
SRC: https://github.com/SchemaStore/schemastore/blob/master/src/api/json/catalog.json

(See VSC bug)

Actual

When you create a .json file (i.e. appsscript.json), you must explicity specify the schema

Screen Shot 2019-03-27 at 12 55 53

(Notice only one autocompletion result)

i.e.

{
  "$schema": "http://json.schemastore.org/appsscript"
}

Then you'll get autocompletion.

Screen Shot 2019-03-27 at 12 56 45

{
  "$schema": "http://json.schemastore.org/appsscript",
  "timeZone": "America/New_York",
  "dependencies": {
  },
  "exceptionLogging": "STACKDRIVER"
}
@grant grant added the enhancement Some improvement that isn't a feature label Mar 27, 2019
@NGTmeaty
Copy link
Contributor

probably should fix this upstream?

@grant
Copy link
Author

grant commented Mar 27, 2019

This should be upstream. I wasn't easily able to find the Settings to solve this.

In VSCode, it's this:

Code > Preferences > Settings

But that will be a different issue.

@grant grant closed this as completed Mar 27, 2019
@grant
Copy link
Author

grant commented Mar 27, 2019

I've filed this issue for adding a way to access Preferences > Settings via the menu bar: #359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Some improvement that isn't a feature
Projects
None yet
Development

No branches or pull requests

2 participants