We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When using the Metadata keyword`, the value passed may be null. When null is passed an exception is raised.
Metadata
To Reproduce
Steps to reproduce the behaviour.
Document 'Example' { Metadata $Null }
Expected behaviour
Metadata should gracefully handle null data by not adding any metadata and supressing the exception by default.
Error output
Invoke-PSDocument : Cannot bind argument to parameter 'Body' because it is null. At line:1 char:18 + ... s.Info | %{ Invoke-PSDocument -Path .\RuleHelp.Doc.ps1 -OutputPath .\ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Write-Error], InvokeDocumentException + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Metadata,Invoke-PSDocument
Module in use and version:
The text was updated successfully, but these errors were encountered:
Fix handling of null metadata #60 #63
8b35cf2
Fix handling of null metadata #60 #63 (#65)
dc71f17
Successfully merging a pull request may close this issue.
Describe the bug
When using the
Metadata
keyword`, the value passed may be null. When null is passed an exception is raised.To Reproduce
Steps to reproduce the behaviour.
Expected behaviour
Metadata should gracefully handle null data by not adding any metadata and supressing the exception by default.
Error output
Module in use and version:
The text was updated successfully, but these errors were encountered: