francescov1 / mongoose-tsgen

A plug-n-play Typescript generator for Mongoose.
103 stars 24 forks source link

fix: Fix schema keys with special characters (#2) #99

Closed wootwoot1234 closed 2 years ago

wootwoot1234 commented 2 years ago

Copy of https://github.com/francescov1/mongoose-tsgen/pull/92 with the String.raw${key}; change

wootwoot1234 commented 2 years ago

We might need to re-generate the /helpers/tests/artifacts/* files to pass tests. I wasn't sure how to re-generate them.

wootwoot1234 commented 2 years ago

@francescov1 what do you think? Can you help me regenerate the /helpers/tests/artifacts/* files?

wootwoot1234 commented 2 years ago

This solution didn't work for me but the line += JSON.stringify(key); from #92 did, I'm closing this for now.

francescov1 commented 2 years ago

Thanks! Will move the chat over to the other PR