Skip to content

Commit feea56b

Browse files
authored
Merge pull request #79 from foray1010/patch-1
docs: minor update on example syntax
2 parents 19fac02 + e2195e8 commit feea56b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ console.log(validate.errors) // processed errors
7676

7777
Processed errors:
7878

79-
```javascript
80-
;[
79+
```json5
80+
[
8181
{
8282
keyword: "errorMessage",
8383
message: "should be an object with an integer property foo only",
@@ -118,8 +118,8 @@ console.log(validate.errors) // processed errors
118118

119119
Processed errors:
120120

121-
```javascript
122-
;[
121+
```json5
122+
[
123123
{
124124
// original error
125125
keyword: type,
@@ -191,8 +191,8 @@ console.log(validate.errors) // processed errors
191191

192192
Processed errors:
193193

194-
```javascript
195-
;[
194+
```json5
195+
[
196196
{
197197
keyword: "errorMessage",
198198
message: "data.foo should be integer >= 2",
@@ -248,8 +248,8 @@ console.log(validate.errors) // processed errors
248248

249249
Processed errors:
250250

251-
```javascript
252-
;[
251+
```json5
252+
[
253253
{
254254
keyword: "errorMessage",
255255
message: 'data should be an object with properties "foo" and "bar" only',
@@ -298,10 +298,10 @@ const schema = {
298298

299299
Defaults:
300300

301-
```javascript
301+
```json5
302302
{
303303
keepErrors: false,
304-
singleError: false
304+
singleError: false,
305305
}
306306
```
307307

0 commit comments

Comments
 (0)