We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f83cfee + c8feb9e commit 71503a0Copy full SHA for 71503a0
src/definitionGenerator.js
@@ -151,10 +151,10 @@ class DefinitionGenerator {
151
path.servers = servers
152
}
153
154
- let slashPath = event?.http?.path || event.httpApi?.path
+ let slashPath = (event?.http?.path || event.httpApi?.path) ?? '/'
155
const pathStart = new RegExp(/^\//, 'g')
156
if (pathStart.test(slashPath) === false) {
157
- slashPath = `/${event?.http?.path||event.httpApi?.path}`
+ slashPath = `/${(event?.http?.path||event.httpApi?.path)?? ''}`
158
159
160
if (paths[slashPath]) {
0 commit comments