Add ability to exclude specific fields from fields.Dict during de-/serialization
See original GitHub issueSome data structures are semi-defined, sitting in-between fields.Dict()
and fields.Nested()
. It would be helpful to be able to exclude specific fields by name from de-/serialization
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
How to exclude specific fields on serialization with jsonpickle?
I'm using SQLAlchemy extension with Flask. While serializing my models (which are also used for database operations) ...
Read more >Serializers - Django REST framework - Tom Christie
We'll declare a serializer that we can use to serialize and deserialize Comment objects. ... The first part of serializer class defines the...
Read more >marshmallow.schema — marshmallow 3.19.0 documentation
May be an `OrderedDict`. - ``exclude``: Tuple or list of fields to exclude in the serialized result. Nested fields can be represented with...
Read more >great_expectations.marshmallow__shade.schema
exclude – Blacklist of the declared fields to exclude when instantiating the Schema. If a field appears in both only and exclude ,...
Read more >marshmallow - Read the Docs
You can also exclude fields by passing in the exclude parameter. 4.2.3 Deserializing ... receives a dictionary of deserialized data as its only...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Only knowing the fields you want to exclude seems like an unusual use case. I would not recommend adding this functionality into the core
Dict
field. The nicer syntax you are looking for could be accomplished by subclassingDict
.@lafrech I can but property in
fields.Dict
constructor would be much prettier, hence this request