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

Check schemas embedded in files #143

Open
Relequestual opened this issue Aug 15, 2022 · 1 comment
Open

Check schemas embedded in files #143

Relequestual opened this issue Aug 15, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Relequestual
Copy link

There are multiple times when we (the JSON Schema team) would like to be able to validate JSON embedded in other files, such as markdown. (Specifically, JSON Schema examples in our docs and website.)

I imagine it would work by allowing the following:

  • Specify what files should be inspected
  • Identify which fragments of the files are JSON (This may need different approaches per format, potentially with a way to self declare the wish to be validated)
  • Process such fragments which self-identify which Schema they should be validated with (such as a standard meta-schema)
  • Optionally take an argument/s which specifies a default JSON Schema to be used for all fragments within a given file/glob of files

Please do reach out to me on Slack or @Julian. I likely won't see follow up comments here directly as I've declared GH notificaiton bankruptcy. Thanks.

@sirosen sirosen added the enhancement New feature or request label Aug 15, 2022
@sirosen
Copy link
Member

sirosen commented Aug 15, 2022

Okay, cool! This sounds super interesting but also non-trivial.

I likely won't see follow up comments here directly as I've declared GH notificaiton bankruptcy.

I understand, but also this is kind of unfortunate since I've moved in the opposite direction, turning off the email notifications and using the github.com/notifications page to manage a lot of my open source work queue. I'll reach out via another means after I have time to digest this and think about good interfaces for expressing these ideas in the CLI.

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

No branches or pull requests

2 participants