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
In ListField, the params that are passed to as_marshmallow_field are used only for the underlying Marshmallow List but nothing is passed to the container.
AFAIU, there is no way to pass params to the container, for instance an EmbeddedField inside the ListField. This sort of breaks the cascading mechanism.
The text was updated successfully, but these errors were encountered:
What about a special container_params field to define in params ?
EDIT: I've just realised this is already done in EmbeddedDocumentField with the embedded params named just params. So I'm not sure whether we should call it container_params or just params...
Well, IIUC, we could do the same as EmbeddedField:
params is a dict with the parameters for the field, and it may include a params key for which the value is a dict with the parameters for the nested field.
This should work in all cases. As long as no field requires a parameter called params, since this would be a reserved word for nested field parameters.
Unless I missed something, this should be pretty easy.
I'll try to tackle this and #65. Not a priority right now, but I'll try to find the time.
Labelling bug as it is a flaw of the existing mechanism rather than a missing feature.
Assigning to myself. Doesn't mean I'll be doing this any soon. I'm on tight schedule and this is not blocking. If you find time to do that, don't refrain to do so!
In
ListField
, theparams
that are passed toas_marshmallow_field
are used only for the underlying MarshmallowList
but nothing is passed to the container.https://github.com/Scille/umongo/blob/master/umongo/fields.py#L119
AFAIU, there is no way to pass
params
to the container, for instance anEmbeddedField
inside theListField
. This sort of breaks the cascading mechanism.The text was updated successfully, but these errors were encountered: