-
-
Notifications
You must be signed in to change notification settings - Fork 765
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
parameter validator in connexion module expecting formData key which we never use in open api 3 #1340
Comments
vijaya2497
changed the title
python connexion module expecting formData key which we never use in open api 3
parameter validator in connexion module expecting formData key which we never use in open api 3
Jun 20, 2021
class ParameterValidator(object):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
i am working on open api 3. For my PUT request content-type is set to multipart/form-data and also I have path parameter too. I enabled strict_validation for validating parameters. Parameter validator in connexion/decorators/validation.py is validating form parameters but in open api 3 we are not defining formData parameters like this( in:formData) anymore we are using request body only for media types.
def validate_formdata_parameter_list(self, request):
request_params = request.form.keys()
we are using only in:path and in:query in openapi 3 so no need of checking for formData parameters in parameter validator class so my suggestion is to remove validate_formdata_parameter_list function from parameter validator
Expected behaviour
Actual behaviour
Steps to reproduce
Additional info:
Output of the commands:
python --version
pip show connexion | grep "^Version\:"
The text was updated successfully, but these errors were encountered: