-
-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
Is there currently functionality to transform a JSON Schema with $ref properties into a dereferenced JSON Schema (with sub-schema containing $ref properties replaced by the referenced schema)? e.g.
let mut schema = json!({
"properties": {
"foo": {"title": "Foo"},
"bar": {"$ref": "#/properties/foo"}
}
});
JSONSchema::dereference(&mut schema);
assert_eq!(schema, json!({
"properties": {
"foo": {"title": "Foo"},
"bar": {"title": "Foo"}
}
}))SteveL-MSFT, thebearingedge, mrsameman, Stef16Robbe, Stranger6667 and 2 more