question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

rule and ruleset list

See original GitHub issue

It would be nice to have the validator output a list of rules and rule lists. Is this already possible?

string jsonRules = validator.GetRulesJson(); // or...
List<ValidationRule> rules = validator.GetRulesList(); 
// and
validator.GetRules( "ruleset1" ); // or...
validator.GetValidatedProperties()....

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
JeremySkinnercommented, May 19, 2017

No plans to add anything further on this at present other than the GetRulesByRuleset that was already added. You could always implement a WithDescription method yourself as an extension method that uses WithState method internally to store the description in the custom state dictionary.

0reactions
pashutecommented, Dec 9, 2017

I see where I should add the WithDescription() - next to the .WithMessage().

But where do I put the description. I want the description similar to the DisplayName just with more verbose details. Unlike the errorMessage which must be dynamically retrieved during validation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The ruleset list | Pega Academy
The ruleset list indicates the rulesets that are available to the application for a given operator session. The ruleset list is available in...
Read more >
List and view rulesets
List existing rulesets · View a specific ruleset · List all versions of a ruleset · View a specific version of a ruleset...
Read more >
AWS Managed Rules rule groups list
This section describes the most recent versions of the AWS Managed Rules rule groups. You see these on the console when you add...
Read more >
List of Pega Rules and Rule Types
Pega Rules - What are Rules In PEGA - Here you will learn about Business Rules In PEGA, How to define Rule in...
Read more >
Comparing RuleSet Pre-requisites and RuleSet Lists In Pega ...
Summary Prerequisites and profile RuleSet lists are both lists of RuleSets and versions, but they have greatly different uses. Both create a list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found