Fix ExportSettings endpoint
This commit is contained in:
@@ -77,6 +77,11 @@ func (e *Extractor) Extract() ([]Route, []Struct) {
|
||||
returnID := signature.Get("type.typeArguments.0.target").Int()
|
||||
returnName := signature.Get("type.typeArguments.0.name").String()
|
||||
|
||||
anyType := false
|
||||
if returnName == "any" {
|
||||
anyType = true
|
||||
}
|
||||
|
||||
// Get the referenced structs from the JSON document
|
||||
e.getStructs([]int64{paramsID, returnID}, structs)
|
||||
|
||||
@@ -102,6 +107,10 @@ func (e *Extractor) Extract() ([]Route, []Struct) {
|
||||
returnName = ""
|
||||
}
|
||||
|
||||
if anyType {
|
||||
returnName = "map[string]any"
|
||||
}
|
||||
|
||||
out = append(out, Route{
|
||||
Name: name,
|
||||
Summary: summary,
|
||||
|
||||
Reference in New Issue
Block a user