Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenyong committed Sep 13, 2024
1 parent 9d9f7ca commit 279e7c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/oas/src/operation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ export class Operation {
*
*/
getRequestBodyExamples(): RequestBodyExamples {
const isRequestExampleValueDefined = typeof this.requestBodyExamples?.[0]?.examples?.[0].value !== 'undefined'
const isRequestExampleValueDefined = typeof this.requestBodyExamples?.[0]?.examples?.[0].value !== 'undefined';

if (this.requestBodyExamples && isRequestExampleValueDefined) {
return this.requestBodyExamples;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test('should generate a request example for an operation with an undefined examp
mediaType: 'application/json',
examples: [
{
value: undefined
value: undefined,
},
],
},
Expand Down

0 comments on commit 279e7c2

Please sign in to comment.