#513 — [Bug]:User creation fails due to assigned_merchant_ids validation error

Repo: Twill-AI/facade State: closed | Status: done Assignee: meliascosta, sparsh-twillpayments

Created: 2025-08-22 · Updated: 2025-09-15

Description

Steps to reproduce

While creating a new user, the API returns a ValidationError because the field assigned_merchant_ids is being passed as null (None) instead of a valid list.

Expected behavior

User should be created successfully.

Actual behavior

{ “type”: “ValidationError”, “message”: “1 validation error for UserPersisted\nassigned_merchant_ids\n Input should be a valid list [type=list_type, input_value=None, input_type=NoneType]\n For further information visit https://errors.pydantic.dev/2.11/v/list_type” }

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets