Skip to content

Commit 75e44fe

Browse files
committed
update test due to schemars fix
1 parent de303ab commit 75e44fe

File tree

1 file changed

+1
-8
lines changed
  • lib/dsc-lib-jsonschema/src/tests/schema_utility_extensions

1 file changed

+1
-8
lines changed

lib/dsc-lib-jsonschema/src/tests/schema_utility_extensions/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -623,13 +623,6 @@ test_cases_for_get_keyword_as_mut!(
623623
None
624624
);
625625
}
626-
/// Inverted the test - current logic fails due to a bug in [`schemars::Schema::pointer_mut()`],
627-
/// see [schemars#478].
628-
///
629-
/// This bug will be fixed when schemars merges [schemars#479] and makes a new release.
630-
///
631-
/// [schemars#478]: https://github.com/GREsau/schemars/issues/478
632-
/// [schemars#479]: https://github.com/GREsau/schemars/pull/479
633626
#[test] fn with_defs_pointer_reference() {
634627
let ref mut schema = json_schema!({
635628
"$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -647,7 +640,7 @@ test_cases_for_get_keyword_as_mut!(
647640
"title": "Foo"
648641
});
649642

650-
assert_ne!(
643+
assert_eq!(
651644
schema.get_defs_subschema_from_reference_mut("#/$defs/foo"),
652645
expected.as_object_mut()
653646
);

0 commit comments

Comments
 (0)