Merge remote-tracking branch 'origin/main'

This commit is contained in:
CalciumIon
2024-12-23 20:48:31 +08:00

View File

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