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

How to generate own schema files? #3

Open
mjp0 opened this issue Jan 31, 2019 · 2 comments
Open

How to generate own schema files? #3

mjp0 opened this issue Jan 31, 2019 · 2 comments
Assignees

Comments

@mjp0
Copy link

mjp0 commented Jan 31, 2019

A quick question - I want to generate the full schema.org vocabulary for validation so can I somehow generate my own jsd files with this?

@chharvey
Copy link
Owner

chharvey commented Feb 1, 2019

@0fork Thanks for your question. This project does not have a mechanism for auto-generating JSON Schema files at this time. Currently, the files are under the /schema/ folder with extension .jsd, and must be hand-coded, so if you have an addition to make, pull requests are welcome.

I’m looking into finding a way to have .jsd files generated from the Schema.org API, but it’s low priority for me as I have other things on my plate. For now, you can download the Vocabulary Definition Files in a format that meets your needs.

Thanks for submitting this issue, and I’ll leave it open as a task for auto-generating .jsd files.

@mjp0
Copy link
Author

mjp0 commented Feb 1, 2019

@chharvey ok, thanks for the reply. I also have my hands full at the moment and I can ignore validation for now, but this is something that I'll definitely need so I'll take a look at this later on.

Validating datatypes themselves should be rather straightforward. I guess the biggest time sink will be the code that creates and traverses the graph for all schema entities needed.

@chharvey chharvey self-assigned this Feb 1, 2019
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

2 participants