Quote object literal property names when required #35
colonel-sanders
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with an interesting schema created by a third party. This schema includes property names such as
@type
; these property names require wrapping quotes in the generated Typescript code.For example, for this schema:
The generated Typebox definition looks like:
But, we can't use that as a property name literal, so instead we should output:
I'm posting a PR with a fix for this weird little corner case.
Beta Was this translation helpful? Give feedback.
All reactions