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 Position=0 to most response write functions #983

Merged
merged 1 commit into from
Jun 12, 2022
Merged

Conversation

Badgerati
Copy link
Owner

Description of the Change

Add Position = 0 to the -Value parameter of most Response Write functions, so supplying a simple value with no parameter name works.

Related Issue

Resolves #974

Examples

Write-PodeJsonResponse @{ Name = 'John' }

# as a short hand for:
Write-PodeJsonResponse -Value @{ Name = 'John' }

@Badgerati Badgerati added this to the 2.7.0 milestone Jun 8, 2022
@Badgerati Badgerati self-assigned this Jun 8, 2022
@Badgerati Badgerati merged commit 0cd1d0e into develop Jun 12, 2022
@Badgerati Badgerati deleted the Issue-974 branch June 12, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write-PodeTextResponse silently fails if the -Value parameter is not specified
1 participant