Avatar for the Stranger6667 user
Stranger6667
jsonschema
BlogDocsChangelog

fix: `required` not enforced when `additionalProperties` is a schema object and `required` lists exactly 2 keys

#1116Merged
Comparing
dd/fix-required-2
(
bd0b0d3
) with
master
(
b7d89f6
)
CodSpeed Performance Gauge
0%
Untouched
78

Benchmarks

78 total
is_valid[Fast/Invalid]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+10%
1.3 µs1.2 µs
is_valid[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+4%
7.6 ms7.3 ms
validate[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
+4%
7.6 ms7.3 ms
resolve[small]
crates/jsonschema-referencing/benches/anchor.rs::benches::bench_anchor_lookup::Anchor Lookup
CodSpeed Performance Gauge
+2%
3 µs2.9 µs
pointer[single]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer
CodSpeed Performance Gauge
+1%
4.7 µs4.7 µs
prepare_borrowed_with_specifications[Fast]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
+1%
36 µs35.6 µs
metaschema/is_valid/Swagger
crates/jsonschema/benches/metaschema.rs::metaschema::run_benchmarks
CodSpeed Performance Gauge
0%
262.6 µs261.3 µs
build[GeoJSON]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
864.4 µs861.1 µs
prepare_owned_with_specifications[Open API]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
312.7 µs311.6 µs
iter_errors[unevaluated_properties]
crates/jsonschema/benches/unevaluated_properties.rs::benches::run_benchmarks
CodSpeed Performance Gauge
0%
59.2 µs58.9 µs
metaschema/is_valid/FHIR
crates/jsonschema/benches/metaschema.rs::metaschema::run_benchmarks
CodSpeed Performance Gauge
0%
10 ms10 ms
validate[unevaluated_properties]
crates/jsonschema/benches/unevaluated_properties.rs::benches::run_benchmarks
CodSpeed Performance Gauge
0%
50.4 µs50.3 µs
prepare_owned_with_specifications[Fast]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
38.1 µs38 µs
evaluate[GeoJSON/Canada]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
111.5 ms111.3 ms
pointer[long]
crates/jsonschema-referencing/benches/pointer.rs::benches::bench_pointers::JSON Pointer
CodSpeed Performance Gauge
0%
13 µs13 µs
validate[Recursive/StructuredContent]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
82.7 µs82.5 µs
build[unevaluated_items]
crates/jsonschema/benches/unevaluated_items.rs::benches::run_benchmarks
CodSpeed Performance Gauge
0%
265.7 µs265.2 µs
prepare_borrowed_with_specifications[CITM]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
50.2 µs50.1 µs
build[FHIR]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
125.1 ms124.9 ms
is_valid[FHIR/Fhir]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
84.1 µs84 µs
build[Recursive]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
prepare_borrowed[draft 2020-12]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
32.7 µs32.7 µs
metaschema/is_valid/Recursive
crates/jsonschema/benches/metaschema.rs::metaschema::run_benchmarks
CodSpeed Performance Gauge
0%
152.4 µs152.3 µs
prepare_borrowed_with_specifications[Open API]
crates/jsonschema-referencing/benches/registry.rs::benches::bench_subresources::registry
CodSpeed Performance Gauge
0%
303.1 µs302.9 µs
evaluate[FHIR/Fhir]
crates/jsonschema/benches/jsonschema.rs::jsonschema::run_benchmarks
CodSpeed Performance Gauge
0%
219.7 µs219.5 µs

Commits

Click on a commit to change the comparison range
Base
master
b7d89f6
-0.23%
fix: `required` not enforced when `additionalProperties` is a schema object and `required` lists exactly 2 keys
bd0b0d3
7 days ago
by Stranger6667
© 2026 CodSpeed Technology
Home Terms Privacy Docs