Skip to content

Router incorrectly treats distinct path params as duplicate routes #119

@skonves

Description

@skonves

Given two similar routes:

  1. GET /pets/{animalType}
  2. DELETE /pets/{petId}

The generated router factory makes it so whichever route is defined second in the OpenAPI spec returns "method not allowed" since the patterns match each other, but the path params are different.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions