From 91f12a6bbe15bc392b0d9b31cd58785f197572c7 Mon Sep 17 00:00:00 2001 From: Dmitry Ostrikov Date: Mon, 22 Apr 2024 15:21:56 +0400 Subject: [PATCH] fix(oas): address formatting issues closes #242 --- packages/oas/src/converter/DefaultConverter.ts | 5 ++--- ...th-item.ignore-non-http-method-properties.oas.result.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/oas/src/converter/DefaultConverter.ts b/packages/oas/src/converter/DefaultConverter.ts index f1d618ac..182726e1 100644 --- a/packages/oas/src/converter/DefaultConverter.ts +++ b/packages/oas/src/converter/DefaultConverter.ts @@ -50,9 +50,8 @@ export class DefaultConverter implements Converter { return Object.entries(this.spec.paths).flatMap( ([path, pathMethods]: [string, PathItemObject]) => Object.keys(pathMethods) - .filter( - (method: string) => - this.ALLOWED_METHODS.includes(method.toUpperCase()) + .filter((method: string) => + this.ALLOWED_METHODS.includes(method.toUpperCase()) ) .map((method) => this.createHarEntry(path, method)) ); diff --git a/packages/oas/tests/fixtures/path-item.ignore-non-http-method-properties.oas.result.json b/packages/oas/tests/fixtures/path-item.ignore-non-http-method-properties.oas.result.json index c6401da4..df58d652 100644 --- a/packages/oas/tests/fixtures/path-item.ignore-non-http-method-properties.oas.result.json +++ b/packages/oas/tests/fixtures/path-item.ignore-non-http-method-properties.oas.result.json @@ -22,4 +22,4 @@ "queryString": [], "url": "http://localhost:8888/identity/api/auth/signup" } -] \ No newline at end of file +]