Skip to content

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

Closed

Description

@nikola-berdic

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

Activity

  1. added
    bug
    on Oct 11, 2024
  2. adamkvitek commented on Sep 1, 2025

    @adamkvitek

    Hello @sserrata, please let us know if you need more context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions