oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

How to generate wildcard route for gin?

Open kofj opened this issue 3 years ago • 1 comments

Normally, if we defined a path parameter, it will generate a route like /special/{:action} for gin. I want to know, how to generate a route like /special/*action.

kofj avatar Aug 11 '22 11:08 kofj

wildcard routes are not part of the official open api specification. some Java libraries allow that, but that's basically not standardized behavior.

jxsl13 avatar Aug 11 '22 11:08 jxsl13

@kofj what are you trying to get generated here? As John mentions, if we can't describe it with OpenAPI, this won't be generatable

jamietanna avatar Aug 16 '22 17:08 jamietanna