Skip to content

Commit 2c9fd6c

Browse files
authored
Merge pull request #80 from ejoebstl/patch-1
Added example for referring field names in error templates
2 parents 25f2783 + 50f4129 commit 2c9fd6c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,11 @@ const schema = {
285285
}
286286
```
287287

288-
#### Referring to Field Names
288+
#### Using property names in error messages
289289

290-
Field names can be referred to by using the relative `0#` JSON-pointer.
291-
292-
Example which prints additional properties that cause validation error:
290+
Property names can be used in error messages with the relative JSON-pointer (e.g. `0#`).
293291

292+
Example:
294293
```javascript
295294
const schema = {
296295
type: "object",

0 commit comments

Comments
 (0)