Avatar for the Stranger6667 user
Stranger6667
jsonschema
BlogDocsChangelog

feat: Add `ValidationError::to_owned`

#659Merged
Comparing
dd/expose-to-owned
(
471858a
) with
master
(
059fc22
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
45
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

validate[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::validate[GeoJSON/Canada]
CodSpeed Performance Gauge
+5%
9.8 ms
9.4 ms
is_valid[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::is_valid[GeoJSON/Canada]
CodSpeed Performance Gauge
+5%
9.8 ms
9.4 ms
subresources_of[Fast]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[Fast]
CodSpeed Performance Gauge
+1%
3.5 µs
3.4 µs
resolve[small]
crates/jsonschema-referencing/benches/anchor.rs::benches::bench_anchor_lookup::Anchor Lookup::resolve[small]
CodSpeed Performance Gauge
+1%
3.6 µs
3.5 µs
subresources_of[GeoJSON]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[GeoJSON]
CodSpeed Performance Gauge
+1%
3.9 µs
3.9 µs
subresources_of[CITM]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[CITM]
CodSpeed Performance Gauge
+1%
4 µs
4 µs
build[CITM]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::build[CITM]
CodSpeed Performance Gauge
+1%
594 µs
590.8 µs
try_with_resource[Swagger]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_with_resource[Swagger]
CodSpeed Performance Gauge
+1%
1.6 ms
1.6 ms
apply[Open API/Zuora]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::apply[Open API/Zuora]
CodSpeed Performance Gauge
0%
505.4 ms
503.4 ms
subresources_of[draft 4]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[draft 4]
CodSpeed Performance Gauge
0%
9.1 µs
9 µs
subresources_of[Open API]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[Open API]
CodSpeed Performance Gauge
0%
9.2 µs
9.1 µs
subresources_of[draft 6]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[draft 6]
CodSpeed Performance Gauge
0%
9.6 µs
9.5 µs
subresources_of[draft 2019-09]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[draft 2019-09]
CodSpeed Performance Gauge
0%
9.7 µs
9.7 µs
subresources_of[draft 2020-12]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[draft 2020-12]
CodSpeed Performance Gauge
0%
10.1 µs
10 µs
subresources_of[Swagger]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[Swagger]
CodSpeed Performance Gauge
0%
10.1 µs
10.1 µs
subresources_of[draft 7]
crates/jsonschema-referencing/benches/subresources.rs::benches::bench_subresources::subresources::subresources_of[draft 7]
CodSpeed Performance Gauge
0%
10.2 µs
10.2 µs
validate[Swagger/Kubernetes]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::validate[Swagger/Kubernetes]
CodSpeed Performance Gauge
0%
23 ms
23 ms
apply[Swagger/Kubernetes]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::apply[Swagger/Kubernetes]
CodSpeed Performance Gauge
0%
943.1 ms
942.1 ms
validate[Open API/Zuora]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::validate[Open API/Zuora]
CodSpeed Performance Gauge
0%
21.3 ms
21.2 ms
build[Open API]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::build[Open API]
CodSpeed Performance Gauge
0%
9.1 ms
9.1 ms
apply[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::apply[GeoJSON/Canada]
CodSpeed Performance Gauge
0%
2.8 s
2.8 s
is_valid[CITM/Catalog]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::is_valid[CITM/Catalog]
CodSpeed Performance Gauge
0%
4.8 ms
4.8 ms
try_with_resource[Fast]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_with_resource[Fast]
CodSpeed Performance Gauge
0%
97.4 µs
97.4 µs
validate[CITM/Catalog]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::validate[CITM/Catalog]
CodSpeed Performance Gauge
0%
5.8 ms
5.8 ms
try_new[draft 6]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_new[draft 6]
CodSpeed Performance Gauge
0%
90.9 µs
90.9 µs
try_new[draft 2020-12]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_new[draft 2020-12]
CodSpeed Performance Gauge
0%
100.7 µs
100.7 µs
try_new[draft 7]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_new[draft 7]
CodSpeed Performance Gauge
0%
103.6 µs
103.6 µs
try_new[draft 2019-09]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_new[draft 2019-09]
CodSpeed Performance Gauge
0%
96.7 µs
96.7 µs
is_valid[Swagger/Kubernetes]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::is_valid[Swagger/Kubernetes]
CodSpeed Performance Gauge
0%
21.6 ms
21.6 ms
build[Swagger]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::build[Swagger]
CodSpeed Performance Gauge
0%
7.6 ms
7.6 ms
is_valid[Open API/Zuora]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::is_valid[Open API/Zuora]
CodSpeed Performance Gauge
0%
21 ms
21 ms
try_new[draft 4]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_new[draft 4]
CodSpeed Performance Gauge
0%
85.4 µs
85.4 µs
try_with_resource[GeoJSON]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_with_resource[GeoJSON]
CodSpeed Performance Gauge
0%
924 µs
924.3 µs
build[Fast]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::build[Fast]
CodSpeed Performance Gauge
0%
234.4 µs
234.6 µs
build[GeoJSON]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::build[GeoJSON]
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
pointer[long]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer::pointer[long]
CodSpeed Performance Gauge
0%
13.8 µs
13.8 µs
try_with_resource[CITM]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_with_resource[CITM]
CodSpeed Performance Gauge
0%
284.2 µs
284.9 µs
try_with_resource[Open API]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry::try_with_resource[Open API]
CodSpeed Performance Gauge
0%
1.6 ms
1.6 ms
apply[CITM/Catalog]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::apply[CITM/Catalog]
CodSpeed Performance Gauge
0%
79.8 ms
80.2 ms
apply[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::apply[Fast/Invalid]
CodSpeed Performance Gauge
-1%
23.1 µs
23.3 µs
is_valid[Fast/Valid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::is_valid[Fast/Valid]
CodSpeed Performance Gauge
-1%
6.1 µs
6.2 µs
apply[Fast/Valid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::apply[Fast/Valid]
CodSpeed Performance Gauge
-1%
14.1 µs
14.3 µs
validate[Fast/Valid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::validate[Fast/Valid]
CodSpeed Performance Gauge
-2%
7.4 µs
7.5 µs
validate[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::validate[Fast/Invalid]
CodSpeed Performance Gauge
-3%
3.8 µs
3.9 µs
is_valid[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks::is_valid[Fast/Invalid]
CodSpeed Performance Gauge
-8%
680 ns
738.3 ns

Commits

Click on a commit to change the comparison range
Base
master
059fc22
0%
feat: Add ValidationError::to_owned Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
471858a
11 days ago
by Stranger6667
Home Terms PrivacyDocs