Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Sep 19, 2024
1 parent ddb8aaf commit 3d604af
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions crates/jsonschema-py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,6 @@ validator = jsonschema_rs.Draft201909Validator({"minimum": 42})
validator = jsonschema_rs.Draft202012Validator({"minimum": 42})
```

For backwards compatibility, you can still use the `JSONSchema` class with the `draft` argument, but this is deprecated:

```python
import jsonschema_rs

# Deprecated: Use draft-specific validators instead
validator = jsonschema_rs.JSONSchema(
{"minimum": 42},
draft=jsonschema_rs.Draft7
)
```

JSON Schema allows for format validation through the `format` keyword. While `jsonschema-rs`
provides built-in validators for standard formats, you can also define custom format validators
for domain-specific string formats.
Expand Down

0 comments on commit 3d604af

Please sign in to comment.