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

Feature: exclude routes from validation #84

Merged
merged 1 commit into from
Feb 26, 2015

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Feb 24, 2015

Currently requests can be excluded by path, or by disabling all path validation.

This PR adds support for excluding some routes from validation as another option before disabling all path validation.

y-m uses a single fallback route for legacy routing, so this will allow us to use path validation for all pyramid views, and exclude legacy views.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 9194e01 on dnephin:exclude_route_off_master into 278b2c1 on striglia:master.

@dnephin
Copy link
Contributor Author

dnephin commented Feb 24, 2015

This branch needs the test fix from #82

@@ -39,6 +39,9 @@ A few relevant settings for your `Pyramid .ini file <http://docs.pylonsproject.o
# Default: [r'^/static/?', r'^/api-docs/?']
pyramid_swagger.exclude_paths = [r'^/static/?', r'^/api-docs/?']

# Exclude routes from validation. Accepts a list of strings
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"exclude pyramid routes"? Not sure if this needs clarification...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't hurt to be explicit about it, will update

@striglia
Copy link
Contributor

No major issues. I'll re-review once comments + merging w/ #82 are done

Conflicts:
	tests/tween_test.py
striglia added a commit that referenced this pull request Feb 26, 2015
Feature: exclude routes from validation
@striglia striglia merged commit 7b43895 into Yelp:master Feb 26, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 6076575 on dnephin:exclude_route_off_master into 278b2c1 on striglia:master.

@dnephin dnephin deleted the exclude_route_off_master branch March 2, 2015 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants