← All recipes
Moderne licensed

Replace validator/asyncValidator with plural forms

Recipe IDorg.openrewrite.angular.migration.replace-validator-with-validatorsArtifact@openrewrite/recipes-angular

Renames the deprecated singular validator and asyncValidator property names to validators and asyncValidators (plural). Angular 10 deprecated the singular forms in favor of AbstractControlOptions.

Single recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.angular.migration.replace-validator-with-validators

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular