From 279e7c2bf9adc63904960b7be10181260a679612 Mon Sep 17 00:00:00 2001 From: Darren Yong Date: Fri, 13 Sep 2024 13:49:26 -0700 Subject: [PATCH] chore: run prettier --- packages/oas/src/operation/index.ts | 2 +- .../oas/test/operation/lib/get-requestbody-examples.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/oas/src/operation/index.ts b/packages/oas/src/operation/index.ts index a58b2044..2608b5ba 100644 --- a/packages/oas/src/operation/index.ts +++ b/packages/oas/src/operation/index.ts @@ -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; diff --git a/packages/oas/test/operation/lib/get-requestbody-examples.test.ts b/packages/oas/test/operation/lib/get-requestbody-examples.test.ts index 3c8e647a..badc4da8 100644 --- a/packages/oas/test/operation/lib/get-requestbody-examples.test.ts +++ b/packages/oas/test/operation/lib/get-requestbody-examples.test.ts @@ -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, }, ], },