See upgrade notes for helpful information when upgrading from previous versions.
Important notes:
- YAML resources will require an
apiVersion
from PSRule v2. #648
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.
- 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
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.
- 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
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.
- Use the
- Added support for object expansion with conventions. #661
What's changed since pre-release v1.2.0-B2103008:
- Bug fixes:
- Fixed dependent rule execution is skipped for consequent input objects. #657
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.
- Added support for extensibility with conventions. #650
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.
- 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.
- 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.
- 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.
- 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
.
- Configure
- Updated
What's changed since pre-release v1.1.0-B2102029:
- No additional changes.
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
.
- Configure
- Added support for
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.
- Added
- Added assertion helpers. #640
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.
- 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.
- 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.
- The URI scheme can optionally be ignored for
- Updated
What's changed since v1.0.2:
- Bug fixes:
- Fixed reason reported fields for
HasField
andHasFields
assertion helpers. #632
- Fixed reason reported fields for
What's changed since v1.0.1:
- Engineering:
- Bump Manatee.Json from 13.0.4 to 13.0.5. #619
- Bug fixes:
What's changed since v1.0.0:
- Bug fixes:
- Fixed module source key has already been added. #608
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.
What's changed since v0.22.0: