xddq / schema2typebox

Creating TypeBox code from JSON schemas
MIT License
66 stars 15 forks source link

feature/fix hyphen #47

Closed xddq closed 6 months ago

xddq commented 6 months ago

Summary

The regex to test property names wasn't right. This fixes it by removing the regex and quoting every property.

Fixes #45

Originally submitted by @smeijer here. Did copy the PR since I could not make any commits to it. I think it was because the PR creater account and the fork are in different accounts. But I am not sure about that 🙃.