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 input schema validation for RebootPending resource #488

Merged
merged 11 commits into from
Sep 26, 2024

Conversation

anmenaga
Copy link
Contributor

PR Summary

Fix #485

When used in a configuration Microsoft.Windows/RebootPending was failing input schema validation.
This PR adds empty schema (because RebootPending resource expects no input) to resolve that issue.

@michaeltlombardi please let me know if this is not the right way to do this for resources that do not take input.

@SteveL-MSFT
Copy link
Member

@anmenaga I think the schema should also reflect the output so people can view the schema and know what to expect even if it takes no input

Copy link
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add static schema to manifest

@anmenaga
Copy link
Contributor Author

add static schema to manifest

@SteveL-MSFT
That is "schema/embedded/properties" node, right?
Updated.

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Sep 26, 2024
Merged via the queue into PowerShell:main with commit 78cb8a1 Sep 26, 2024
4 checks passed
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.

Pending reboot should have embedded schema for assertions
3 participants