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: crates/jsonschema-py/CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,17 @@
5
5
### Added
6
6
7
7
-`jsonschema_rs.evaluate()`, `Validator.evaluate()`, and the `Evaluation` type for retrieving JSON Schema Output v1 (flag/list/hierarchical) formats along with annotations and errors.
8
+
-`Validator` type alias for union of all validator types (`Draft4Validator | Draft6Validator | Draft7Validator | Draft201909Validator | Draft202012Validator`).
9
+
- TypedDict types in type stubs for evaluation outputs: `FlagOutput`, `ListOutput`, `OutputUnit`, `EvaluationAnnotation`, `EvaluationErrorEntry` for better type safety and IDE autocomplete.
10
+
-`__eq__` and `__hash__` methods to `ValidationError` and `ReferencingError` for better testability.
11
+
-`__repr__` method stubs to all validator classes, `Evaluation`, `Registry`, and regex options classes for better debugging experience.
12
+
- Docstrings to key functions in type stubs (`is_valid`, `validate`, `iter_errors`, `evaluate`, `validator_for`).
13
+
14
+
### Fixed
15
+
16
+
- Missing `verbose_message` attribute in `ValidationError` type stub.
17
+
- Missing `context` field in `ValidationErrorKind.OneOfMultipleValid` type stub.
18
+
- Incorrect type for `ValidationErrorKind.MultipleOf.multiple_of` - now correctly typed as `int | float | Decimal` to support arbitrary precision numbers.
0 commit comments