Skip to content

feat: add AOT-compatible JSON serialization and IParsable to Id/Id<T>#64

Merged
OliverVea merged 1 commit into
masterfrom
feat/id-aot-json-serialization
Mar 29, 2026
Merged

feat: add AOT-compatible JSON serialization and IParsable to Id/Id<T>#64
OliverVea merged 1 commit into
masterfrom
feat/id-aot-json-serialization

Conversation

@OliverVea
Copy link
Copy Markdown
Owner

Summary

  • Add IParsable<TSelf> to Id and Id<T> for ASP.NET minimal API route/query parameter binding
  • Add AOT-safe JsonConverter implementations that serialize both types as bare GUID strings
  • Mark Olve.Utilities as IsAotCompatible

Closes #63

Test plan

  • JSON round-trip tests for Id and Id<T> (reflection and source-generated AOT context)
  • IParsable contract tests (valid, invalid, null inputs)
  • All 179 tests pass with zero warnings

🤖 Generated with Claude Code

Closes #63

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@OliverVea OliverVea merged commit 19a6469 into master Mar 29, 2026
12 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.

Id<T> should support AOT and JSON serialization

1 participant