You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Kingdutch if you're interested in getting your feet wet in the codegen, this one would probably be quite easy. There's a SafeParam module that's designed for preventing collisions between query params, path params, and built-ins like environment etc that we always use. I think solving this should be as easy as extending that variant to have RescriptKeyword({ realKey: string, collisionProtectedKey: string }) and just have collisionProtectedKey get a trailing underscore or similar.
The codegen tool did not yet account for reserved keywords when
generating code. This caused a query parameter such as `type` to
generate code that would refuse to compile.
To fix this a list of reserved keywords are added that get an underscore
added as suffix.
Fixes#30
The text was updated successfully, but these errors were encountered: