google / schema-dts

JSON-LD TypeScript types for Schema.org vocabulary
Apache License 2.0
860 stars 32 forks source link

Feature Request: schema-dts-gen --file=my-custom-schema-file.nt #145

Closed eamon-otuathail closed 3 years ago

eamon-otuathail commented 3 years ago

Currently schema-dts-gen accepts a HTTPS parameter for the schema: schema-dts-gen --ontology=https://schema.org/version/latest/schemaorg-all-https.nt

As an alternative, specifically for folks building external extensions who may wish to vary the contents of the ontology during automated builds (on devops machines, perhaps without network access), it would be useful if schema-dts-gen could instead accept the schema as a local file: schema-dts-gen --file=my-custom-schema-file.nt

shnydercom commented 3 years ago

please have a look at that draft and let me know comments/wishes :)

eamon-otuathail commented 3 years ago

That looks perfect - thanks!