Skip to content

Commit

Permalink
chore: use for pretty printing rather than literal tab
Browse files Browse the repository at this point in the history
Co-authored-by: EwenQuim <ewen.quimerch@gmail.com>
  • Loading branch information
dylanhitt and EwenQuim committed Dec 24, 2024
1 parent 8d21160 commit c2dec21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (s *Server) OutputOpenAPISpec() openapi3.T {

func (s *Server) marshalSpec() ([]byte, error) {
if s.OpenAPIConfig.PrettyFormatJson {
return json.MarshalIndent(s.OpenAPI.Description(), "", " ")
return json.MarshalIndent(s.OpenAPI.Description(), "", "\t")
}
return json.Marshal(s.OpenAPI.Description())
}
Expand Down

0 comments on commit c2dec21

Please sign in to comment.