Skip to content

Feature Request: Native support for YAML #16819

Closed

Description

Summary of the new feature / enhancement

My personal use case is configuration files, but would be perfect to ingest any yaml structure without extra modules with stale development and with official support for PS +7

In my opinion, Yaml is getting mature enough to bring it natively to Powershell without hassle around JSON

PS: Thanks for pushing hard forward and making Powershell so good nowadays ! ;)

Proposed technical implementation details (optional)

No response

Activity

  1. ghost added
    Issue-Enhancement
    on Jan 30, 2022
  2. ghost added
    Needs-Triage
    on Jan 30, 2022
  3. ghost changed the title [-]Native support for YAML[/-] [+]Feature Request: Native support for YAML[/+] on Jan 30, 2022
  4. jhoneill commented on Jan 31, 2022

    @jhoneill

    There are multiple issues for this already:

    A couple of points before this one is marked as closed,

    What would people like the PowerShell team to do ?

    1. Find a way to ship the community module with PowerShell 7.x ? (Possibly fork the code and maintain it, but it means taking a dependency on a third party YAML library for .NET with which comes with that)
    2. Build a "clean clone" version of the community module? i.e. the same commands work, the same YAML library is doing the work under the surface (same dependency issues) but the module code comes from the team
    3. Lobby the powers-that-be on the .NET team to add YAML support (much as Json support was added after years of relying on 3rd party libraries), and when they do add cmdlets to leverage it
    4. Write their own parser (which requires significant effort, and would likely be dropped if/when YAML support goes into .NET)

    None of these would allow PowerShell to do something it can't do now using a 3rd party module, or to do it very much better, than the third party module ; they address the problem that some people using PowerShell want all modules they use to be first-party ones; I have worked for customers who make the processes to adopt 3rd party modules an onerous one so I understand that this can be for good reason. If the PowerShell team took a dependency on YamlDotNet, things could be made easier for those customers. But it is easy to see this could be repeated for many, many things - more than the team could ever have capacity for. That's why the default position is these additions should come from the community - people can make a case that X should not follow that default, but to date the case made for YAML hasn't convinced the people it needs to.

    Powershell module for serializing and deserializing YAML
    GitHub
    YamlDotNet is a .NET library for YAML. Contribute to aaubry/YamlDotNet development by creating an account on GitHub.
  5. vexx32 commented on Jan 31, 2022

    @vexx32
    Collaborator

    This comment in one of the linked issues above discusses the reasoning / stance of the pwsh team. As far as I know it hasn't changed much. 🙂

  6. removed
    Needs-Triage
    on Jan 31, 2022
  7. added
    WG-Cmdlets
    on Jan 31, 2022
  8. jhoneill commented on Feb 1, 2022

    @jhoneill

    Rain Sallow (/u/ta11ow) (@vexx32) Indeed. I'm remined of

    "I eventually had to go down to the cellar... with a torch." (flashlight)
    'The lights had probably gone.’
    "So had the stairs."
    'You found the notice didn’t you?'
    "Yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying 'Beware of The Leopard'."

    Instead of having the teams position in a comment to a closed issue on github it might be helpful to give it a bit more, you know, prominence :-)

  9. ghost closed this as completedon Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-DuplicateWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions