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 }}
Repository navigation
NestedTypeDto: model and generate fields and constructors for nested types #487
NestedTypeDto in the codegen model currently only carries methods (plus type name, kind, visibility, generic parameters, javadoc and annotations). Fields and constructors are not modeled at all, so nested types generated by the backends can never declare them.
This surfaced during generation-target validation (#465 / #479): the validator recurses into nested types for method validation, but there is nothing to validate for fields and constructors because the model does not have them. Any DTO that conceptually needs a nested type with state or construction logic cannot express it today.
Proposal
Extend NestedTypeDto (and its builder) with fields and constructors, mirroring what GenerationTargetClassDto already models
Extend the backends (Roaster first) to render them
Extend GenerationTargetValidator recursion: validateFields/validateConstructors already take plain lists, so wiring them into nested-type validation is trivial once the model carries the data
Activity
feat: validate nested-type members and interface-kind restrictions
feat: model and render fields and constructors in nested types (#487) (…
feat: validate nested-type members and interface-kind restrictions
feat: validate generation targets before rendering (#465) (#479)