Boris Cherny

Results 252 comments of Boris Cherny

If there's an exhaustive comparison of JSONSchema 4 vs. 6 vs. 7 somewhere, that could help us pick a path forward: - Find a way to type everything as a...

Lots of great input. As I suggested earlier, does someone want to start by auditing JSONSchema 4 vs. 6 vs. 7 to see what’s new, and what’s backwards-incompatible? Publishing the...

There isn't a great way to do this today. Proposals welcome!

Hey there! What's it getting overwritten with? We should only be writing .d.ts files, not .json files.

@bingtimren I'd appreciate it if you could take a few mins to write out what exactly is getting overwritten with what, as part of this issue, so folks don't need...

I see -- it seems like we're not setting the extension properly. Thanks for reporting!

@sledorze That's a great idea! The best place to do this is in a new [normalizer rule](https://github.com/bcherny/json-schema-to-typescript/blob/master/src/normalizer.ts).

if/then is not currently supported. Proposals welcome!

if/then is not currently supported. Proposals welcome!

Yup, exactly. Don't forget to validate when you do that too, to make sure the schema doesn't already have conflicting `x-enum-varnames` and `tsEnumNames` defined.