Skip to content

username is nullable in OpenAPI spec #645

@jennydaman

Description

@jennydaman

username = serializers.CharField(min_length=4, max_length=32, required=False,

One serializer is reused for different API operations, reducing static type safety. E.g. response from api/v1/users/{id}/ will always contain username however in the OpenAPI spec, the username field is not required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions