Commit Graph

572 Commits

Author SHA1 Message Date
Dmitry Dygalo c652816d23 build: Add Cargo cache 2022-05-03 17:35:06 +02:00
Dmitry Dygalo 6f4bc34d51 build: Add Python 3.10 2022-04-25 19:28:56 +02:00
Dmitry Dygalo 37955910cf refactor(test): Refactor Python tests 2022-04-25 19:28:56 +02:00
Joel Natividad 0ea012d422 chore: update dependencies
- fancy_regex from 0.8.0 to 0.9.0
- uuid from 0.8.2 to 1.0.0
2022-04-25 18:48:37 +02:00
Dmitry Dygalo 9e08193fed chore: Fix various clippy warnings 2022-04-25 12:24:37 +02:00
Dmitry Dygalo 10530eccdd
chore(rust): Release 0.16.0 2022-04-21 17:33:39 +02:00
Dmitry Dygalo bad741f771 build: Check feature combinations 2022-04-21 17:31:24 +02:00
Dmitry Dygalo 233e1a0a41 fix: Various compilation issues
Ref: #356 #358
2022-04-21 17:11:08 +02:00
Dmitry Dygalo e2d09aa932
chore(rust): Release 0.15.2 2022-04-10 23:32:39 +02:00
Dmitry Dygalo 4a07ba9a82
chore: Update to Rust 2021 edition in all crates 2022-04-10 23:31:34 +02:00
Dmitry Dygalo e7e0e9e1b8
docs: Update changelog 2022-04-10 23:28:34 +02:00
Dmitry Dygalo ce86e0e29b
chore: Run `cargo fmt` 2022-04-10 23:25:56 +02:00
Joel Natividad 293d517331 Allow URL schema resolving with rustls TLS
Fixes #353
2022-04-10 23:23:55 +02:00
Dmitry Dygalo 044935d724
chore(rust): Release 0.15.1 2022-04-02 18:21:40 +02:00
Dmitry Dygalo ff8d2bebd9 chore: Update `test-case` dev dependency 2022-04-02 18:19:20 +02:00
Dmitry Dygalo dd9b95e3d6 fix: Enable `reqwest/native-tls` by default to avoid validation errors caused by `reqwest` missing a TLS backend 2022-04-02 17:50:14 +02:00
FujiApple c4295f5a45 fix!: specify precise dependency versions in `Cargo.toml` and upgrade all versions 2022-04-02 16:54:07 +02:00
Dmitry Dygalo 7924d55af7 chore: Update pre-commit 2022-04-01 09:49:01 +02:00
Dmitry Dygalo 7a16674c0a build: Set precise runner versions 2022-04-01 09:49:01 +02:00
Dmitry Dygalo 778b424b3d
chore(python): Release 0.14.0 2022-01-31 11:58:01 +01:00
Dmitry Dygalo 5f52908009
chore(rust): Release 0.15.0 2022-01-31 11:51:20 +01:00
Dmitry Dygalo 06148bcb3b
docs: Adjust changelogs 2022-01-31 11:38:36 +01:00
Ferenc Tamás b43b0e9eb1
feat: Custom Resolvers for external references (#246)
* feat: resolver

* chore: rustfmt

* chore: even more rustfmt

* chore: relax anyhow version requirement

* chore: restore url dependency requirement

* fix(resolver): jsonschema/src/resolver.rs typo

Co-authored-by: Dmitry Dygalo <Stranger6667@users.noreply.github.com>

* fix(resolver): python binding

* feat(resolver): include original ref string, docs

* feat(resolver): reqwest feature compile error

* chore(resolver): changelog

* fix(*): clippy

* fix(resolver): doctest example

* feat(resolver): reqwest feature compile error

* chore(resolver): changelog

* fix(*): clippy

* fix(resolver): doctest example
2022-01-31 11:33:17 +01:00
Dmitry Dygalo edbccd6f30 chore: Run `cargo fmt` 2022-01-28 12:54:16 +01:00
Dmitry Dygalo 7b9e5a9b40 chore(cli): Use `to_string_lossy()` instead of `to_str().unwrap()` 2022-01-28 12:54:16 +01:00
Dmitry Dygalo 3c17261145 chore(cli): Use `serde::from_reader` instead of `serde::from_str` 2022-01-28 12:54:16 +01:00
Dmitry Dygalo a0feae6632 docs: Fix changelog structure 2022-01-28 12:54:16 +01:00
Dmitry Dygalo e95fbe7bbc chore(benchmark): Use `serde::from_reader` instead of `serde::from_str` 2022-01-28 12:54:16 +01:00
Dmitry Dygalo 872bd7617e
chore(python): Fix clippy warnings 2022-01-28 12:23:10 +01:00
Dmitry Dygalo 06d4e4a251
chore(python): Update `pyo3` to `0.15` 2022-01-28 12:16:52 +01:00
Dmitry Dygalo 99fdd4a812
chore(rust): Release 0.14.0 2022-01-23 17:28:36 +01:00
Dmitry Dygalo 1584d65365 chore: Bump `itoa` to `1.0`
Ref: #337
2022-01-23 17:24:22 +01:00
Joel Natividad ad4eeb9da5
fix: Set default-features=false for reqwest
fixes #335 .

Otherwise, reqwest will always use default-tls which is the native-tls even if jsonschema `reqwest-rustls-tls` feature is specified.
2022-01-23 13:24:30 +01:00
Dmitry Dygalo c37d22fadc
docs: Update LICENSE years 2021-12-25 00:17:27 +01:00
Dmitry Dygalo 9982772a95
docs: Update README
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2021-12-18 00:50:29 +01:00
Dmitry Dygalo 98b3ccb986 perf: Optimize searching by pointer in JSON documents 2021-12-17 11:01:04 +01:00
Dmitry Dygalo 4e44e54f2d perf: Avoid cloning the value when resolving empty fragments 2021-12-17 09:29:14 +01:00
Dmitry Dygalo f84bc5704b perf: Do less work when resolving fragments 2021-12-17 09:09:03 +01:00
Dmitry Dygalo aa04159dee perf: Reduce the number of generated LLVM lines 2021-12-17 08:52:02 +01:00
Dmitry Dygalo 347e01541b perf(python): Do not box iterator inside `ValidationErrorIter` 2021-12-12 21:40:02 +01:00
Dmitry Dygalo 1f2cda4271 perf: Shortcut for `false` schemas 2021-12-10 13:12:10 +01:00
Dmitry Dygalo b3da882fe5 docs: Remove unused imports in code examples 2021-12-10 11:27:26 +01:00
Dmitry Dygalo 9ca1bc0e4a perf: Simplify `equal_arrays` helper 2021-12-10 11:27:26 +01:00
Dmitry Dygalo 90b0cb089b chore(rust): Release 0.13.3 2021-12-10 11:27:26 +01:00
Dmitry Dygalo 2d061579c8
chore(rust): Release 0.13.3 2021-12-08 12:33:31 +01:00
Dmitry Dygalo 3784ede2a1 test: Use `JSONSchema.apply` in all input validation tests 2021-12-08 12:11:16 +01:00
Dmitry Dygalo bd76d74212 fix: Panic in `JSONSchema.apply` on some schemas with `prefixItems` and `items` 2021-12-08 12:11:16 +01:00
Dmitry Dygalo 295246619a fix: False negatives in some cases when calling `JSONSchema.apply` on schemas with `if` and `then` (without `else`) keywords
Ref: #318
2021-12-08 12:11:16 +01:00
Dmitry Dygalo eb3c601025 fix: False positives in some cases when calling `JSONSchema.apply` on a schema with `additionalProperties`, `patternProperties`, and `properties` combined. 2021-12-08 12:11:16 +01:00
Dmitry Dygalo 6444e7c724 chore: Make `BasicOutput.is_valid` public 2021-12-08 12:11:16 +01:00