You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Fix schema filtering, external ApplyDefaults, and primitive component aliases
Fixes: #3
1. Schema filtering by tags/operation IDs: GatherSchemas now accepts
OutputOptions and skips operations excluded by tag or operation ID
filters. A new prune-unreferenced-schemas option removes component
schemas that are not ref'd by any gathered schema.
2. ApplyDefaults on external types: External ref fields now use
reflection (reflect.ValueOf().MethodByName) instead of direct method
calls, since we cannot know at codegen time whether the external type
implements ApplyDefaults.
3. Primitive component schema aliases: Component schemas always generate
Go type aliases (e.g., type Name = string), even for primitive types.
This ensures external packages can reference them by name.
Also adds doc.go with go:generate directives to external_ref test
packages and extends the test specs with cross-package reference
scenarios (Employee composed of external Name/Address/Occupation fields).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments