-
Notifications
You must be signed in to change notification settings - Fork 81
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
Relative paths not supported #87
Comments
If you want to use external references like this, you can use That being said, we need to build support for this in directly. |
HI |
We're working on making references resolve automatically. But the way around this is to resolve references before hand: import Express from 'express';
import Swaggerize from 'swaggerize-express';
import Resolver from 'extrefs';
const app = Express();
Resolver(api).resolve((error, schemas) => {
app.use(Swaggerize({ api, handlers, schemas}));
//etc
}); |
I'm now using express-openapi, and find it's usage of |
We're working on conversion to use swagger-parser but integration with an asynchronous resolver requires some work to maintain consistency with the current API. |
I kept getting this with something like
"$ref": "Address.json"
in one of my definitions. The definition file had a siblingAddress.json
file in the same directory.Here's the error:
Not really sure how it could work though as
swaggerize-express
is expectingdefinitions
to be an object:See the docs for reference object
The text was updated successfully, but these errors were encountered: