Comments (1)
Decision
If the path
in an Evaluation
contains a wildcard, this will be the behavior:
- Only paths in the template which fully satisfy the full path specification in
path
will be returned; paths that are incomplete will be ignored. - If no path can be found in the template that satisfies
path
, nothing is returned.- The
operator
with thepath
will not evaluate anything, and theEvaluation
they are a part of will not have any result.
- The
- When multiple paths match the
path
specification, all are selected, and theoperator
will evaluate each individually- These results will be logically
&&
-ed together, and the result of the overallExpression
will be the result of the&&
.
- These results will be logically
If a rule intends to enforce some logic on a wildcard path (where a path doesn't fully exist, but should), other features/mechanisms in the language can be used in combination to bring enforcement.
For example, to force evaluation of a property of an array element, specify the path segments in different scopes.
{
- "path": "array[*].name", // any element in 'array' without a 'name' property isn't selected
+ "path": "array[*]", // select all elements in 'array'
"evaluate": {
"path": "name", // evaluate the 'name' property of the element
…
}
}
from template-analyzer.
Related Issues (20)
- Improve format of warning and error messages in CLI output
- [FEATURE REQ] Support objects in parameters.json file HOT 7
- [BUG] Description for TA-000026 misleading
- [BUG] "Rules passed" report doesn't consider PSRule rules
- [FEATURE REQ] Mock parameter objects to properly parse templates with missing parameters
- [BUG] Nested template in ARM template gives wrong line number when referenced as Bicep module HOT 1
- [FEATURE REQ] Optimize directory scanning with bicep modules HOT 1
- [FEATURE REQ] Improvements for console output when scanning directories with modules HOT 1
- [FEATURE REQ] Console reporting output should be consistent with use of relative/absolute paths
- [BUG] Handling of resource group tags HOT 1
- [FEATURE REQ] Support Parameters "allowedValues" property HOT 2
- [FEATURE REQ] Consider migrating from Newtonsoft.Json to System.Text.Json
- An exception occurred while analyzing template. HOT 6
- [BUG] Multiple exceptions parsing templates that are otherwise valid HOT 1
- [BUG] Incorrect help uri in SARIF log HOT 1
- Include rule severity in SARIF output
- [BUG] Macos release not notarized HOT 1
- Does template-analyzer support Pulumi? One of our customer using Pulumi to manage infrastructure (IaC code) HOT 1
- [BUG] Cannot run TemplateAnalyzer on linux agent in Azure DevOps using Powershell HOT 1
- [BUG] Bicep CIDR function generate error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from template-analyzer.