xddq / schema2typebox

Creating TypeBox code from JSON schemas
MIT License
54 stars 12 forks source link

feature/fix hyphen #47

Closed xddq closed 1 month ago

xddq commented 1 month 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 🙃.