Visible rule and underscore values
See original GitHub issueI’m facing some problems with expressions in visibility rule that contains underscore in the values, like STANDARD_HA
.
Environment
azure-pipelines-task-lib version: 2.9.6
Issue Description
Values with underscore not pass in the extension validation.
Expected behaviour
Expression should be validated without errors.
Actual behaviour
Error: Extension validation failed.
Steps to reproduce
- Create a radio field:
{
"name": "tier",
"type": "radio",
"defaultValue": "BASIC",
"options": {
"BASIC": "standalone instance",
"STANDARD_HA": "highly available primary/replica instances"
}
}
- And other field with this visibleRule:
"visibleRule": "tier = STANDARD_HA"
- Package and publish the extension
Logs
Task definition visible rule \'tier = STANDARD_HA\' is invalid. It should be of format "A <validconditionhere> B" for Task with ID ...
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:15 (8 by maintainers)
Top Results From Across the Web
What are the rules about using an underscore in a C++ ...
Yes, underscores may be used anywhere in an identifier. I believe the rules are: any of a-z, A-Z ...
Read more >Naming rules (code analysis) - .NET - Microsoft Learn
This rule assumes that an enumeration member that has a name that contains "reserved" is not currently used but is a placeholder to...
Read more >Underscore using within functions - Appian Community
Underscore is used for partial evaluation. it gives you ability to evaluate the function without having that value defined yet. Mike Schmitt ...
Read more >Choosing rule and data instance names - Pega
Many rules and data objects have a visible key that contains multiple fields — key ... Guideline 2: Use only letters, digits, underscores,...
Read more >Programming in C++, Rules and Recommendations
The use of two underscores (` __ ') in identifiers is reserved for the compiler's internal use according to the ANSI-C standard. Underscores...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
not stale
I also reported this to the product team and the rule on the marketplace is too strict. But I haven’t seen a plan to resolve yet.