Commit Graph

160 Commits

Author SHA1 Message Date
Dmitry Dygalo 3a5b7e95c8 chore: Update dependencies 2022-10-20 16:09:41 +02:00
Joel Natividad 06c7a31d23
chore: bump fraction from 0.10.0 to 0.11.0 (#381)
* bump fraction from 0.10.0 to 0.11.0

* Update dependencies, remove patch version no

Co-authored-by: Dmitry Dygalo <Stranger6667@users.noreply.github.com>
2022-10-18 23:34:08 +02:00
Expyron 07be2ffaf1
chore: Replace `structopt` with `clap` (#384) 2022-10-18 23:19:53 +02:00
Dmitry Dygalo 54ff9b46a6 chore: Fix clippy 2022-10-18 22:52:16 +02:00
Pawel Iwan 71a511d634 feat: optional unknown formats as compilation error 2022-06-23 12:04:41 +02:00
Dmitry Dygalo a5cd893363 chore: Update `fancy_regex` from `0.9.0` to `0.10.0` 2022-05-12 16:26:36 +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 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 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 5f52908009
chore(rust): Release 0.15.0 2022-01-31 11:51:20 +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 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 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 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
Dmitry Dygalo abeae1eb25 refactor: Clarify lifetime naming in `Validate::validate` 2021-12-07 12:28:47 +01:00
Dmitry Dygalo 64792f39c4 perf: Remove the `schema` argument from all methods of the `Validate` trait 2021-12-07 11:43:48 +01:00
Dmitry Dygalo e2b77fc705 perf: Add special cases for arrays with 2 and 3 items in the `uniqueItems` keyword implementation 2021-12-06 21:50:22 +01:00
Dmitry Dygalo 87bce86efe perf: Optimize the `multipleOf` implementation 2021-12-06 18:25:23 +01:00
Dmitry Dygalo 691ec3e2ac perf: Remove unused private field in `JSONSchema` 2021-12-06 18:07:18 +01:00
Dmitry Dygalo 2ea835a442
chore(rust): Release 0.13.2
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2021-11-04 12:32:57 +01:00
Alex Good 0f050b860e feat: expose methods to examine OutputUnits
The `Output::basic` method returns a BasicOutput. Prior to this patch the
only way to examine the contents of this data structure was to serialize
it to JSON. This patch adds methods to examine the outputs from Rust, as
well as documentation on how to do so.

Signed-off-by: Alex Good <alex@memoryandthought.me>
2021-11-03 18:50:50 +01:00
Rafael Caricio 0e150641e1 feat: Implement `prefixItems` keyword 2021-10-29 14:54:13 +02:00
Dmitry Dygalo 2ce396b29b
chore(rust): Release 0.13.1
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2021-10-28 11:17:27 +02:00
Dmitry Dygalo 14cb8994ae
chore: Replace manual Default impl for JSONPointer with a derived one
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2021-10-28 11:12:52 +02:00