Skip to content

Commit

Permalink
fix(#265): fix format for generated api json file (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
supereagle authored and caicloud-bot committed Mar 21, 2019
1 parent 18e1fe7 commit 7c25660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nirvana/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (o *apiOptions) Run(cmd *cobra.Command, args []string) error {

files := map[string][]byte{}
for _, s := range swaggers {
data, err := json.Marshal(s)
data, err := json.MarshalIndent(s, "", " ")
if err != nil {
return err
}
Expand Down

0 comments on commit 7c25660

Please sign in to comment.