Commit 3a6dc23
authored
* fix: add `required` validation to `if` lesssons (#180)
Closes #180
This commit adds the `required` validation on the properties that have
an `if` applicator condition applied to them in the *instructions* for
the following lessons:
-
[05-Conditional-Validation/04-if-then-keyword](https://tour.json-schema.org/content/05-Conditional-Validation/04-if-then-keyword)
-
[https://tour.json-schema.org/content/05-Conditional-Validation/06-Expanding-If-then-else](https://tour.json-schema.org/content/05-Conditional-Validation/06-Expanding-If-then-else)
* fix: move the `required` validation to the `if` schema
This commit moves the `required` validation for the example schema in
ch05's lesson "Expanding If-then-else" and places it in the `if`
subschema, so that it applies only for the purpose of the condition.
1 parent 2264644 commit 3a6dc23
File tree
2 files changed
+4
-3
lines changed- content/05-Conditional-Validation
- 04-if-then-keyword
- 06-Expanding-If-then-else
2 files changed
+4
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
0 commit comments