Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-PodeOAComponentSchema display order #1135

Open
LLIT opened this issue Aug 30, 2023 · 1 comment
Open

Add-PodeOAComponentSchema display order #1135

LLIT opened this issue Aug 30, 2023 · 1 comment

Comments

@LLIT
Copy link

LLIT commented Aug 30, 2023

Question

My OCD is killing me :-)

Is there any way of sorting the output?

Defined like this:
Add-PodeOAComponentSchema -Name 'WebLink' -Schema (
New-PodeOAObjectProperty -Properties @(
(New-PodeOAStringProperty -Name 'Url'),
(New-PodeOAStringProperty -Name 'Header'),
(New-PodeOAStringProperty -Name 'Text'),
(New-PodeOAStringProperty -Name 'Target')
)
)

Showed like this:
WebLink
Target | string
Url | string
Header | string
Text | string
 

@mdaneri
Copy link
Contributor

mdaneri commented Sep 8, 2023

the hashtable is not ordered. I tried to fix it but I had to rollback my changes.
the function Remove-PodeNullKeysFromHashtable doesn't like an ordered hashtable
I'm working to remove the need forthis function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants