Skip to content

Commit

Permalink
stringify spec with formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilShahi committed Aug 7, 2022
1 parent ddd779f commit 109e619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/endpoints/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class EndpointsService {
}
endpoint.openapiSpec = spec;
}
spec.spec = JSON.stringify(openApiSpec);
spec.spec = JSON.stringify(openApiSpec, null, 2);
await openApiSpecRepository.save(spec);
await apiEndpointRepository.save(endpoints);
});
Expand Down

0 comments on commit 109e619

Please sign in to comment.