Hilzu / express-openapi-validate

Express middleware to validate requests based on an OpenAPI 3 document
Apache License 2.0
76 stars 12 forks source link

Fix: "Paths Object" sometimes has "parameters". #18

Closed mochiya98 closed 6 years ago

mochiya98 commented 6 years ago

This resolves:

/hoge/{id}:
  # <sometimes parameters here.>
  parameters:
  - $ref: '#/components/parameters/id'
  get:
    responses:
      '200':
        description: Response

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md
Thanks.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling c549847f22558fef85048993ec6af126417a3a43 on mochiya98:master into 1ce6b50aac375da22dddde880a10f02ada9c9038 on Hilzu:master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling c549847f22558fef85048993ec6af126417a3a43 on mochiya98:master into 1ce6b50aac375da22dddde880a10f02ada9c9038 on Hilzu:master.

mochiya98 commented 6 years ago

I see. I'm sorry if making you hurry.
p.s. This may not be the best solution.

Sorry for not supporting Windows in the scripts. That's something I need to fix.

Don't worry about it. I'm using wsl.