Commit ace677b3 by CaIon

refactor: remove unsupported 'exclusiveMinimum' field from cleanFunctionParameters

parent 6e2e10ad
...@@ -301,10 +301,11 @@ func cleanFunctionParameters(params interface{}) interface{} { ...@@ -301,10 +301,11 @@ func cleanFunctionParameters(params interface{}) interface{} {
} }
// Remove unsupported root-level fields // Remove unsupported root-level fields
delete(cleanedMap, "$schema")
delete(cleanedMap, "additionalProperties")
delete(cleanedMap, "default") delete(cleanedMap, "default")
delete(cleanedMap, "exclusiveMaximum") delete(cleanedMap, "exclusiveMaximum")
delete(cleanedMap, "exclusiveMinimum")
delete(cleanedMap, "$schema")
delete(cleanedMap, "additionalProperties")
// Clean properties // Clean properties
if props, ok := cleanedMap["properties"].(map[string]interface{}); ok && props != nil { if props, ok := cleanedMap["properties"].(map[string]interface{}); ok && props != nil {
...@@ -325,6 +326,7 @@ func cleanFunctionParameters(params interface{}) interface{} { ...@@ -325,6 +326,7 @@ func cleanFunctionParameters(params interface{}) interface{} {
// Remove unsupported fields // Remove unsupported fields
delete(cleanedPropMap, "default") delete(cleanedPropMap, "default")
delete(cleanedPropMap, "exclusiveMaximum") delete(cleanedPropMap, "exclusiveMaximum")
delete(cleanedPropMap, "exclusiveMinimum")
delete(cleanedPropMap, "$schema") delete(cleanedPropMap, "$schema")
delete(cleanedPropMap, "additionalProperties") delete(cleanedPropMap, "additionalProperties")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment