We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7816e1e commit d3f759fCopy full SHA for d3f759f
server/src/storage/object_storage.rs
@@ -194,6 +194,17 @@ pub trait ObjectStorage: Sync + 'static {
194
"metadata".to_string(),
195
Value::Object(serde_json::Map::new()),
196
);
197
+
198
+ for field in schema["fields"]
199
+ .as_array_mut()
200
+ .expect("fields is json array")
201
+ {
202
+ let map = field.as_object_mut().unwrap();
203
+ map.insert(
204
+ "metadata".to_string(),
205
+ Value::Object(serde_json::Map::new()),
206
+ );
207
+ }
208
}
209
210
Ok(serde_json::from_value(schema_map)
0 commit comments