SubmittableJsonFieldState extension

The submission gate: whether a state passes under a SchemaValidationMode.

on

Methods

isSubmittable(SchemaValidationMode mode) → bool

Available on JsonFieldState<Schema>, provided by the SubmittableJsonFieldState extension

Whether submission gates (the dialogs' OK buttons) accept this state under mode: validated and free of blocking errors. Under SchemaValidationMode.strict every error blocks (equivalent to JsonFieldState.isValid); under SchemaValidationMode.lenient a validator-rejected schema does not. Under SchemaValidationMode.none validation is skipped, so a validated state is clean by construction — the lenient rule returns the same result.