Skip to content

Commit ea8d6bc

Browse files
authored
Merge pull request #10 from tellihealth/feature/support_for_openapi_paths
feat - little code refactoring
2 parents 783940e + b53682a commit ea8d6bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/definitionGenerator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ class DefinitionGenerator {
273273
mergeExistingPaths() {
274274
const paths = this.serverless.service.custom.documentation.paths;
275275

276-
const origPaths = this.openAPI.paths || {};
277-
278276
if (paths) {
277+
const origPaths = this.openAPI.paths || {};
278+
279279
Object.assign(this.openAPI, { paths: { ...origPaths, ...paths } });
280280
}
281281
}

0 commit comments

Comments
 (0)