|
|
|
|
|
by bcherny
993 days ago
|
|
Nice! Lots of tricky edge cases to do this right: there’s ambiguity in the JSON Schema spec, version-to-version changes, many popular community conventions that don’t adhere to the spec, etc. Feel free to check out the tests to understand some of these: https://github.com/bcherny/json-schema-to-typescript (shameless plug — I have maintained this library for a number of years). |
|
Yes it was rather tricky! It's been a great learning exercise for sure.