< Back

Assert-ParseableJson

Mon Jan 13, 2020 4:22 am

NAME Assert-ParseableJson



SYNOPSIS

Assert whether the configs in Container are all valid JSON





SYNTAX

Assert-ParseableJson [-Container] <String> [<CommonParameters>]





DESCRIPTION

Reads each file in Container and throws an error if any cannot be parsed as JSON





PARAMETERS

-Container <String>

Path to the folder containing the configs



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Call this function in a PR build to ensure your configs in Container are all valid





RELATED LINKS