Member-only story

Dennis O'Keeffe
1 min readSep 20, 2020

--

Heading image

Building on from previous posts on a spike on JSON Schema, we will continue in this one by looking at an alternative library to the json-schema-to-typescript the library previously explored.

Setting Up

For book.json, add the following. It will follow a similar JSON schema we've used previously with the Book but a few changes, so are sure to copy-paste it across.

Writing out the script

index.js will look like the following:

In the above script, we are going to generate TypeScript and Python output for the sake of demonstration.

--

--

Dennis O'Keeffe
Dennis O'Keeffe

No responses yet