Badgerati / Pode

Pode is a Cross-Platform PowerShell web framework for creating REST APIs, Web Sites, and TCP/SMTP servers
https://badgerati.github.io/Pode
MIT License
830 stars 92 forks source link

Support passing Arrays to Functions Using Piping #1344

Open mdaneri opened 2 months ago

mdaneri commented 2 months ago

Description

This feature enhances the Pode module by enabling full support for passing arrays to functions using the pipeline. The update ensures that the specified functions can correctly handle multiple input objects when piped as arrays, improving flexibility and usability in scripting and automation.

Impacted Functions:

Key Changes:

This update will streamline the process of handling multiple objects in a single pipeline, making it easier to work with collections of items in Pode scripts.

This update address #1343

mdaneri commented 2 months ago

Lock-PodeObject Enter-PodeLockable I'm not sure if are fixable passing an array the array is transformed to a different object

Maybe is better to set ValueFromPipeline to $false

mdaneri commented 1 month ago

@Badgerati, I am done with this. Please take a look at it when you have time