Coder Social home page Coder Social logo

Comments (4)

XanderEndre avatar XanderEndre commented on August 17, 2024

Opened PR #869 to resolve this issue.

from open-api.

renkei avatar renkei commented on August 17, 2024

Opened another PR #877 that modifies fs-routes instead and fixes this issue and also #871

from open-api.

vJan00 avatar vJan00 commented on August 17, 2024

Still a problem over here - any workarounds yet?

from open-api.

anthonyloukinas avatar anthonyloukinas commented on August 17, 2024

I'm also still seeing this issue:

\node_modules\path-to-regexp\index.js:128
  return new RegExp(path, flags);
         ^
SyntaxError: Invalid regular expression: /^\/api\v1\users\(?:([^\/]+?))\/?$/: Unmatched ')'
    at new RegExp (<anonymous>)
    at pathtoRegexp (D:\Projects\REDACTED\REDACTED-api\node_modules\path-to-regexp\index.js:128:10)
    at new Layer (D:\Projects\REDACTED\REDACTED-api\node_modules\express\lib\router\layer.js:45:17)
    at Function.route (D:\Projects\REDACTED\REDACTED-api\node_modules\express\lib\router\index.js:505:15)
    at Function.app.<computed> [as get] (D:\Projects\REDACTED\REDACTED-api\node_modules\express\lib\application.js:498:30)
    at Object.visitOperation (D:\Projects\REDACTED\REDACTED-api\node_modules\express-openapi\index.ts:205:25)
    at D:\Projects\REDACTED\REDACTED-api\node_modules\openapi-framework\index.ts:605:19
    at Set.forEach (<anonymous>)
    at D:\Projects\REDACTED\REDACTED-api\node_modules\openapi-framework\index.ts:364:9
    at Array.forEach (<anonymous>)

I also have a similar structure where I'm using {id}.js. This issue only happens on Windows, my Mac/Linux workstations don't have these issues.

Package.json

"express-openapi": "^12.1.3"

from open-api.

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.