-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
Doc-ImpactIssue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeed-ReviewResolution-FixedThe issue is fixedThe issue is fixed
Description
Summary of the new feature / enhancement
With the implementation of #309 in #314, users can now see which methods a resource supports when they run dsc resource list with the default view. However, if they capture the output or use an alternate format, this information is lost as it isn't part of the actual output object.
As a user and integrating engineer, I want to be able to quickly check which methods a resource supports in a script or function, so that I can make decisions about how to process that resource further.
Proposed technical implementation details (optional)
- Add the
methodsfield to theDscResourcestruct indsc_lib/src/dscresource.rsas either a vector of strings or enumerations that map to the valid methods. - Move the logic for defining the
methodsfield surfaced in the table from theListsubcommand indsc/src/subcommand.rsto theload_manifestfunction indsc_lib/src/discovery/command_discovery.rs. - Update the source schema for the output object in
schemas/src/outputs/resource/list.yamlto include themethodsproperty. - Regenerate the compiled schemas from updated source. This change does not require an update to the canonical schema URI, as it's backward compatible.
Metadata
Metadata
Assignees
Labels
Doc-ImpactIssue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaNeed-ReviewResolution-FixedThe issue is fixedThe issue is fixed