json-schema-to-typescript
json-schema-to-typescript copied to clipboard
Add option to generate TS string enums
Linked issue: https://github.com/bcherny/json-schema-to-typescript/issues/200 Addressed comments/requests in: https://github.com/bcherny/json-schema-to-typescript/pull/262#pullrequestreview-324907958
Implemented as a normalizer under cli/options flag: inferStringEnumKeysFromValues
Thanks for the contribution! Would you mind adding a couple e2e tests too, so we have a record of the end to end output with this flag enabled?
Added e2e test