aot-json-serializer-context
CommunityCreate AOT JsonSerializerContext for Refitter.
Authorchristianhelle
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Generate AOT JsonSerializerContext for generated contracts without regex-based type discovery, ensuring correct serialization contexts.
Core Features & Use Cases
- Roslyn-based contract parsing to accurately collect types and namespaces.
- Correct handling of nested types and namespace paths to emit Outer.Inner structures.
- Register only closed generic usages to avoid open generic registrations.
- Emit [JsonSerializable(typeof(...))] attributes on the proper partial context class within the contracts namespace.
- Support both single-file and multi-file generation paths for the serializer context.
- Applicable to Refitter-generated contracts to improve serialization performance and type safety.
Quick Start
Generate the AOT serializer context for your generated contracts using Roslyn and place it in the correct namespace.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: aot-json-serializer-context Download link: https://github.com/christianhelle/refitter/archive/main.zip#aot-json-serializer-context Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.