Fix ExportSettings endpoint

This commit is contained in:
2023-12-15 09:25:29 -08:00
parent 993d64b9d1
commit 27fc1cd810
4 changed files with 1271 additions and 1241 deletions

View File

@@ -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,