8000 Add an AOT-safe data annotation behavior by kzu · Pull Request #290 · devlooped/stunts · GitHub
[go: up one dir, main page]

Skip to content

Add an AOT-safe data annotation behavior - #290

Merged
kzu merged 1 commit into
mainfrom
dev/validation
Oct 10, 2026
Merged

kzu merged 1 commit into
mainfrom
dev/validation

Conversation

@kzu
@kzu kzu commented Oct 10, 2026 •
Copy link
Copy Markdown
Member

Summary

  • DataAnnotationsBehavior rejects a call when a built-in data annotation fails, before the rest of the pipeline runs.
  • The checks and source generator come from NativeValidation 0.1.0. Stunts.Extensions.targets adds NativeValidatorAnalyzer so the generator runs in the consuming compilation.
  • StuntGeneratorAttribute derives from ValidationAttribute, so a generic [StuntGenerator] method registers the closed types its call sites name.

Test plan

  • Scenarios/DataAnnotationsBehavior.cs against NativeValidation 0.1.0

@kzu
kzu force-pushed the dev/validation branch 2 times, most recently from 9553c71 to c23be6c Compare October 10, 2026 22:42
@kzu kzu added the enhancement New feature or request label Oct 10, 2026
@kzu
kzu enabled auto-merge (rebase) October 10, 2026 22:48
@kzu
kzu merged commit 06335a3 into main Oct 10, 2026
@kzu
kzu deleted the dev/validation branch October 10, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0