You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -317,16 +317,16 @@ If the `properties` keyword is not present in the same schema object, schema com
317
317
constschema= {
318
318
type:"object",
319
319
properties: {
320
-
foo: {type:'number'},
321
-
bar: {type:'number'}
322
-
}
323
-
allRequired:true
324
-
};
320
+
foo: {type:"number"},
321
+
bar: {type:"number"},
322
+
},
323
+
allRequired:true,
324
+
}
325
325
326
-
constvalidData= {foo:1, bar:2 };
327
-
constalsoValidData= {foo:1, bar:2, baz:3 };
326
+
constvalidData= {foo:1, bar:2}
327
+
constalsoValidData= {foo:1, bar:2, baz:3}
328
328
329
-
constinvalidDataList= [{}, {foo:1}, {bar:2 } ];
329
+
constinvalidDataList= [{}, {foo:1}, {bar:2}]
330
330
```
331
331
332
332
#### `anyRequired`
@@ -533,54 +533,54 @@ This keyword correctly tracks evaluated properties and items to work with `uneva
533
533
**Please note**: these keywords require Ajv `$data` option to support [\$data reference](https://github.com/ajv-validator/ajv/blob/master/docs/validation.md#data-reference).
0 commit comments