docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

Path with a custom verb (/first/second/path:custom-verb) is not picked up properly

Open nberdic-smallpdf opened this issue 1 year ago • 0 comments

Describe the bug

I have an openapi.yaml file that has one path that is in this form POST /first/second/path:custom-verb. This path is not generated properly by docusaurus. Instead of having code examples using this path, it defaulted to the server URL and GET method.

Expected behavior

The generated examples of code should target the path even though it uses a custom-verb approach with colon.

Current behavior

Defaults to the main server URL with GET method

Steps to reproduce

  1. Create an openapi.yaml or update an existing with a path1/path2:custom-verb
  2. Run npm run docusaurus gen-api-docs all
  3. Run application

Screenshots

You can see the issue here. Even though it is displayed well on the left, it is not used correctly on the right.

Your Environment

  • Version used: 3.4.0
  • Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3):
    • Chrome 129.0.6668.90
    • Node v20.12.2
  • Operating System and version (desktop or mobile): desktop
  • Link to your project: private

nberdic-smallpdf avatar Oct 11 '24 07:10 nberdic-smallpdf