Skip to content
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

Enable JSON schema for appsettings.json #4279

Closed
JamesNK opened this issue Dec 8, 2020 · 0 comments · Fixed by #4280
Closed

Enable JSON schema for appsettings.json #4279

JamesNK opened this issue Dec 8, 2020 · 0 comments · Fixed by #4280

Comments

@JamesNK
Copy link
Member

JamesNK commented Dec 8, 2020

appsettings.json is the built-in file name for providing configuration in .NET apps. I'm currently improving the schema for appsettings.json on schema store.

Visual Studio 2019 automatically selects a schema from schema store for appsettings.json (and appsettings.{configuration}.json) files:

image

VS code should also automatically use it as the schema for those files.

I believe an extension can specify the schema for a file using this API:

https://code.visualstudio.com/api/references/contribution-points#contributes.jsonValidation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant