Closed BernieWhite closed 1 year ago
The requestContext()
is currently only used for requestContext().apiVersion
.
This expression is often paired with less
or greaterOrEquals
. The intent is to compare an API version such as 2019-09-01
.
For example:
{
"value": "[requestContext().apiVersion]",
"greaterOrEquals": "2019-09-01"
}
PSRule less
or greaterOrEquals
expect an integer value. So to complete this issue we need to add this feature upstream to handle a date value.
Description of the issue
Similar to #1323 we need to handle
requestContext()
using expansion of policies.Error output
Error information:
Module in use and version:
Captured output from
$PSVersionTable
:Additional context
Related to #181