bcgov / business-schemas

Manages the JSONSchemas for the BCRegistry Legal Filings.
Apache License 2.0
5 stars 35 forks source link

Generate typescript models using json-schema-to-typescript #105

Closed seeker25 closed 2 years ago

seeker25 commented 2 years ago

Adding in the ability to generate typescript models from schema JSON.

This takes a bit of the human error / guess work of the schema, technically we could build a script to pull typescript models into respective projects.

We'd need to include a version number at the top of the files, that way it's straight forward to identify issues with new features.

Note this is incomplete: only 32 files out of the 40 were generated. Will remain in draft until json-schema-ref-parser fixes their reference issues. Also requires more documentation.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-schemas license (Apache 2.0).

seeker25 commented 2 years ago

Closing, will reopen if I make some progress on this.