"""Add Members schema.""" from marshmallow import fields, Schema from marshmallow.validate import Length from users.validation.schemas.utils import Auth0Organization class AddOrganizationMembers(Schema): """Add members to an organization. Properties: brand (str) : Required. Org/brand name from Auth0. This is the name not the display name. members (List): Required. List of user ID(s) to add to the organization as members. """ brand = Auth0Organization(required=True) members = fields.List(fields.String(), required=True, validate=Length(min=1))