json-schema-to-typescript
json-schema-to-typescript copied to clipboard
Escape `/*` `*/` in comments
This is sometimes used in comments to refer to some Paths and make Prettier fail, resulting in a log message and an empty file. It would be very handy to be able to escape those.
ex: */foo becoming *\/foo
@sledorze That's a great idea! The best place to do this is in a new normalizer rule.
I'm affected by this.
It generates something like following for me:
/**
* This interface was referenced by `undefined`'s JSON-Schema definition
* via the `patternProperty` "^(?:\S+|/.*/[a-z]*)$".
*/