From bcb7e79d9eeee5e63eb08644bdbe057376e26972 Mon Sep 17 00:00:00 2001 From: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> Date: Tue, 8 Dec 2020 10:09:05 +0800 Subject: [PATCH] fix(docs): add info on action-based sequences Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> --- docs/site/Validation-REST-layer.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/site/Validation-REST-layer.md b/docs/site/Validation-REST-layer.md index 0b3e711ba666..35a82e6b3d51 100644 --- a/docs/site/Validation-REST-layer.md +++ b/docs/site/Validation-REST-layer.md @@ -178,6 +178,11 @@ of 10 digits separated by `-` after the 3rd and 6th digits. ## Customize validation errors +{% include note.html content="This section describes customization for legacy +[Action-based sequences](./REST-Action-sequence.md). Most LoopBack 4 +applications utilize the new +[Middleware-based sequences](./REST-Middleware-sequence.md)." %} + Since the error is being caught at the REST layer, the simplest way to customize the errors is to customize the [sequence](https://loopback.io/doc/en/lb4/Sequence.html). It exists in all