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

Fix compatibility issues with profiles.schema.json #11360

Merged
merged 2 commits into from
Sep 29, 2021

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Sep 28, 2021

This fixes two issues with profiles.schema.json:

  • The $schema should not end in a #
  • $defs is the official reserved keyword for schema re-use

See: http://json-schema.org/draft/2020-12/json-schema-core.html

PR Checklist

  • I work here
  • Tests added/passed
  • Schema updated

Validation Steps Performed

The previous schema didn't pass https://jschon.dev/, the new schema does.

@lhecker
Copy link
Member Author

lhecker commented Sep 28, 2021

I suggest reviewing the two commits seperately.

Copy link
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presume you double checked vscode is still OK editing with this schema?

@zadjii-msft zadjii-msft merged commit 856f876 into main Sep 29, 2021
@zadjii-msft zadjii-msft deleted the dev/lhecker/schema-correctness branch September 29, 2021 10:23
@lhecker
Copy link
Member Author

lhecker commented Sep 29, 2021

@miniksa Actually I didn't check it with VS Code. Let me do that now, but I'm certain it'll work since it works with any of the online JSON schema testers out there.

edit: Yep it works.

@ghost
Copy link

ghost commented Oct 20, 2021

🎉Windows Terminal Preview v1.12.2922.0 has been released which incorporates this pull request.:tada:

Handy links:

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 this pull request may close these issues.

3 participants