Skip to content

"many" argument of serialization functions seems redundant and adverse #35

@LeafyLappa

Description

@LeafyLappa

BaseResource methods serialize and serialize_related have this argument "many" with the default value of False, making it possible to break the JSON:API specification (e.g. if you serialize one object as collection) without any apparent benefit.

Perhaps those functions could contain logic to determine whether data passed to them is iterable, treating strings and such as single objects of course.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions