Prechádzať zdrojové kódy

Merge pull request #651 from tenacioustommy/fix-gemini-json

fix-gemini-json-schema
Calcium-Ion 1 rok pred
rodič
commit
eec8f523ce
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      relay/channel/gemini/relay-gemini.go

+ 1 - 1
relay/channel/gemini/relay-gemini.go

@@ -206,7 +206,7 @@ func removeAdditionalPropertiesWithDepth(schema interface{}, depth int) interfac
 	if typeVal, exists := v["type"]; !exists || (typeVal != "object" && typeVal != "array") {
 	if typeVal, exists := v["type"]; !exists || (typeVal != "object" && typeVal != "array") {
 		return schema
 		return schema
 	}
 	}
-
+	delete(v, "title")
 	switch v["type"] {
 	switch v["type"] {
 	case "object":
 	case "object":
 		delete(v, "additionalProperties")
 		delete(v, "additionalProperties")