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

Pass query and body parameters as keyword arguments to handler function #59

Closed
hjacobs opened this issue Aug 28, 2015 · 1 comment
Closed
Assignees

Comments

@hjacobs
Copy link
Contributor

hjacobs commented Aug 28, 2015

Connexion should actually map query parameters (flask.request.args) and body parameters to keyword arguments (including type conversion) and pass them to the handler function directly.

@hjacobs
Copy link
Contributor Author

hjacobs commented Sep 7, 2015

This could be done in a "smart" and backwards-compatible way by inspecting the handler function with "inspect.signature" (https://docs.python.org/3/library/inspect.html#inspect.signature) --- i.e. automatically map keyword arguments if the function signature contains them.

@jmcs jmcs self-assigned this Sep 21, 2015
jmcs added a commit that referenced this issue Sep 21, 2015
jmcs added a commit that referenced this issue Sep 21, 2015
jmcs added a commit that referenced this issue Sep 21, 2015
jmcs added a commit that referenced this issue Sep 22, 2015
jmcs added a commit that referenced this issue Sep 22, 2015
jmcs added a commit that referenced this issue Sep 22, 2015
@jmcs jmcs closed this as completed in 165cdcd Sep 23, 2015
@jmcs jmcs removed the in progress label Sep 23, 2015
jmcs added a commit to zalando-stups/lizzy that referenced this issue Sep 23, 2015
jmcs added a commit to zalando-stups/lizzy that referenced this issue Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants