Realign expressions and assertion methods #904
BernieWhite
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@ArmaanMcleod Thoughts? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Across expressions (used in YAML and JSON resources) and assertion methods (used in PowerShell resources) there are different names used to equivalent functionality. While terminology differs between programming/ scripting languages we want to make it even easier to understand and author rules.
We should look to realign naming to be ideally the same for expressions and assertion methods.
This discussion proposes the following naming changes.
Exists
.GreaterOrEqual
.HasDefault
.HasSchema
.LessOrEqual
.Equals
,HasValue
and expression andHasFieldValue
are approximate. Also these are not necessarily intuitive.Empty
,NotEmpty
, andEqual
across expressions and assertion methods. Then deprecateEquals
,HasValue
andHasFieldValue
.https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#hasvalue
https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Expressions/#equals
https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Assert/#hasfieldvalue
Beta Was this translation helpful? Give feedback.
All reactions