Skip to main content

ExtraOwned

No overview available.

Attributes

AttributeTypeDescription
mode[SerMode](sermode.md?sid=serializers_extra_sermode)The serialization mode used to determine how data is converted to its output format.
warnings[CollectWarnings](collectwarnings.md?sid=serializers_extra_collectwarnings)The strategy for collecting and handling warnings encountered during the serialization process.
by_aliasboolDetermines whether to use field aliases instead of attribute names if defined.
exclude_unsetboolWhether to exclude fields that were not explicitly set during model initialization.
exclude_defaultsboolWhether to exclude fields that contain their default values.
exclude_noneboolWhether to exclude fields that have a value of None.
exclude_computed_fieldsboolWhether to exclude fields decorated as computed properties from the output.
round_tripboolWhether to ensure serialization is performed in a way that supports perfect reconstruction of the object.
config[SerializationConfig](../config/serializationconfig.md?sid=serializers_config_serializationconfig)The configuration settings governing the serialization behavior.
rec_guard[RecursionState](../../recursion/guard/recursionstate.md?sid=recursion_guard_recursionstate)The state used to track and prevent infinite recursion during nested object serialization.
check[SerCheck](sercheck.md?sid=serializers_extra_sercheck)The validation check level to apply during the serialization process.
modelPyAnyThe Python object instance currently being serialized.
field_namePyStringThe name of the specific field currently being processed.
serialize_unknownboolWhether to allow and serialize fields that are not explicitly defined in the model schema.
fallbackPyAnyA Python object or callable to use when standard serialization fails for a given value.
serialize_as_anyboolWhether to serialize the object based on its runtime type rather than its declared type.
polymorphic_serializationboolWhether to enable specialized serialization for polymorphic types.
contextPyAnyAn arbitrary Python object passed through the serialization process for use in custom handlers.
includePyAnyA set of fields or patterns specifying which attributes should be included in the output.
excludePyAnyA set of fields or patterns specifying which attributes should be omitted from the output.

Constructor

Signature

def ExtraOwned()