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

Does not handle embedded instances correctly (subclasses) #37

Closed
johlju opened this issue Jun 27, 2020 · 0 comments · Fixed by #38
Closed

Does not handle embedded instances correctly (subclasses) #37

johlju opened this issue Jun 27, 2020 · 0 comments · Fixed by #38
Labels
bug The issue is a bug.

Comments

@johlju
Copy link
Member

johlju commented Jun 27, 2020

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

When a resource have an embedded instance subclass that subclass is added to the parameter list as if they are part of the DSC MOF class that inherits from OMI_BaseResource.

Example schema: https://github.com/dsccommunity/SqlServerDsc/blob/master/source/DSCResources/DSC_SqlDatabaseObjectPermission/DSC_SqlDatabaseObjectPermission.schema.mof

Steps to reproduce the problem

Run the doc generator on the resource DSC_SqlDatabaseObjectPermission.

Expected behavior

The subclass should be added as a separate section and have a table with the subclass parameters.

Current behavior

All parameters are listed in the same table resulting in two properties called Permissin but with different types.

https://github.com/dsccommunity/SqlServerDsc/wiki/SqlDatabaseObjectPermission

Suggested solution to the issue

See expected behavior.

The operating system the target node is running

Any

Version and build of PowerShell the target node is running

n/a

Version of the module that was used

latest

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. in progress The issue is being actively worked on by someone. and removed help wanted The issue is up for grabs for anyone in the community. labels Jun 27, 2020
@johlju johlju removed the in progress The issue is being actively worked on by someone. label Jul 16, 2021
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant