Skip to content

Commit b5fcb10

Browse files
committed
format
1 parent bfe1809 commit b5fcb10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xdk-openapi/src/reference.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ impl<T: Clone + Serialize + Any> Serialize for RefOrValue<T> {
7979
// First serialize the resolved value to a serde_json::Value
8080
let resolved_json = serde_json::to_value(resolved.as_ref())
8181
.map_err(serde::ser::Error::custom)?;
82-
82+
8383
if let serde_json::Value::Object(mut obj) = resolved_json {
8484
// Add the $ref path to the object so templates can still extract type names
8585
obj.insert("$ref".to_string(), serde_json::Value::String(path.clone()));
8686
return obj.serialize(serializer);
8787
}
88-
88+
8989
// If not an object, just serialize the resolved value
9090
resolved.serialize(serializer)
9191
} else {

0 commit comments

Comments
 (0)