diff --git a/src/Form.elm b/src/Form.elm index a538691d..838cd09e 100644 --- a/src/Form.elm +++ b/src/Form.elm @@ -11,6 +11,7 @@ module Form exposing , runOneOfServerSideWithServerValidations , AppContext -- subGroup + , globalErrors ) {-| One of the core features of elm-pages is helping you manage form data end-to-end, including @@ -755,6 +756,12 @@ errorsForField field_ (Errors errorsDict) = |> Maybe.withDefault [] +{-| -} +globalErrors : Errors error -> List error +globalErrors errors = + errors |> errorsForField Validation.global + + {-| -} type alias AppContext app = { app