You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We developed a API using Eve 0.7 that used allow_unknown on a nested dict field. This field worked as expected according to the cerberus documentation.
We are now upgrading to Eve 0.8 and our endpoints no longer respect the allow_unknown parameter in nested dicts. I would expect that I can run the example below:
I was able to get my code working again by adding allow_unknown at the resource level. While this solution works, our goal is to allow unknown properties only at a nested level of the schema. This solution allows data to be submitted with unknown properties to any level of the schema.
For a little more context, our API point leverages GeoJSON objects, so we want to enable the properties key to allow unknown keys, but not the top level of the GeoJSON object.
Note this was originally posted as a stack overflow question
Expected Behavior
We developed a API using Eve 0.7 that used
allow_unknown
on a nested dict field. This field worked as expected according to the cerberus documentation.We are now upgrading to Eve 0.8 and our endpoints no longer respect the
allow_unknown
parameter in nested dicts. I would expect that I can run the example below:settings.py
app.py
$ python app.py
Pass
Actual Behavior
$ python app.py
Pass
Fail (would expect this to pass)
Environment
0.8
(installed viapip install eve
)The text was updated successfully, but these errors were encountered: