Comments (6)
Hi, @alesancor1 noticed that there are still no replies on this one, is it going to be fixed in the next release?
from oas-tools.
@alesancor1 Hi, could I know when this bug will be fixed?
from oas-tools.
It may take a while, there are many other things to be fixed and I'm currently working on other projects. I will come back to Oas Tools as soon as I can.
from oas-tools.
This issue has been fixed at eaf73a0. The problem was caused by the way middlewares were being registered, since each middleware was being registered for each path. I modified the code so every middleware is registered for a single path before moving to the next path for registration.
This way, the middleware chain now follows express logic. Static routes should be placed before dynamic routes in OAS Document in order for them to take precedence. The order they are registered in express is the same you write in the OAS Document.
from oas-tools.
@alesancor1 is this fix in the incoming version 3.1.0 or the current latest version?
from oas-tools.
@Joshua-Tu I just published v3.1.0 containing this change :)
from oas-tools.
Related Issues (20)
- [BUG] server property in swagger file no longer working HOT 9
- While running oas-tools with jest for unit test cases it throws error: 'request for ./middleware/index.js is not yet fulfilled' HOT 5
- Add a way for controllers to handle async exceptions HOT 1
- How to use http query params with oas tools? HOT 3
- @oas-tools/core typescript support HOT 9
- [Suggestion] Change middleware chain order (Swagger UI not working) HOT 4
- [BUG] oas tool 3.0 fail to treat optional field in schema as option. HOT 9
- [BUG] V3 Not Backwards Compatible with V2 JSON Specification File Code HOT 1
- [BUG] Cannot convert undefined or null to object oas param file has issue HOT 2
- [BUG] File spec loading error in legacy project HOT 2
- oas tools module import issue when doing tests with jest. HOT 9
- Align js-yaml version with @oas-tools/commons HOT 1
- [BUG] JSON double-encoding when using res.json() and validator.responseValidation HOT 3
- [BUG] oneof yaml specification is not valid json HOT 1
- [Question]: Controller & Service file naming convention HOT 2
- [SUGGESTION] Problem with default exports "Controller X does not have method Y" HOT 1
- [BUG] customHandler for errors is not working as expected HOT 2
- Basepath is removed when calling any endpoint on google cloud functions. HOT 1
- [SUGESTION] Add support for mutualTLS security handler HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oas-tools.