Преглед на файлове

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

fix-gemini-json-schema
Calcium-Ion преди 1 година
родител
ревизия
eec8f523ce
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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")