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

feat: json schema #185

Merged
merged 1 commit into from
Jul 7, 2024
Merged

Conversation

EmilyGraceSeville7cf
Copy link
Contributor

image

There are several possible ways of utilizing this schema (YAML extension is required in VS Code to make them work):

  • It can be referenced directly # yaml-language-server: $schema={{schema url in this repository}} in ~/.tran/tran.yml, this is a manual approach because requires user to put a full URL by hand.
  • It can be put in SchemaStore and referenced there like this. This approach ensures that whenever user edits ~/.tran/tran.yml they get the latest hints for it.

If this PR is accepted this schema is referenced in SchemaStore to automatically enable validation for ~/.tran/tran.yml.

@EmilyGraceSeville7cf
Copy link
Contributor Author

@abdfnx, please review this PR.

@abdfnx
Copy link
Owner

abdfnx commented Jul 7, 2024

@abdfnx, please review this PR.

Hi @EmilyGraceSeville7cf, OK I will review this PR

Copy link
Owner

@abdfnx abdfnx left a comment

Choose a reason for hiding this comment

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

👍👍

@abdfnx abdfnx merged commit 67eb418 into abdfnx:main Jul 7, 2024
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.

2 participants