Skip to content

feat(forms): add validateAsync overloads for simple function and resource options - #70124

Open
brysonbw wants to merge 1 commit into
angular:mainfrom
brysonbw:feat-add-validate-async-overloads-for-simple-function-69779
Open

feat(forms): add validateAsync overloads for simple function and resource options#70124
brysonbw wants to merge 1 commit into
angular:mainfrom
brysonbw:feat-add-validate-async-overloads-for-simple-function-69779

Conversation

@brysonbw

@brysonbw brysonbw commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

  • validateAsync()lacked full overload definitions to support both lightweight async validation logic (similar to synchronous validate() and direct Angular resource() integration

Issue Number: #69779

What is the new behavior?

  • Adds public API overloads and implementation logic for validateAsync():
    • Simple function overload: Accepts a lightweight async validator function alongside an optional configuration object (debounce, when, onError).
    • Resource object overload: Accepts an AsyncValidatorOptions configuration for direct integration with Angular's resource() primitive (params, factory, onSuccess, onError, debounce, and when)
    • Integrates resource-based validation rules into field metadata so async validation executes automatically once all synchronous validation passes.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

  • Backward compatible and preserves all existing functionality without breaking preexisting async validation APIs like validateHttp()

  • Supports parameter debouncing via DebounceTimer and signal chaining for reactive updates

…urce options

Add validateAsync overloads for simple function with optional config and full resource options.
@pullapprove
pullapprove Bot requested a review from atscott August 7, 2026 19:55
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: forms labels Aug 7, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 7, 2026
@atscott
atscott requested review from JeanMeche and removed request for atscott August 14, 2026 19:12
@JeanMeche JeanMeche added forms: signals and removed detected: feature PR contains a feature commit labels Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants