38 KiB
discussion |
---|
false |
Change log
See upgrade notes for helpful information when upgrading from previous versions.
Important notes:
- YAML resources will require an
apiVersion
from PSRule v2. #648 - Setting the default module baseline requires a module configuration from PSRule v2. #809
- Resource names have naming restrictions introduced from PSRule v2. #1012
!!! Attention PSRule v1 is a prior release. For more information see v2 release notes. Please check out our upgrade notes to get prepared for upgrading to the latest version.
v1.11.1
What's changed since v1.11.1:
- Bug fixes:
- Fixed broken documentation links. #980
v1.11.0
What's changed since v1.10.0:
- General improvements:
- Added
version
expression to check semantic version constraints. #861- See about_PSRule_Expressions for details.
- Added
hasDefault
expression to check field default value. #870- See about_PSRule_Expressions for details.
- Added
- Bug fixes:
- Fixed
GetReason()
not returning results for a failed assertion. #874
- Fixed
What's changed since pre-release v1.11.0-B2112016:
- No additional changes.
v1.11.0-B2112016 (pre-release)
What's changed since v1.10.0:
- General improvements:
- Added
version
expression to check semantic version constraints. #861- See about_PSRule_Expressions for details.
- Added
hasDefault
expression to check field default value. #870- See about_PSRule_Expressions for details.
- Added
- Bug fixes:
- Fixed
GetReason()
not returning results for a failed assertion. #874
- Fixed
v1.10.0
What's changed since v1.9.0:
- General improvements:
- Added JSON support for reading rules and selectors from pipeline. #857
- Added
HasSchema
expression to check the schema of an object. #860- See about_PSRule_Expressions for details.
- Engineering:
- Bump Microsoft.SourceLink.GitHub to 1.1.1. #856
- Bug fixes:
What's changed since pre-release v1.10.0-B2112002:
- No additional changes.
v1.10.0-B2112002 (pre-release)
What's changed since pre-release v1.10.0-B2111024:
- Bug fixes:
- Fixed module configuration is not loaded when case does not match. #864
v1.10.0-B2111024 (pre-release)
What's changed since v1.9.0:
- General improvements:
- Added JSON support for reading rules and selectors from pipeline. #857
- Added
HasSchema
expression to check the schema of an object. #860- See about_PSRule_Expressions for details.
- Engineering:
- Bump Microsoft.SourceLink.GitHub to 1.1.1. #856
- Bug fixes:
- Fixed
$Assert.HasJsonSchema
accepts empty value. #859
- Fixed
v1.9.0
What's changed since v1.8.0:
- General improvements:
- Added improvements to YAML output for
Get-PSRuleBaseline
. #829 - Added
-Initialize
convention block. #826- Use this block to perform any initialization that is required before any rules are run.
- This block is only run once instead of
-Begin
which is run once per object. - See about_PSRule_Conventions for details.
- Allow lifetime services to be used. #827
- Use
$PSRule.AddService
and$PSRule.GetService
to add a service. - Services allows a singleton instance to be used and shared across multiple rules.
- PSRule will automatically dispose the service when all rules have run.
- See about_PSRule_Variables for details.
- Use
- Added
Export-PSRuleBaseline
cmdlet to export baseline. #622 - Added JSON output format for Baseline cmdlets. #839
- Allow downstream issues to be consumed. #843
- Objects can be flagged with issues that have been generated externally.
- See about_PSRule_Assert for details.
- Migrated default baseline to module configuration. #809
- This enables configuration of the default baseline for a module with a module configuration.
- This depreciate configuring the default baseline within the module manifest.
- Modules using manifest configuration will start warning from v1.9.0.
- See about_PSRule_Options for details.
- Added JSON support to read baselines from pipeline. #845
- Added improvements to YAML output for
- Engineering:
- Bump System.Drawing.Common dependency to v6.0.0. #848
- Bug fixes:
- Fixed convention execution is out of order. #835
What's changed since pre-release v1.9.0-B2111024:
- Engineering:
- Bump Microsoft.CodeAnalysis.NetAnalyzers to v6.0.0. #851
v1.9.0-B2111024 (pre-release)
What's changed since pre-release v1.9.0-B2111009:
- General improvements:
- Allow downstream issues to be consumed. #843
- Objects can be flagged with issues that have been generated externally.
- See about_PSRule_Assert for details.
- Migrated default baseline to module configuration. #809
- This enables configuration of the default baseline for a module with a module configuration.
- This depreciate configuring the default baseline within the module manifest.
- Modules using manifest configuration will start warning from v1.9.0.
- See about_PSRule_Options for details.
- Added JSON support to read baselines from pipeline. #845
- Allow downstream issues to be consumed. #843
- Engineering:
- Bump System.Drawing.Common dependency to v6.0.0. #848
v1.9.0-B2111009 (pre-release)
What's changed since pre-release v1.9.0-B2110027:
- General improvements:
- Added JSON output format for Baseline cmdlets. #839
- Bug fixes:
- Fixed convention execution is out of order. #835
v1.9.0-B2110027 (pre-release)
What's changed since pre-release v1.9.0-B2110015:
- General improvements:
- Added
Export-PSRuleBaseline
cmdlet to export baseline. #622
- Added
v1.9.0-B2110015 (pre-release)
What's changed since v1.8.0:
- General improvements:
- Added improvements to YAML output for
Get-PSRuleBaseline
. #829 - Added
-Initialize
convention block. #826- Use this block to perform any initialization that is required before any rules are run.
- This block is only run once instead of
-Begin
which is run once per object. - See about_PSRule_Conventions for details.
- Allow lifetime services to be used. #827
- Use
$PSRule.AddService
and$PSRule.GetService
to add a service. - Services allows a singleton instance to be used and shared across multiple rules.
- PSRule will automatically dispose the service when all rules have run.
- See about_PSRule_Variables for details.
- Use
- Added improvements to YAML output for
v1.8.0
What's changed since v1.7.2:
- General improvements:
- Added YAML output format support for
Get-PSRuleBaseline
. #326 - Added YAML/JSON output format support for
Get-PSRule
. #128 - Added
Output.JsonIndent
option for JSON output format. #817 - Added assertion helpers and expressions for improving intersection checks. #795
- Added
Count
to determine of the field has a specific number of elements. - Added
SetOf
to determine if a collection is another collection. - Added
Subset
to determine if a collection is includes another collection. - See about_PSRule_Assert and about_PSRule_Expressions for details.
- Added
- Added support for conditional reason messages with
ReasonIf
. #804- See about_PSRule_Assert for details.
- Added support for
type
andname
expression properties. #810- Use
type
to compare the bound type of the current object. - Use
name
to compare the bound name of the current object. - See about_PSRule_Expressions for details.
- Use
- Added YAML output format support for
- Engineering:
- Migration of Pester v4 tests to Pester v5. #478
What's changed since pre-release v1.8.0-B2110030:
- No additional changes.
v1.8.0-B2110030 (pre-release)
What's changed since pre-release v1.8.0-B2110020:
- General improvements:
- Added
Output.JsonIndent
option for JSON output format. #817
- Added
v1.8.0-B2110020 (pre-release)
What's changed since pre-release v1.8.0-B2110006:
- General improvements:
- Added YAML/JSON output format support for
Get-PSRule
. #128
- Added YAML/JSON output format support for
- Engineering:
- Migration of Pester v4 tests to Pester v5. #478
v1.8.0-B2110006 (pre-release)
What's changed since pre-release v1.8.0-B2109022:
- General improvements:
- Added YAML output format support for
Get-PSRuleBaseline
. #326
- Added YAML output format support for
v1.8.0-B2109022 (pre-release)
What's changed since pre-release v1.8.0-B2109015:
- General improvements:
- Added support for conditional reason messages with
ReasonIf
. #804- See about_PSRule_Assert for details.
- Added support for
type
andname
expression properties. #810- Use
type
to compare the bound type of the current object. - Use
name
to compare the bound name of the current object. - See about_PSRule_Expressions for details.
- Use
- Added support for conditional reason messages with
v1.8.0-B2109015 (pre-release)
What's changed since v1.7.2:
- General improvements:
- Added assertion helpers and expressions for improving intersection checks. #795
- Added
Count
to determine of the field has a specific number of elements. - Added
SetOf
to determine if a collection is another collection. - Added
Subset
to determine if a collection is includes another collection. - See about_PSRule_Assert and about_PSRule_Expressions for details.
- Added
- Added assertion helpers and expressions for improving intersection checks. #795
v1.7.2
What's changed since v1.7.1:
- Bug fixes:
- Fixed
Get-PSRuleBaseline
does not return any results from module. #801
- Fixed
v1.7.1
What's changed since v1.7.0:
- Bug fixes:
- Fixed ResourceTags does not contain a method named ToHashtable. #798
v1.7.0
What's changed since v1.6.0:
- Engine features:
- Added support for generating badges from rule results. #623
- Standard or custom badges can be generated using a convention and the badge API.
- See about_PSRule_Badges for details.
- Added support for generating badges from rule results. #623
- General improvements:
- Rule results now include a run ID or each run. #774
- Run ID is returned in
Assert-PSRule
output at the end of each run by default. - By default a unique
runId
is generated when the rule is run. - The
Output.Footer
option was added to configure the output footer. - See about_PSRule_Options for details.
- Run ID is returned in
- Automatically exclude common repository files from input files. #721
- Added
Input.IgnoreRepositoryCommon
option to change default behavior. - See about_PSRule_Options for details.
- Added
- Added aggregation assertion methods for
AnyOf
andAllOf
. #776- See about_PSRule_Assert for details.
- Allow baselines to include local rules. #756
- The
Rule.IncludeLocal
option was automatically include local/ standalone rules not in a module. - This option is useful when you want to include local rules not included in a baseline.
- See about_PSRule_Options for details.
- The
- Rule results now include a run ID or each run. #774
- Bug fixes:
- Fixed configuration array deserializes as dictionary from YAML options. #779
What's changed since pre-release v1.7.0-B2109002:
- No additional changes.
v1.7.0-B2109002 (pre-release)
What's changed since pre-release v1.7.0-B2108032:
- General improvements:
- Allow baselines to include local rules. #756
- The
Rule.IncludeLocal
option was automatically include local/ standalone rules not in a module. - This option is useful when you want to include local rules not included in a baseline.
- See about_PSRule_Options for details.
- The
- Allow baselines to include local rules. #756
v1.7.0-B2108032 (pre-release)
What's changed since pre-release v1.7.0-B2108021:
- Engine features:
- Added support for generating badges from rule results. #623
- Standard or custom badges can be generated using a convention and the badge API.
- See about_PSRule_Badges for details.
- Added support for generating badges from rule results. #623
- General improvements:
- Rule results now include a run ID or each run. #774
- Run ID is returned in
Assert-PSRule
output at the end of each run by default. - By default a unique
runId
is generated when the rule is run. - The
Output.Footer
option was added to configure the output footer. - See about_PSRule_Options for details.
- Run ID is returned in
- Rule results now include a run ID or each run. #774
v1.7.0-B2108021 (pre-release)
What's changed since pre-release v1.7.0-B2108016:
- Bug fixes:
- Fixed configuration array deserializes as dictionary from YAML options. #779
v1.7.0-B2108016 (pre-release)
What's changed since v1.6.0:
- General improvements:
- Automatically exclude common repository files from input files. #721
- Added
Input.IgnoreRepositoryCommon
option to change default behavior. - See about_PSRule_Options for details.
- Added
- Added aggregation assertion methods for
AnyOf
andAllOf
. #776- See about_PSRule_Assert for details.
- Automatically exclude common repository files from input files. #721
v1.6.1
What's changed since v1.6.0:
- Bug fixes:
- Fixed configuration array deserializes as dictionary from YAML options. #779
v1.6.0
What's changed since v1.5.0:
- Engine features:
- Added support for YAML rules. #603
- YAML rules evaluate an expression tree and return a result for each object.
- YAML provides an additional option for defining rules in addition to PowerShell script rules.
- Type and selector pre-conditions are supported.
- See about_PSRule_Rules for details.
- Added support for YAML rules. #603
- General improvements:
- Added support for object source location in validation. #757
- Default rule source location
.ps-rule/
is automatically included. #742- Added
Include.Path
andInclude.Module
options to automatically include rule sources. - See about_PSRule_Options for details.
- Added
- Bug fixes:
- Fixed target binding across multiple scopes. #762
What's changed since pre-release v1.6.0-B2108009:
- No additional changes.
v1.6.0-B2108009 (pre-release)
What's changed since pre-release v1.6.0-B2108003:
- Engine features:
- Added support for YAML rules. #603
- YAML rules evaluate an expression tree and return a result for each object.
- YAML provides an additional option for defining rules in addition to PowerShell script rules.
- Type and selector pre-conditions are supported.
- See about_PSRule_Rules for details.
- Added support for YAML rules. #603
v1.6.0-B2108003 (pre-release)
What's changed since pre-release v1.6.0-B2107008:
- Bug fixes:
- Fixed target binding across multiple scopes. #762
v1.6.0-B2107008 (pre-release)
What's changed since v1.5.0:
- General improvements:
- Added support for object source location in validation. #757
- Default rule source location
.ps-rule/
is automatically included. #742- Added
Include.Path
andInclude.Module
options to automatically include rule sources. - See about_PSRule_Options for details.
- Added
v1.5.0
What's changed since v1.4.0:
- General improvements:
- Added string selector conditions. #747
- Use
startWith
,contains
, andendsWith
to check for a sub-string. - Use
isString
,isLower
, andisUpper
to check for string type and casing. - See about_PSRule_Selectors for details.
- Use
- Added string selector conditions. #747
- Engineering:
- Bump YamlDotNet dependency to 11.2.1. #740
- Bug fixes:
What's changed since pre-release v1.5.0-B2107009:
- No additional changes.
v1.5.0-B2107009 (pre-release)
What's changed since pre-release v1.5.0-B2106006:
- General improvements:
- Added string selector conditions. #747
- Use
startWith
,contains
, andendsWith
to check for a sub-string. - Use
isString
,isLower
, andisUpper
to check for string type and casing. - See about_PSRule_Selectors for details.
- Use
- Added string selector conditions. #747
- Engineering:
- Bump YamlDotNet dependency to 11.2.1. #740
- Bug fixes:
v1.5.0-B2106006 (pre-release)
What's changed since v1.4.0:
- Engineering:
- Bump YamlDotNet dependency to 11.2.0. #736
v1.4.0
What's changed since v1.3.0:
- General improvements:
- PSRule banner can be configured in output when using
Assert-PSRule
. #708 - Input source location of objects are included in results.
- Assert output improvements:
- Added support for Visual Studio Code with
VisualStudioCode
style. #731- Updated output format provides support for problem matchers in task output.
- Automatically detect output style from environment variables. #732
- Assert-PSRule now defaults to
Detect
instead ofClient
.
- Assert-PSRule now defaults to
- See about_PSRule_Options for details.
- Added support for Visual Studio Code with
- Improved support for version constraints by:
- Constraints can include prerelease versions of other matching versions. #714
- Constraints support using a
@prerelease
or@pre
to include prerelease versions. #717 - Constraint sets allow multiple constraints to be joined together. #715
- See about_PSRule_Assert for details.
- PSRule banner can be configured in output when using
- Bug fixes:
What's changed since pre-release v1.4.0-B2105041:
- No additional changes.
v1.4.0-B2105041 (pre-release)
What's changed since pre-release v1.4.0-B2105032:
- General improvements:
- Source location of objects from the pipeline are read from properties. #729
- Assert output improvements:
- Added support for Visual Studio Code with
VisualStudioCode
style. #731- Updated output format provides support for problem matchers in task output.
- Automatically detect output style from environment variables. #732
- Assert-PSRule now defaults to
Detect
instead ofClient
.
- Assert-PSRule now defaults to
- See about_PSRule_Options for details.
- Added support for Visual Studio Code with
v1.4.0-B2105032 (pre-release)
What's changed since pre-release v1.4.0-B2105019:
- Bug fixes:
- Fixed null reference in convention for nested exceptions. #725
v1.4.0-B2105019 (pre-release)
What's changed since pre-release v1.4.0-B2105004:
- General improvements:
- Source location of objects are included in results.
- Source location of objects from JSON and YAML input files are read automatically. #624
- Improved support for version constraints by:
- Constraints can include prerelease versions of other matching versions. #714
- Constraints support using a
@prerelease
or@pre
to include prerelease versions. #717 - Constraint sets allow multiple constraints to be joined together. #715
- See about_PSRule_Assert for details.
- Source location of objects are included in results.
- Bug fixes:
- Fixed prerelease constraint handling for prerelease versions. #712
v1.4.0-B2105004 (pre-release)
What's changed since v1.3.0:
- General improvements:
- PSRule banner can be configured in output when using
Assert-PSRule
. #708
- PSRule banner can be configured in output when using
v1.3.0
What's changed since v1.2.0:
- Engine features:
- Options can be configured with environment variables. #691
- See about_PSRule_Options for details.
- Options can be configured with environment variables. #691
- General improvements:
- Exclude
.git
sub-directory by default for recursive scans. #697- Added
Input.IgnoreGitPath
option to configure inclusion of.git
path. - See about_PSRule_Options for details.
- Added
- Added file path assertion helpers. #679
- Added
WithinPath
to check the file path field is within a specified path. - Added
NotWithinPath
to check the file path field is not within a specified path - See about_PSRule_Assert for details.
- Added
- Added DateTime type assertion helper. #680
- Added
IsDateTime
to check of object field is[DateTime]
. - See about_PSRule_Assert for details.
- Added
- Improved numeric comparison assertion helpers to compare
[DateTime]
fields. #685Less
,LessOrEqual
,Greater
, andGreaterOrEqual
compare the number of days from the current time.- See about_PSRule_Assert for details.
- Improved handling of field names for objects implementing
IList
,IEnumerable
, and index properties. #692
- Exclude
- Engineering:
- Bump YamlDotNet dependency to 11.1.1. #690
- Bug fixes:
- Fixed expected DocumentEnd got SequenceEnd. #698
What's changed since pre-release v1.3.0-B2105004:
- No additional changes.
v1.3.0-B2105004 (pre-release)
What's changed since pre-release v1.3.0-B2104042:
- Engine features:
- Options can be configured with environment variables. #691
- See about_PSRule_Options for details.
- Options can be configured with environment variables. #691
- General improvements:
- Exclude
.git
sub-directory by default for recursive scans. #697- Added
Input.IgnoreGitPath
option to configure inclusion of.git
path. - See about_PSRule_Options for details.
- Added
- Exclude
v1.3.0-B2104042 (pre-release)
What's changed since pre-release v1.3.0-B2104030:
- Bug fixes:
- Fixed expected DocumentEnd got SequenceEnd. #698
v1.3.0-B2104030 (pre-release)
What's changed since pre-release v1.3.0-B2104021:
- General improvements:
- Improved handling of field names for objects implementing
IList
,IEnumerable
, and index properties. #692
- Improved handling of field names for objects implementing
- Engineering:
- Bump YamlDotNet dependency to 11.1.1. #690
v1.3.0-B2104021 (pre-release)
What's changed since v1.2.0:
- General improvements:
- Added file path assertion helpers. #679
- Added
WithinPath
to check the file path field is within a specified path. - Added
NotWithinPath
to check the file path field is not within a specified path - See about_PSRule_Assert for details.
- Added
- Added DateTime type assertion helper. #680
- Added
IsDateTime
to check of object field is[DateTime]
. - See about_PSRule_Assert for details.
- Added
- Improved numeric comparison assertion helpers to compare
[DateTime]
fields. #685Less
,LessOrEqual
,Greater
, andGreaterOrEqual
compare the number of days from the current time.- See about_PSRule_Assert for details.
- Added file path assertion helpers. #679
v1.2.0
What's changed since v1.1.0:
- Engine features:
- Added support for extensibility with conventions. #650
- Conventions provide an extensibility point within PSRule to execute actions within the pipeline.
- A convention can expose
Begin
,Process
, andEnd
blocks. - In additional to within rules
$PSRule.Data
can be accessed fromBegin
andProcess
blocks. - See about_PSRule_Conventions for details.
- Added support for object expansion with conventions. #661
- Use the
$PSRule.Import
method to import child source objects into the pipeline. - See about_PSRule_Variables for details.
- Use the
- Added support for complex pre-conditions with selectors. #649
- See about_PSRule_Selectors for details.
- Added support for extensibility with conventions. #650
- General improvements:
- Added support for preferring automatic binding over custom binding configurations. #670
- Added the
Binding.PreferTargetInfo
option to prefer target info specified by the object. - See about_PSRule_Options for details.
- Added the
- Added strong apiVersion to resource types. #647
- Resource schemas now support an
apiVersion
field. - The
apiVersion
field is optional but recommended. - Resources without a
apiVersion
field will not be supported from PSRule v2. - Added warning to flag baseline without
apiVersion
set.
- Resource schemas now support an
- Added support for detecting files headers from additional file extensions using
FileHeader
. #664- Added
.bicep
,.csx
,.jsx
,.groovy
,.java
,.json
,.jsonc
,.scala
,.rb
,.bat
,.cmd
. - Added support for
Jenkinsfile
andDockerfile
without an extension. - See about_PSRule_Assert for details.
- Added
- Added support for automatic type binding with files that do not have a file extension. #665
- Added support for preferring automatic binding over custom binding configurations. #670
- Bug fixes:
- Fixed dependent rule execution is skipped for consequent input objects. #657
What's changed since pre-release v1.2.0-B2103043:
- No additional changes.
v1.2.0-B2103043 (pre-release)
What's changed since pre-release v1.2.0-B2103031:
- Engine features:
- Added support for complex pre-conditions with selectors. #649
- General improvements:
- Added support for preferring automatic binding over custom binding configurations. #670
- Added the
Binding.PreferTargetInfo
option to prefer target info specified by the object. - See about_PSRule_Options for details.
- Added the
- Added strong apiVersion to resource types. #647
- Resource schemas now support an
apiVersion
field. - The
apiVersion
field is optional but recommended. - Resources without a
apiVersion
field will not be supported from PSRule v2. - Added warning to flag baseline without
apiVersion
set.
- Resource schemas now support an
- Added support for preferring automatic binding over custom binding configurations. #670
v1.2.0-B2103031 (pre-release)
What's changed since pre-release v1.2.0-B2103023:
- General improvements:
- Added support for detecting files headers from additional file extensions. #664
- Added
.bicep
,.csx
,.jsx
,.groovy
,.java
,.json
,.jsonc
,.scala
,.rb
,.bat
,.cmd
. - Added support for
Jenkinsfile
andDockerfile
without an extension. - See about_PSRule_Assert for details.
- Added
- Added support for automatic type binding with files that do not have a file extension. #665
- Added support for detecting files headers from additional file extensions. #664
v1.2.0-B2103023 (pre-release)
What's changed since pre-release v1.2.0-B2103016:
- Engine features:
- Added support for object expansion with conventions. #661
- Use the
$PSRule.Import
method to import child source objects into the pipeline. - See about_PSRule_Variables for details.
- Use the
- Added support for object expansion with conventions. #661
v1.2.0-B2103016 (pre-release)
What's changed since pre-release v1.2.0-B2103008:
- Bug fixes:
- Fixed dependent rule execution is skipped for consequent input objects. #657
v1.2.0-B2103008 (pre-release)
What's changed since v1.1.0:
- Engine features:
- Added support for extensibility with conventions. #650
- Conventions provide an extensibility point within PSRule to execute actions within the pipeline.
- A convention can expose
Begin
,Process
, andEnd
blocks. - In additional to within rules
$PSRule.Data
can be accessed fromBegin
andProcess
blocks. - See about_PSRule_Conventions for details.
- Added support for extensibility with conventions. #650
v1.1.0
What's changed since v1.0.3:
- Engine features:
- Added assertion helpers. #640
- Added
NotHasField
to check object does not have any of the specified fields. - Added
Null
to check field value is null. - Added
NotNull
to check field value is not null. - See about_PSRule_Assert for details.
- Added
- Added type assertion helpers. #635
- Added
IsNumeric
to check field value is a numeric types. - Added
IsInteger
to check field value is an integer types. - Added
IsBoolean
to check field value is a boolean. - Added
IsArray
to check field value is an array. - Added
IsString
to check field value is a string. - Added
TypeOf
to check field value is a specified type. - See about_PSRule_Assert for details.
- Added
- Added content helpers. #637
- Added
$PSRule.GetContentFirstOrDefault
to get content and return the first object. - Added
$PSRule.GetContentField
to get the field from content objects. - See about_PSRule_Variables for details.
- Added
- Added assertion helpers. #640
- General improvements:
- Updated
HasJsonSchema
assertion helper. #636- The URI scheme can optionally be ignored for
http://
orhttps://
URIs. - The fragment
#
is ignored. - See about_PSRule_Assert for details.
- The URI scheme can optionally be ignored for
- Added support for
-Outcome
and-As
to produce filtered output fromAssert-PSRule
. #643- Configure
Output.As
withSummary
to produce summarized results per object. - Configure
Output.Outcome
to limit output toFail
orError
. - See Assert-PSRule for details.
- Configure
- Updated
What's changed since pre-release v1.1.0-B2102029:
- No additional changes.
v1.1.0-B2102029 (pre-release)
What's changed since pre-release v1.1.0-B2102024:
- General improvements:
- Added support for
-Outcome
and-As
to produce filtered output fromAssert-PSRule
. #643- Configure
Output.As
withSummary
to produce summarized results per object. - Configure
Output.Outcome
to limit output toFail
orError
. - See Assert-PSRule for details.
- Configure
- Added support for
v1.1.0-B2102024 (pre-release)
What's changed since pre-release v1.1.0-B2102019:
- Engine features:
- Added assertion helpers. #640
- Added
NotHasField
to check object does not have any of the specified fields. - Added
Null
to check field value is null. - Added
NotNull
to check field value is not null. - See about_PSRule_Assert for details.
- Added
- Added assertion helpers. #640
v1.1.0-B2102019 (pre-release)
What's changed since v1.0.3:
- Engine features:
- Added type assertion helpers. #635
- Added
IsNumeric
to check field value is a numeric types. - Added
IsInteger
to check field value is an integer types. - Added
IsBoolean
to check field value is a boolean. - Added
IsArray
to check field value is an array. - Added
IsString
to check field value is a string. - Added
TypeOf
to check field value is a specified type. - See about_PSRule_Assert for details.
- Added
- Added content helpers. #637
- Added
$PSRule.GetContentFirstOrDefault
to get content and return the first object. - Added
$PSRule.GetContentField
to get the field from content objects. - See about_PSRule_Variables for details.
- Added
- Added type assertion helpers. #635
- General improvements:
- Updated
HasJsonSchema
assertion helper. #636- The URI scheme can optionally be ignored for
http://
orhttps://
URIs. - The fragment
#
is ignored. - See about_PSRule_Assert for details.
- The URI scheme can optionally be ignored for
- Updated
v1.0.3
What's changed since v1.0.2:
- Bug fixes:
- Fixed reason reported fields for
HasField
andHasFields
assertion helpers. #632
- Fixed reason reported fields for
v1.0.2
What's changed since v1.0.1:
- Engineering:
- Bump Manatee.Json dependency to 13.0.5. #619
- Bug fixes:
v1.0.1
What's changed since v1.0.0:
- Bug fixes:
- Fixed module source key has already been added. #608
v1.0.0
What's changed since v0.22.0:
- General improvements:
- Added rule help link in failed
Assert-PSRule
output. #595
- Added rule help link in failed
- Engineering:
What's changed since pre-release v1.0.0-B2011028:
- No additional changes.
v1.0.0-B2011028 (pre-release)
What's changed since v0.22.0: