jsoncanvas
jsoncanvas copied to clipboard
generation of schema from typescript
- based on https://github.com/obsidianmd/jsoncanvas/pull/5
- [ ] add validation against test document
- [ ] find viable solution for generating 2020 spec output
I did some modifications (mostly adding some description + pattern on color string) so you might want to pull in case your MR is merged before mine (if it happens)
thanks @chainlist. that was why I kept it as a draft
I really wonder if having the TS type file in this repository is a good thing. JSONSchema doesn't bother me that much because it is part of the specifications for a JSON file.
Would, adding the TS type in https://github.com/DefinitelyTyped/DefinitelyTyped be a bit better ? so doing the following:
npm install @types/jsoncanvas
would work.
Really asking what would be better.
@chainlist from playing quite large and unwieldy schemas, being able to manipulate it in TypeScript makes things considerably easier, and more accessible to contributors.