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: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,14 @@
2
2
3
3
## [Unreleased]
4
4
5
+
### Changed
6
+
7
+
-**BREAKING**: `ValidationError` fields are private; use `instance()`, `kind()`, `instance_path()`, and `schema_path()` instead of accessing struct fields directly.
8
+
9
+
### Performance
10
+
11
+
-`validate` and other APIs returning `Result<_, ValidationError>` are 5–10% faster in some workloads due to the smaller error handle.
Copy file name to clipboardExpand all lines: MIGRATION.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
1
# Migration Guide
2
2
3
+
## Upgrading from 0.36.x to 0.37.0
4
+
5
+
### `ValidationError` is now opaque
6
+
7
+
All `ValidationError` fields are private. Replace `error.instance`, `error.instance_path`, `error.schema_path`, and `error.kind` with the corresponding accessor calls:
8
+
9
+
```rust
10
+
letinstance=error.instance();
11
+
letkind=error.kind();
12
+
letinstance_path=error.instance_path();
13
+
letschema_path=error.schema_path();
14
+
```
15
+
3
16
## Upgrading from 0.35.x to 0.36.0
4
17
5
18
### Removal of `Validator::apply`, `Output`, and `BasicOutput`
0 commit comments