mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
Add interface{} to openapi basic types
This commit is contained in:
parent
9590b94f7c
commit
2413fe15ee
@ -144,6 +144,7 @@ func GetOpenAPITypeFormat(typeName string) (string, string) {
|
|||||||
"number": {"number", ""},
|
"number": {"number", ""},
|
||||||
"boolean": {"boolean", ""},
|
"boolean": {"boolean", ""},
|
||||||
"[]byte": {"string", "byte"}, // base64 encoded characters
|
"[]byte": {"string", "byte"}, // base64 encoded characters
|
||||||
|
"interface{}": {"object", ""},
|
||||||
}
|
}
|
||||||
mapped, ok := schemaTypeFormatMap[typeName]
|
mapped, ok := schemaTypeFormatMap[typeName]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user