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.
1 parent f83cfee commit c8feb9eCopy full SHA for c8feb9e
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