Skip to content

Check every default function in shapes - #458

Merged
mkeeter merged 1 commit into
mainfrom
shape-default-check
Aug 16, 2026
Merged

Check every default function in shapes#458
mkeeter merged 1 commit into
mainfrom
shape-default-check

Conversation

@mkeeter

@mkeeter mkeeter commented Aug 16, 2026

Copy link
Copy Markdown
Owner

It turns out that default functions are checked at runtime, instead of compile time.
facet-rs/facet#2645

This PR adds a test / CI check so that we don't mess things up.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds CI validation that every shape’s custom Facet default function produces the expected field type.

Changes:

  • Resolve each field’s runtime type tag.
  • Execute custom defaults and add field context when validation panics.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mkeeter
mkeeter merged commit cebf309 into main Aug 16, 2026
15 checks passed
@mkeeter
mkeeter deleted the shape-default-check branch August 16, 2026 23:25
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.

2 participants