Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot generate Wiki for inherited properties in class-based resource if class inherit more than once #116

Open
johlju opened this issue Apr 12, 2022 · 1 comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@johlju
Copy link
Member

johlju commented Apr 12, 2022

Details of the scenario you tried and the problem that is occurring

Cannot generate the properties for the wiki when inherits more than once. See DnsRecordNsScoped, this one inherits from DnsRecordNs, which inherits from DnsRecordBase and then inherits from DnsBaseProperties. It only get the properties from DnsRecordNsScoped and DnsRecordNs, but missing properties from DnsRecordBase and DnsBaseProperties.

Steps to reproduce the problem

Build the repo DnsServerDsc

Expected behavior

Should output all inherited properties.

Current behavior

Missing properties.

Suggested solution to the issue

Loop through all parent classes.

The operating system the target node is running

n/a

Version and build of PowerShell the target node is running

n/a

Version of the module that was used

0.10.3

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Apr 12, 2022
@gaelcolas
Copy link
Member

as per #126 if you "import" the class with using module ModuleName, you can do this:

[MyTest].GetProperties().Name 

Basically listing all properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants