Skip to content

Provide a reusable fail-soft recursive validator skeleton for generator output #67

Description

@OmarAlJarrah

Problem

Spec/schema validators want a consistent fail-soft shape (collect errors with a path prefix rather than throwing on the first).

Proposed change

Provide a ~15-line recursive validator idiom (one-shot recursion guard + path-prefixed error list + early-return verify helper), parameterised over our own tree type. Use FQN/deterministic names for definitions to avoid simple-name collisions.

Acceptance

  • Validator skeleton
  • Deterministic definition names

Priority: low · Effort: small

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegenfuture KotlinPoet codegenenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions