PowerShell / PowerShell/DSC

PS Adapter implementedAs property

Open
#805 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Need-Review
Dominant language
Rust
Stars
523
Forks
75
Avg merge
3d 16h
Merged PRs (30d)
24

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Summary

The implementedAs property for PS Adapter types is set to a value of 1 which doesn't indicate what it means. The property seems to be an enum, maybe it is not being serialized properly.

Running steps to reproduce on the other built-in command based resources don't have a value set for implementedAs.

https://github.com/PowerShell/DSC/blob/ea2d0f3872f4d45e4abdca3443431918a0dbae62/dsc_lib/src/dscresources/dscresource.rs#L71-L75

Steps to reproduce
dsc resource list --adapter Microsoft.DSC/PowerShell |
ConvertFrom-Json |
Select-Object -Property type, implementedAs
Expected behavior
Descriptive value
Actual behavior
Numeric value `1` which does not indicate what its supposed to mean
Error details

Environment data
7.6-preview4
Version

3.1-preview5

Visuals

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with dsc_lib/src/dscresources/dscresource.rs around lines 71-75 and inspect how implementedAs is represented and serialized for PS Adapter types. Reproduce with the provided dsc resource list command and compare its output with other built-in command-based resources. Done means the property reports a descriptive value rather than numeric 1.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.