Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nberdic-smallpdf opened this issue Oct 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nberdic-smallpdf
Copy link

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 nberdic-smallpdf added the bug Something isn't working label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant