express-openapi-validator: Endless loop caused by json-schema-ref-parser
Hello!
For some strange reason I yet not know, the “bundle” method of the class “$RefParser” seems to cause an endless loop on line 16: https://github.com/cdimascio/express-openapi-validator/blob/b8e34304ab5c2821a51c986e43b4b6ae4db51d05/src/framework/json.ref.schema.ts#L16
As I am the first one with this issue, maybe it is caused by my setup.
Those are my dependencies:
{
"@typegoose/typegoose": "^6.1.5",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-openapi-validator": "^2.17.2",
"express-session": "^1.17.0",
"mongoose": "^5.7.12",
"openid-client": "^3.8.3",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"swagger-ui-express": "^4.1.2",
"webpack-pwa-manifest": "^4.0.0",
"workbox-webpack-plugin": "^3.6.3",
"yamljs": "^0.3.0"
}
I also tried using different OpenAPI specs (also the one in the tests directory of this repo), with the same result.
Maybe it’s a dependecy conflict somehow?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (8 by maintainers)
I’ll create a minimal example today after work. Thanks in the mean time!