Documentation for the go-server Generatorで、routerはmuxとchiが選べると書いてあって、省略時はmuxとのこと。
chiの指定方法がわからなかったので調べた。
$ wget https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml
$ docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
-i /local/petstore.yaml \
-g go-server \
--additional-properties=router=chi \
-o /local/out
と、--additional-propertiesにつけるらしい。、
他のパラメータ、たとえばsererPortも指定したい場合はカンマ区切りで--additional-properties=router=chi,sererPort=18080こう。
ちゃんとドキュメントに書かれているけど、あまり見ない書き方なので備忘録として。