Обновить зависимости проекта
This commit is contained in:
1 parent
c7e5efa976
commit
fd8571ad10
20 files changed
+773
-1073
No files matched your search
@@ -193,10 +193,10 @@ fn text(value: &Value, key: &str) -> Option<String> {
|
||||
|
||||
fn collapse_composition(value: &Value) -> Value {
|
||||
for key in ["allOf", "oneOf", "anyOf"] {
|
||||
if let Some(items) = value.get(key).and_then(Value::as_array) {
|
||||
if let Some(first) = items.first() {
|
||||
return first.clone();
|
||||
}
|
||||
if let Some(items) = value.get(key).and_then(Value::as_array)
|
||||
&& let Some(first) = items.first()
|
||||
{
|
||||
return first.clone();
|
||||
}
|
||||
}
|
||||
value.clone()
|
||||
|
||||
Reference in new issue
Block a user