Generic datastore service with basic indexing and querying capabilities, ts client generation (#52)

This commit is contained in:
Janos Dobronszki
2021-02-03 13:20:07 +00:00
committed by GitHub
parent c19bf17fb5
commit a102d9e5f3
32 changed files with 5010 additions and 626 deletions

View File

@@ -157,7 +157,7 @@ var servicesToTags = map[string][]string{
"posts": []string{"Headless CMS"},
"tags": []string{"Headless CMS"},
"feeds": []string{"Headless CMS"},
"chat": []string{"Communications"},
"datastore": []string{"Backend"},
"geocoding": []string{"Logistics"},
"places": []string{"Logistics"},
"routing": []string{"Logistics"},
@@ -214,7 +214,7 @@ func saveSpec(originalMarkDown []byte, contentDir, serviceName string, spec *ope
if len(parts) <= 1 {
return string(bs)
}
parts[len(parts)-1] = strings.Repeat(" ", prepend) + parts[len(parts)-1]
parts[len(parts)-1] = parts[len(parts)-1]
return strings.Join(parts, "\n")
}
}
@@ -265,6 +265,13 @@ func schemaToMap(spec *openapi3.SchemaRef, schemas map[string]*openapi3.SchemaRe
k = strcase.SnakeCase(k)
//v.Value.
if v.Value.Type == "object" {
// @todo identify what is a slice and what is not!
// currently the openapi converter messes this up
// see redoc html output
ret[k] = recurse(v.Value.Properties)
continue
}
if v.Value.Type == "array" {
// @todo identify what is a slice and what is not!
// currently the openapi converter messes this up
// see redoc html output