Skip to content

fix: accept MFA tuple in css_overrides config schema#145

Merged
tfwright merged 1 commit into
mainfrom
fix/css-overrides-mfa-schema
May 14, 2026
Merged

fix: accept MFA tuple in css_overrides config schema#145
tfwright merged 1 commit into
mainfrom
fix/css-overrides-mfa-schema

Conversation

@tfwright
Copy link
Copy Markdown
Owner

@tfwright tfwright commented May 14, 2026

Summary

The :css_overrides schema in LiveAdmin.Application validated type: :string, so the app crashed at boot when a caller supplied the {m, f, []} form — even though LiveAdmin.View.render_css/1 already pattern-matched on that form.

Widens the schema to {:or, [:string, {:tuple, [:atom, :atom, {:list, :any}]}]} so the schema matches the runtime.

Closes #140

Test plan

  • docker compose run app mix test — 35 tests pass

The css_overrides schema rejected the {m, f, []} tuple form even
though render_css/1 already branched on it, preventing callers from
generating CSS dynamically per-render.

Closes #140
@tfwright tfwright force-pushed the fix/css-overrides-mfa-schema branch from 94c325b to 3d6dbf8 Compare May 14, 2026 22:14
@tfwright tfwright merged commit be79f2e into main May 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

css_overrides schema rejects MFA tuple accepted by render_css/1

1 participant