Generate nested PowerShell class property schemas with cycle-safe references

Offen
#1,813 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
12/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
json, powershell, rust
Bereich
tooling

Rechercherichtung

This is design work spanning both schema adapters, type resolution for module-defined and .NET types, and cycle detection for recursive classes, so it is not a first-timer task. Start by reading the follow-up context in #1775 and the existing class-property schema handling in the PowerShell adapter. Done would mean a settled design for $defs/$ref generation, agreed handling of inheritance and unknown types, and tests for nested, array, inherited and recursive cases.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Issue-Enhancement Needs Triage
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.

Vorherrschende Sprache
Rust
Sterne
545
Forks
82
Ø Merge
4 T. 16 Std.
Gemergte PRs (30 T.)
21

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PowerShell/DSC

Alle Issues in PowerShell/DSC

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.