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 for args not using camel case in path #43

Merged
merged 4 commits into from
Apr 6, 2018

Conversation

warmans
Copy link
Contributor

@warmans warmans commented Apr 3, 2018

closes #42

This resolves the issue with incorrect case used in paths. There is an example of the issue in the github api.

@vmasek
Copy link
Member

vmasek commented Apr 5, 2018

@warmans there seem to be some lint errors

@warmans
Copy link
Contributor Author

warmans commented Apr 5, 2018

oops, should be fixed now.

@vmasek
Copy link
Member

vmasek commented Apr 5, 2018

still has some, run ng lint before the push to see the warnings

@warmans
Copy link
Contributor Author

warmans commented Apr 5, 2018

I don't think the CI integration is working properly. It's still complaining about stuff that is fixed (e.g. the substring callback arg no longer exists) 🤷‍♂️

@vmasek
Copy link
Member

vmasek commented Apr 5, 2018

I will look at it tomorrow :)

src/parser.ts Outdated
@@ -48,8 +48,11 @@ function parseMethods({paths, security, parameters}: Swagger): Method[] {
),
methodType: methodType.toUpperCase() as MethodType,
parameters: transformParameters(operation.parameters, parameters || {}),
// turn path interpolation `{this}` into string template `${args.this}
// tslint:disable-next-line:no-invalid-template-strings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line can be removed, there is no more invalid template string warning

@vmasek vmasek merged commit e19ccbe into flowup:master Apr 6, 2018
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.

Argument names do not always match path placeholders in generated code
2 participants