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 issue #92 - @validate decorator not working for class-based views #93

Conversation

adamcohenhillel
Copy link
Contributor

@adamcohenhillel adamcohenhillel commented Jun 21, 2022

This small PR fix the issue described in #92

TLDR: We didn't handle the class-based view case with the @Validate decorator, so I changed the decorator to not use the first arg as the request by default.

@adamcohenhillel adamcohenhillel requested a review from ahopkins June 21, 2022 21:36
ahopkins
ahopkins previously approved these changes Jun 21, 2022
@adamcohenhillel
Copy link
Contributor Author

adamcohenhillel commented Jun 21, 2022

@ahopkins Not sure why the ci is failing, logs aren't too helpful - first time contributing here!

@ahopkins
Copy link
Member

The logs have the information:

   sanic_ext/extras/validation/decorator.py:36:1: W293 blank line contains whitespace

Run this before you commit:

make pretty

@ahopkins ahopkins merged commit feeb28d into sanic-org:main Jun 29, 2022
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.

2 participants