Commit Graph

78 Commits

Author SHA1 Message Date
Dmitry Dygalo cfab6027a1 perf: Avoid allocations while constructing path segments
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-05-03 20:46:44 +02:00
Dmitry Dygalo 146f6cde42
docs: Update README
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-05-01 18:34:41 +02:00
Dmitry Dygalo c64e87eebd
docs: Update README
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2024-03-03 00:20:09 +01:00
OrangeTux 847fb05251 Correct link 2024-03-03 00:13:02 +01:00
OrangeTux 88c4b7503f Document how to run tests
`cargo tests` depends on an external, undocumented dependency: the JSON
Schema Test Suite.

This commit introduces instructions how to get test suite.

Without the test suite, `cargo test` fails with:

```
$ cargo test
error: custom attribute panicked
 --> tests/test_suite.rs:5:1
  |
5 | #[json_schema_test_suite("tests/suite", "draft4", {"optional_bignum_0_0", "optional_bignum_2_0"})]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: message: Tests directory not found: tests/suite/tests/draft4
```
2024-03-03 00:13:02 +01:00
Dmitry Dygalo 67e0e4e871
docs: Update README 2023-03-22 19:21:00 +01:00
Dmitry Dygalo 64f3e02ede
docs: Update code samples in README 2023-03-16 12:42:11 +01: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 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
Dmitry Dygalo 5f52908009
chore(rust): Release 0.15.0 2022-01-31 11:51:20 +01:00
Dmitry Dygalo 99fdd4a812
chore(rust): Release 0.14.0 2022-01-23 17:28:36 +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 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 2d061579c8
chore(rust): Release 0.13.3 2021-12-08 12:33:31 +01:00
Dmitry Dygalo f8b8ec0d6c
docs: Update README
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2021-10-28 11:48:18 +02:00
Dmitry Dygalo 617fd21406
docs(rust): Update benchmark data
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2021-10-28 10:26:03 +02:00
Dmitry Dygalo fe4ce6703b
docs: Update readme
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
2021-10-28 09:36:49 +02:00
Dustin J. Mitchell e45ebe6c34 docs: add/update stability notes 2021-08-15 18:48:55 +02:00
Dmitry Dygalo b59ae3a45e
chore(rust): Release 0.12.0
Signed-off-by: Dmitry Dygalo <dadygalo@gmail.com>
2021-07-24 16:16:16 +02:00
Dmitry Dygalo 2fedd4f84c
chore(rust): Release 0.11.0 2021-06-19 17:12:47 +02:00
Dmitry Dygalo 049e1047dc
docs: Improve code formatting in examples 2021-06-18 12:25:49 +02:00
Dmitry Dygalo 9d8b077995
chore(rust): Release 0.10.0 2021-06-17 15:28:28 +02:00
Eden Yefet 5e65010387
feat: Use meta-schemas to validate input schemas 2021-06-17 15:04:29 +02:00
Dmitry Dygalo ee900db85d
docs: Update docs.rs badge URL 2021-06-17 13:07:41 +02:00
Dmitry Dygalo 6e418db4fd
chore(rust): Release 0.9.0 2021-05-07 08:57:23 +02:00
Dmitry Dygalo 58a6fd1644
docs: Update formatting in README.md 2021-05-07 08:49:51 +02:00
Dmitry Dygalo 7df454703e fix: Extend the `email` format validation 2021-05-06 11:40:58 +02:00
Dmitry Dygalo f7160f4c8a
chore(rust): Release 0.8.3 2021-05-05 13:40:14 +02:00
Dmitry Dygalo 6654ccc7e8
chore(rust): Release 0.8.2 2021-05-03 14:52:30 +02:00
Dmitry Dygalo 194d62fe6a perf: Special handling for single-item `allOf` validators 2021-05-03 14:22:46 +02:00
Dmitry Dygalo 4b58975b8c perf: Special handling for single-item `enum` validators 2021-05-03 14:05:22 +02:00
Dmitry Dygalo c996f8987d perf: Special handling for single-item `required` validators 2021-05-03 13:23:23 +02:00
Dmitry Dygalo 33ba13115d
docs: Update benchmark data 2021-05-02 12:58:23 +02:00
Dmitry Dygalo 089c623b29 perf: Simplify object comparison 2021-05-01 21:51:03 +02:00
Dmitry Dygalo 2b807f2364 perf: Use vectors instead of `AHashMap` if the number of properties is small 2021-05-01 20:48:35 +02:00
Dmitry Dygalo c3b901b093 perf: Shortcut in the `uniqueItems` validator for short arrays 2021-05-01 18:36:11 +02:00
Dmitry Dygalo b9f5ff242e perf: Reduce the number of `RwLock.read()` calls in `$ref` validators 2021-05-01 15:03:01 +02:00
Dmitry Dygalo c99064ceaf fix: Floating point overflow in the `multipleOf` validator 2021-04-30 21:32:04 +02:00
Dmitry Dygalo 0f4326f378
chore(rust): Release 0.8.1 2021-04-30 13:12:33 +02:00
Dmitry Dygalo 1a1c6c3afb perf: Replace heap-allocated `InstancePath` with stack-only linked list 2021-04-30 13:09:31 +02:00
Dmitry Dygalo 31a4138ae3
chore(rust): Release 0.8.0 2021-04-27 14:29:50 +02:00
Dmitry Dygalo 674da91b63 chore: Convert `ValidationError.instance_path` to a separate struct 2021-04-27 14:28:28 +02:00
Dmitry Dygalo 2cf00cca66
chore(rust): Release 0.7.0 2021-04-27 08:42:56 +02:00
Dmitry Dygalo c0624a435b perf: Do not use `Cow` in `InstancePath`
This way it avoids copying the whole vec in `$ref` which leads to ~15% improvement the big schema benchmark and doesn't visibly affect other benchmarks
2021-04-26 13:01:19 +02:00
Dmitry Dygalo bc68adcb08
docs(rust): Update docs on `instance_path` 2021-04-24 09:05:20 +02:00
Dmitry Dygalo 7e3765711b chore: Add tests for `instance_path` & missing implementation parts 2021-04-24 08:14:45 +02:00
Dmitry Dygalo 2f4a3577d7
chore(rust): Release 0.6.1 2021-03-26 10:02:13 +01:00
Dmitry Dygalo cd89158444
docs(rust): Update README 2021-02-04 11:47:04 +01:00