Eddie Darling
|
0880741ba3
|
Update jsonschema protocols.pyi (#9295)
These take in an instance, which need not be a JSON object.
They could for example be arrays.
See [this example](https://python-jsonschema.readthedocs.io/en/stable/api/jsonschema/protocols/#jsonschema.protocols.Validator.iter_errors) on the jsonschema docs.
```python
>>> schema = {"maxItems" : 2}
>>> Draft202012Validator(schema).is_valid([2, 3, 4])
False
```
|
2022-12-06 21:08:11 +00:00 |
|