Skip to content

Commit 6c335a1

Browse files
committed
Pass tests
1 parent 5b5a15b commit 6c335a1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

dynamicvalidator/all_example_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ func ExampleAll() {
1919
// Validate this Dynamic value must either be:
2020
// - "one"
2121
dynamicvalidator.Any(
22-
dynamicvalidator.OneOf("one"),
23-
dynamicvalidator.All(
24-
dynamicvalidator.NoneOf("three"),
25-
),
22+
dynamicvalidator.Any( /* ... */ ),
23+
dynamicvalidator.All( /* ... */ ),
2624
),
2725
},
2826
},

dynamicvalidator/any_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func ExampleAny() {
2020
// - "one"
2121
// - Length at least 4 characters
2222
dynamicvalidator.Any(
23-
dynamicvalidator.OneOf("one"),
23+
dynamicvalidator.Any( /* ... */ ),
2424
),
2525
},
2626
},

dynamicvalidator/any_with_all_warnings_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func ExampleAnyWithAllWarnings() {
2020
// - "one"
2121
// - Length at least 4 characters
2222
dynamicvalidator.AnyWithAllWarnings(
23-
dynamicvalidator.OneOf("one"),
23+
dynamicvalidator.AnyWithAllWarnings( /* ... */ ),
2424
),
2525
},
2626
},

0 commit comments

Comments
 (0)