Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: formfields should be camelcase for /{apiBasePath}/<tenantId>/user/password/reset #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

honerlaw
Copy link

@honerlaw honerlaw commented Dec 1, 2024

This broke codegen when generating from version FDI 1.19.0 on swaggerhub (target of typescript-fetch). However, it appears it breaks in all of the codegens when you use the API directly (verified in 3.0.0 as well).

This was tested with core 9.0.2 and supertokens-node 17 / 18. It appears the code that reads this field has not changed though, as its identical in the latest version (see https://github.com/supertokens/supertokens-node/blob/master/lib/build/recipe/emailpassword/api/passwordReset.js#L37).

Basically, codegen would forward this as formfields instead of formFields, which in turn caused the validateFormFieldsOrThrowError as requestBody.formFields would be undefined.

I am unsure if these are codegened from something else, if it is let me know and I will open a PR in the proper location.

…lds instead). This broke codegen why trying to generate directly from the spec deployed on swaggerhub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant