nestjs / azure-func-http

Azure Functions HTTP adapter for Nest framework (node.js) 🌥
https://nestjs.com/
MIT License
151 stars 42 forks source link

Make nest openapi impl better with azurefx #850

Closed kbocock-krg closed 1 year ago

kbocock-krg commented 2 years ago

I'm submitting a help request.


[ ] Regression 
[ ] Bug report
[ ] Feature request
[ x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

using the swagger module with azure fx (express) requires several things be in sync:

  1. Port of azure fx and app.listen must be in sync.
  2. Use swagger module global Prefix option must be true if using global prefix.
  3. Set basepath option must be equal to .setup(, ...
  4. Not doing these 3 things will never load all the js required by swagger page when using nestjs with azurefx.

Expected behavior

app.init seems to be 100% required to work. app.listen seems to be essential to getting swagger to work on the same port. Please encapsulate this behavior.

Minimal reproduction of the problem with instructions

[]1. (https://trilon.io/blog/deploy-nestjs-azure-functions)

  1. then add your openapi module and configure it.

What is the motivation / use case for changing the behavior?

do more with less.

Environment


Nest version: X.Y.Z


For Tooling issues:
- Node version: XX  
- Platform:  

Others:

kamilmysliwiec commented 1 year ago

Thanks for your suggestion!

There are no plans to implement it in the foreseeable future.

If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.