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

Integrated generated code for /v1/account_links #146

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

scrblue
Copy link

@scrblue scrblue commented Oct 16, 2020

Simply includes the generated code and adds the mod and pub use statements in resources.rs. One modification from the generated code was made for API compliance: the generated AccountLinkType enum had the options CustomAccountUpdate and CustomAccountVerification, but I changed it to AccountUpdate and AccountOnboarding to match the API documented here. The resulting functionality was tested a decent amount and seems to work properly.

@arlyon
Copy link
Collaborator

arlyon commented Apr 20, 2021

Hello, apologies for the late reply. We are working on getting up to speed on pull requests. May I ask if you are still interested in merging this (we are!) that you rebase? Thank you.

As a general rule we should probably refrain from hand-editing the generated code, even though it deviates slightly from the spec, and instead look to change the codegen.

@scrblue
Copy link
Author

scrblue commented Apr 20, 2021

Hi, I can definitely get it working with the current master branch sometime soon. I'll take a look at the generation first too :)

@arlyon
Copy link
Collaborator

arlyon commented Apr 21, 2021

Happy to give pointers if needed.

@seanpianka
Copy link
Collaborator

What are the issues in the codegen that are causing the generated field names to be incorrect? Is it using an old schema of the API for generation?

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.

3 participants