Skip to content

Validate genre names against HasMaxLength(100); return 400 on >100-char genre (currently 500 on PG) #176

Description

@mforce

Follow-up from @codex P2 on PR #173 (thread 3847543484) — genre normalization passes names >100 chars unchanged, but
CollectifyDbContext configures Genre.Name with HasMaxLength(100). PostgreSQL rejects the write at SaveChangesAsync → 500;
SQLite accepts data violating the model constraint. Fix: validate normalized genre names in GenreResolver and return 400
before creating Genre rows (do the same for create/update/bulk paths). Not a blocker for the merged PR #173; fast-follow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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