judo-runtime:validation-rules

Configure and debug JUDO validation rules, including built-in validators and context options.

Updated May 5, 2022
One-click install
npx skills add https://github.com/BlackBeltTechnology/judo-runtime-core --skill judo-runtime-validation-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: judo-runtime:validation-rules
Source: https://github.com/BlackBeltTechnology/judo-runtime-core/tree/main/judo-runtime-core-validator/src/main/resources/claude/plugins/judo-validator/skills/validation-rules
Command: npx skills add https://github.com/BlackBeltTechnology/judo-runtime-core --skill judo-runtime-validation-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users troubleshoot validation failures, understand how constraints are enforced, and configure the behavior of JUDO's validation system.

Core Features & Use Cases

  • Understand Validation Flow: Visualize the step-by-step process of how JUDO validates data payloads.
  • Inspect Built-in Validators: Learn about the available validators and the constraints they enforce (e.g., maxLength, pattern, precision).
  • Configure Validation Context: Control aspects like required field validation, skipping invalid values, and traversal depth.
  • Debug Validation Issues: Provides checklists and logging guidance for common problems like unexpected validation passes or nested errors.
  • Use Case: When a user reports that a new record is being saved with an invalid email format, this Skill can be used to inspect the pattern constraint on the email attribute and the PatternValidator's behavior.

Quick Start

Enable DEBUG logging for the judo-validator package to diagnose a validation issue.

Frequently Asked Questions about judo-runtime:validation-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does JUDO validation pass unexpectedly when saving a record with invalid data?

JUDO validation can pass unexpectedly if the validation context skips invalid values or bypasses required fields. Inspect metamodel constraints and enable DEBUG logging on the judo-validator package to verify the exact flow.

How do I debug nested validation errors in JUDO?

Debug nested validation errors in JUDO by inspecting the validation results object and checking traversal depth settings in your validation context. Use metamodel inspection to verify constraints are applied correctly to nested attributes.

What built-in validators are available for JUDO validation rules?

JUDO provides built-in validators like PatternValidator for regex enforcement, and validators for maxLength and precision constraints. These enforce metamodel rules on data payloads during the validation flow.

How do I configure the JUDO validation context to control traversal depth?

Configure the JUDO validation context to control traversal depth, required field validation, and invalid value skipping. These context options determine how strictly the validation flow enforces constraints on nested data structures.

What causes precision validation failures in JUDO and how can I resolve them?

Precision validation failures in JUDO occur when data values exceed the precision constraint defined in the metamodel. Inspect the attribute's precision settings and verify the input data matches the expected decimal scale.