Skip to content

Commit

Permalink
JSON stringify errors to view more info of params (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
vctqs1 committed Feb 7, 2023
1 parent c8f15c7 commit 3387e6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/services/openapi-service.ts
Expand Up @@ -74,7 +74,10 @@ export class OpenApiService {
const errors = validateSchema<S>(schema, data);

if (errors) {
this.logger.debug('Invalid response:', errors);
this.logger.debug(
'Invalid response:',
JSON.stringify(errors, null, 4),
);
}

Object.entries(headers).forEach(([header, value]) =>
Expand Down

0 comments on commit 3387e6f

Please sign in to comment.