Commit 2629825
committed
(GH-538) Return
This change:
- Updates the following functions to return instances of `schemars::Schema`
instead of `Map<String, Value>`, since the returned data is _always_ a
subschema, if it exists:
- `get_defs_subschema_from_id()`
- `get_defs_subschema_from_id_mut()`
- `get_defs_subschema_from_reference()`
- `get_defs_subschema_from_reference_mut()`
- `get_property_subschema()`
- `get_property_subschema_mut()`
- Removes the type aliases `Object` (for `Map<String, Value>`) and `Array`
(for `Vec<Value>`), as these conveniences weren't saving much typing and
Rust Analyzer wasn't always plumbing them through for IntelliSense. The
uses of these aliases now revert to calling the underlying types.
- Updates documentation and tests for the modified functions.Schema for subschema extension methods1 parent eb4d352 commit 2629825
File tree
2 files changed
+100
-112
lines changed- lib/dsc-lib-jsonschema/src
- tests/schema_utility_extensions
2 files changed
+100
-112
lines changed
0 commit comments