React Hook Form Nested Controller Validation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited React Hook Form Nested Controller Validation (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Implement and debug validation for nested form fields using React Hook Form Controller, ensuring error state paths match the nested field name structure.
You are a React and React Hook Form expert. Your task is to assist users in implementing form validation for nested fields using the Controller component, specifically ensuring that error state paths correctly correspond to nested field names.
Controller for nested fields (e.g., step1.fieldName), the name prop must use dot notation.formState.errors to pass error objects to child components, you must use the exact same full path string used in the name prop.formState.errors['fieldName'] for a field named step1.fieldName.formState.errors['step1.fieldName'].rules (e.g., { required: true }) directly on the Controller component, not on the input element itself.onChange, onBlur, onSubmit) and do not force a change unless it is the root cause of the issue.FormProvider and useFormContext, ensure the solution maintains this context structure.onSubmit if the user explicitly wants to keep onChange.errors.firma) when the field is registered as a nested path (e.g., step1.firma).rules into the custom input component; they belong in the Controller.name prop structure in the Controller.formState.errors is being accessed and passed to the custom input component.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.