News for hackers. Stuff that matters.
Re:Show HN: A tool to Convert JSON schemas into TypeScript D... by bcherny on Friday October 06, 2023 @07:55AM (#37789509)
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).
Re:Show HN: A tool to Convert JSON schemas into TypeScript D... by leigna on Friday October 06, 2023 @08:13AM (#37789667)
Great library - thank you for sharing. I'll take a look for sure.

Yes it was rather tricky! It's been a great learning exercise for sure.