schemaorg-jsd icon indicating copy to clipboard operation
schemaorg-jsd copied to clipboard

How to generate own schema files?

Open mjp0 opened this issue 6 years ago • 2 comments

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?

mjp0 avatar Jan 31 '19 14:01 mjp0

@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.

chharvey avatar Feb 01 '19 15:02 chharvey

@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.

mjp0 avatar Feb 01 '19 15:02 mjp0