mirror of
https://github.com/grafana/grafana.git
synced 2024-11-21 16:38:03 -06:00
openapi: Use indentations for human-readable JSON (#53707)
This commit is contained in:
parent
a19d82124b
commit
4a5afe4fb6
File diff suppressed because it is too large
Load Diff
3124
public/api-spec.json
3124
public/api-spec.json
File diff suppressed because it is too large
Load Diff
17990
public/openapi3.json
17990
public/openapi3.json
File diff suppressed because one or more lines are too long
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user