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

Fix allowing no properties to resource in config #675

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

SteveL-MSFT
Copy link
Member

PR Summary

There was a bug in the code where if properties was not present (as it is optional), then the hashmap gets serialized to JSON which ends up as null value. This then is used to valdiate against the resource JSONSchema which would fail.

Fix is to handle the case where there are no properties and instead pass it as an empty string which is already handled by the code.

@SteveL-MSFT SteveL-MSFT requested a review from tgauth March 6, 2025 03:08
@SteveL-MSFT SteveL-MSFT changed the title Fix allowing no properties to resource Fix allowing no properties to resource in config Mar 6, 2025
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Mar 6, 2025
Merged via the queue into PowerShell:main with commit 9550bd8 Mar 6, 2025
4 checks passed
@SteveL-MSFT SteveL-MSFT deleted the no-properties branch March 6, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants