Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 23f5b1f

Browse files
committed
update README.md
1 parent 30a622e commit 23f5b1f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ The plugin captures the `bind` parameters based on the type, so the name doesn't
9595
### Cascade Validation
9696

9797
```scala
98+
import jakarta.validation.Valid
99+
import bitlap.validation.extension.Validated
100+
import bitlap.validation.extension.ValidBinding
101+
import jakarta.validation.constraints.NotNull
102+
98103
@Validated def validatedTwoParams(@Valid person1: Person, @Valid person2: Person): String
99104

100105
@Validated def validatedOneParams(@Valid person1: Person): String
@@ -107,6 +112,9 @@ The plugin captures the `bind` parameters based on the type, so the name doesn't
107112
### Non-Cascade Validation
108113

109114
```scala
115+
import bitlap.validation.extension.Validated
116+
import jakarta.validation.constraints.{ NotBlank, NotNull }
117+
110118
@Validated def validatedNotNullParams(@NotNull person1: Person): String
111119

112120
@Validated def validatedNotEmptyParam(@NotBlank name: String): String

0 commit comments

Comments
 (0)