openapi: Use indentations for human-readable JSON (#53707)

This commit is contained in:
sam boyer 2022-08-15 15:39:18 -04:00 committed by GitHub
parent a19d82124b
commit 4a5afe4fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18003 additions and 6234 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -49,7 +49,7 @@ func main() {
// a URL. Adding this will ensure that all the api calls start with "/api".
doc3.AddServer(&openapi3.Server{URL: "/api"})
j3, err := doc3.MarshalJSON()
j3, err := json.MarshalIndent(doc3, "", " ")
if err != nil {
panic(err)
}