Skip to content

Generate nested PowerShell class property schemas with cycle-safe references #1813

Open

Description

Summary of the new feature / enhancement

Follow-up to #1775: module-defined class properties are recognized as objects, but their nested members are not constrained. Generate nested schemas so DSC and authoring tools can validate embedded resource data.

Proposed technical implementation details (optional)

Generate reusable $defs and $ref entries for class types, with cycle detection for recursive classes and consistent inherited-member handling in both adapters. Preserve explicit nullability and array item constraints. Determine which nested members are configurable rather than assuming every nested member has a DscProperty attribute. Extend type resolution to classes and enums declared in other module files or exposed by .NET where metadata is available; unknown types must remain explicitly documented. Cover nested objects, arrays, inheritance, and recursive definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions