-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
library is not picking up the paths in my express application #30
Comments
Hey! At first glance this looks like a known issue with nested groups (IIRC it was nested routers). I dont think I see you post what |
Hey @jamesone, are you still experienceing this issue? Any chance you could look and see if it was the same issue? We are going to work toward a 1.0.0 for this package soon and I would like to fix this if we can get confirmation about the behavior which is broken. |
I ran into this issue early on too, it's similar to issue #20 but placing For example:
Should be:
|
Ah, I wonder if we need docs for this? Or do we think we should support any order for adding these and then call this a bug? |
@wesleytodd I think that is up to you. I assumed placing |
Yeah, I am. not sure the best approach. How about we just leave this open for now, and when one of us get's to it (or we hear back) we can add tests around this behavior and decide from there what the best "fix" would be (docs or code). |
My openapi.helper.ts file (which is located in:
src/helpers/
:Then inside my express app configuration file located in:
src/app.ts
, I am passing the openapi export to the app.use:I also tried:
I also tried adding adding openapi to my routes export.
routes.use(openapi)
but it still couldn't pick up the paths, like so:routes.ts:
When trying to visit the
<path>/openapi.json
, it always returns an empty 'paths' object.The libs I am using are:
I am using
nodejs 16
&"express": "^4.17.1",
,"@wesleytodd/openapi": "^0.1.0",
The text was updated successfully, but these errors were encountered: