Skip to content

WebEvent Data HashTable is case-sensitive on PS 7.4+ #1733

Description

@erikgraa

Describe the Bug

The $WebEvent.Data HashTable appears case-insensitive, which means it's difficult to e.g. validate that a route has required input unless conceding to only accepting input with a particular case standard.

Discussed on Discord 28-29.06.26: "Seems from PS7.4 ConvertFrom-Json doesn't return a normal hashtable but now a case-sensitive ordered hashtable instead!".

A proposed solution was to maybe introduce a flag.

Steps To Reproduce

Create any PATCH/POST/PUT route and look at $WebEvent.Data

Expected Behavior

$WebEvent.Data's hashtable should be case-insensitive.

Screenshots

N/A

Platform

  • OS: Windows 11
  • Versions:
    • Pode: 2.13.4
    • PowerShell: 7.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions