Colin Wren
Mar 1, 2021

--

Hi Oded,

JSON schema isn't a means of creating objects, instead it's just a means of ensuring that object is compliant with the published schema.

If you're looking to create an object I would suggest you look at something like TypeScript instead so you can convert the schema to a Type and then use this to aid in the creation and verification of the object as you create it.

--

--

Colin Wren
Colin Wren

Written by Colin Wren

Currently building reciprocal.dev. Interested in building shared understanding, Automated Testing, Dev practises, Metal, Chiptune. All views my own.

Responses (1)