Explain a validation rule
explain_validation_ruleExplains a validation rule ID from official rule sets, including wording, plain-language summary, reason, and fix steps so users can resolve invoice validation errors.
Instructions
Explains one validation rule id, such as BR-CO-15, BR-DE-15, PEPPOL-EN16931-R003 or BR-FR-05: the publisher's official wording from the compiled rule sets and, where available, a plain-language summary, the reason for the rule and how to fix it. Use it after validate_invoice reports a rule you need to explain or fix, or when a user asks what a rule means. It does not check an invoice; call validate_invoice for that. An unknown id is not an error: the result has found false and an empty official list; say so and do not guess. Reads the bundled rule sets; no network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ruleId | Yes | The rule id, e.g. BR-CO-15. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | False when no compiled rule set knows this id. | |
| ruleId | Yes | The rule id as looked up. | |
| official | Yes | Official wording, one entry per rule set that defines the id. | |
| plainLanguage | No | Plain-language explanation, when one exists for this rule. |