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

Perhaps use a JSON Schema document #92

Open
glennsarti opened this issue Sep 10, 2017 · 2 comments
Open

Perhaps use a JSON Schema document #92

glennsarti opened this issue Sep 10, 2017 · 2 comments

Comments

@glennsarti
Copy link

As part of the Puppet VS Code extension I ended up writing a JSON Schema doc for metadata.json. This gem already makes use of the JSON Schema gem (https://github.com/voxpupuli/metadata-json-lint/blob/master/lib/metadata_json_lint.rb#L85-L89)

Instead of writing/encoding the JSON rules in ruby, they can easily be expressed in JSON Schema format. Although the more esoteric rules may require more ruby magic.

This would hopefully make it easy to consume this gem programmatically (as per #85)

Source code for JSON Schema Doc.
https://github.com/jpogran/puppet-vscode/blob/master/client/src/metadata-json-schema.json

@rnelson0
Copy link
Sponsor Member

I'm all for PRs that make use of this, in whole or in part!

@3flex
Copy link
Contributor

3flex commented Apr 12, 2018

The link to metadata-json-schema.json in the original issue description stale, as that project now directly sources the official schema published on the Forge - https://forgeapi.puppet.com/schemas/module.json

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

No branches or pull requests

3 participants