Joe Spencer
Joe Spencer
`express-openapi` supports this. See `x-express-openapi-additional-middleware`: https://github.com/kogosoftwarellc/express-openapi#configuring-middleware
@MichaelSu1983 one way to solve this is to use https://github.com/kogosoftwarellc/open-api
@rkarodia the current spec (as it currently stands), really doesn't allow operations to sometimes require authorization. They either always require it or they never require it.
@shattar that's the approach we've taken with [express-openapi](https://www.npmjs.com/package/express-openapi) and it's worked out incredibly well.
`express-openapi` _is_ design driven in the sense that your directory structure mirrors your paths.
right, so there isn't a generator for `express-openapi` if that's what you mean.
FYI, [express-openapi](https://github.com/kogosoftwarellc/express-openapi/blob/master/README.md#argspromisemode) supports this.
> express-openapi does not work out of the box for me @juliusza what issue were you having? Can you open one? https://github.com/kogosoftwarellc/express-openapi/issues
I'm now using [express-openapi](https://www.npmjs.com/package/express-openapi), and find it's usage of `jsonpath` to be a lot more stable. Perhaps switching to `jsonpath` would make the transition smoother and resolve a lot of...
Not trying to troll, but with `express-openapi` we actually flipped it. So instead of the library fetching the external schemas, we require the application to fetch them _before_ initializing the...