-
Notifications
You must be signed in to change notification settings - Fork 149
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
schema validation requires MappingSchema #307
Comments
Yeah, we definitely should do some duck typing here rather than trying to do a type check. I'm not sure from the thread on Stack Overflow: do you want to work on a fix? |
If you have time, I'd prefer it if you did. I'm a little swamped. I'm also just starting to figure out how Cornice works. ^_^ I'm going to fix ColanderAlchemy so it implements |
Okay, on second thought, I'm not going to make the change to ColanderAlchemy. The I'll put together a PR to properly use the |
I'm going to close this issue as PR #309 fixes this issue. |
This is related to this posting on SO: http://stackoverflow.com/questions/30736627/cornice-schema-validation-with-colanderalchemy/30761861#30761861
Essentially validation will only work if the colander schema passed in is a direct subclass of
MappingSchema
. Using something likeSchemaNode(typ=Mapping)
should work just fine, but instead it throwscornice.schemas.SchemaError: schema is not a MappingSchema
.The text was updated successfully, but these errors were encountered: