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

Support content-type callables #32

Open
gabisurita opened this issue Jan 18, 2017 · 2 comments
Open

Support content-type callables #32

gabisurita opened this issue Jan 18, 2017 · 2 comments

Comments

@gabisurita
Copy link
Collaborator

http://cornice.readthedocs.io/en/latest/validation.html?highlight=content_type#id4

@glasserc
Copy link
Contributor

How could this work? Generate a fake request, call the callable, and use what it returns?

@gabisurita
Copy link
Collaborator Author

That's an approach, or I think we could also leave an empty field (accept everything). It's just important that we make sure that a callable won't break the generator.

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