We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b836b1 commit 25fc533Copy full SHA for 25fc533
CHANGELOG.md
@@ -2,6 +2,10 @@
2
3
## [Unreleased]
4
5
+### Documentation
6
+
7
+- Fix documentation for `validate`
8
9
## [0.26.1] - 2024-10-29
10
11
### Fixed
crates/jsonschema/src/validator.rs
@@ -193,7 +193,7 @@ impl Validator {
193
pub fn new(schema: &Value) -> Result<Validator, ValidationError<'static>> {
194
Self::options().build(schema)
195
}
196
- /// Run validation against `instance` and return an iterator over [`ValidationError`] in the error case.
+ /// Validate `instance` against `schema` and return the first error if any.
197
#[inline]
198
pub fn validate<'i>(&self, instance: &'i Value) -> Result<(), ValidationError<'i>> {
199
self.root.validate(instance, &LazyLocation::new())
0 commit comments