jhthorsen / mojolicious-plugin-openapi

OpenAPI / Swagger plugin for Mojolicious
54 stars 44 forks source link

`operationId` broke route #74

Closed KES777 closed 6 years ago

KES777 commented 6 years ago

For case when routes are defined in application as next:

/countries * "countries"
+/:id GET "show_country"
+/:id PUT "update_country"

Where countries route define controller# and show/update country define #action

Then spec:

paths:
  /countries/{id}:
    get:
      operationId: show_country

will cause show_country moved under /api. And it will be broken because it have not info about controller

jhthorsen commented 6 years ago

I don't get it. Can you provide a small example application/spec?

jhthorsen commented 6 years ago

Closing this because of inactivity. Please re-open if you have further information / test case.