We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tried to initialize like this using a basic swagger json on Windows: swaggerRoutes(server, { api: './definitions/openapi.json', handlers: { path: './dist/handlers/v1', template: './definitions/template/handler.mustache', getTemplateView: (operation) => operation,template generate: enableCodeGenerator, group: false, }, authorizers: './src/security/v1', });
swaggerRoutes(server, { api: './definitions/openapi.json', handlers: { path: './dist/handlers/v1', template: './definitions/template/handler.mustache', getTemplateView: (operation) => operation,template generate: enableCodeGenerator, group: false, }, authorizers: './src/security/v1', });
However, getting error:
AssertionError [ERR_ASSERTION]: The first character of a path should be / or *
/
*
After doing some investigation found that this is caused by line 35 on routerRegister.js file
routerRegister.js
Changed path.normalize to path.posix.normalize and it fixed the issue.
path.normalize
path.posix.normalize
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tried to initialize like this using a basic swagger json on Windows:
swaggerRoutes(server, { api: './definitions/openapi.json', handlers: { path: './dist/handlers/v1', template: './definitions/template/handler.mustache', getTemplateView: (operation) => operation,template generate: enableCodeGenerator, group: false, }, authorizers: './src/security/v1', });
However, getting error:
After doing some investigation found that this is caused by line 35 on
routerRegister.js
fileChanged
path.normalize
topath.posix.normalize
and it fixed the issue.The text was updated successfully, but these errors were encountered: