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

hapic_data.files should handle always same type of file #170

Open
inkhey opened this issue Mar 27, 2019 · 0 comments
Open

hapic_data.files should handle always same type of file #170

inkhey opened this issue Mar 27, 2019 · 0 comments

Comments

@inkhey
Copy link
Contributor

inkhey commented Mar 27, 2019

Currently:

  • hapic_data.files return different type of file for each framework (cgi.FieldStorage for pyramid,
    FileField for aiohttp, FileUpload for bottle, FileStorage for flask, ...)
  • Pyramid with serpyco input file validation is broken because cgi.FieldStorage cannot be converted as bool (complicated to check nullability if file type are all differents).

Expected:

  • Return always same type of file with original file as parameters.
  • Pyramid/Serpyco input files validation should work.
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

No branches or pull requests

1 participant