Giter Site home page Giter Site logo

Comments (6)

Joshua-Tu avatar Joshua-Tu commented on May 25, 2024

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.

Joshua-Tu avatar Joshua-Tu commented on May 25, 2024

@alesancor1 Hi, could I know when this bug will be fixed?

from oas-tools.

alesancor1 avatar alesancor1 commented on May 25, 2024

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.

alesancor1 avatar alesancor1 commented on May 25, 2024

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.

Joshua-Tu avatar Joshua-Tu commented on May 25, 2024

@alesancor1 is this fix in the incoming version 3.1.0 or the current latest version?

from oas-tools.

alesancor1 avatar alesancor1 commented on May 25, 2024

@Joshua-Tu I just published v3.1.0 containing this change :)

from oas-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.