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

[Angular] Fixed #170 "TypeScriptAngular: {{#isBodyAllowed}} not avail… #223

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

Conversation

mtormento
Copy link
Contributor

…able in templates"

Fixes #170.
When the template engine finds the "isBodyAllowed" keyword inside mustache files, it tries to invoke a method named "getIsBodyAllowed" in CodegenOperation.java, but it's not there.
Instead, correctly, there's an "isBodyAllowed" method, that will be called if "bodyAllowed" is found in mustache files.
I checked other languages: ktor library for kotlin-server works the same and uses "bodyAllowed".
Therefore I simply changed "isBodyAllowed" to "bodyAllowed" in mustache files: now body is correctly injected in httpClient requests when body is allowed (PUT, PATCH and POST methods).

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