@@ -28,7 +28,7 @@ func (g *generator) openAPITemplate() string {
2828 return filepath .Join (g .appPath , g .protoDir , "buf.gen.swagger.yaml" )
2929}
3030
31- func (g * generator ) generateOpenAPISpec (ctx context.Context ) error {
31+ func (g * generator ) generateOpenAPISpec (ctx context.Context , excludeList ... string ) error {
3232 var (
3333 specDirs = make ([]string , 0 )
3434 conf = swaggercombine .New ("HTTP API Console" , g .goModPath )
@@ -98,16 +98,19 @@ func (g *generator) generateOpenAPISpec(ctx context.Context) error {
9898 dir ,
9999 g .openAPITemplate (),
100100 cosmosbuf .ExcludeFiles (
101- "*/osmosis-labs/fee-abstraction/*" ,
102- "*/module.proto" ,
103- "*/testutil/*" ,
104- "*/testdata/*" ,
105- "*/cosmos/orm/*" ,
106- "*/cosmos/reflection/*" ,
107- "*/cosmos/app/v1alpha1/*" ,
108- "*/cosmos/tx/config/v1/config.proto" ,
109- "*/cosmos/msg/textual/v1/textual.proto" ,
110- "*/cosmos/vesting/v1beta1/vesting.proto" ,
101+ append (excludeList , []string {
102+ "*/strangelove_ventures/poa/*" ,
103+ "*/osmosis-labs/fee-abstraction/*" ,
104+ "*/module.proto" ,
105+ "*/testutil/*" ,
106+ "*/testdata/*" ,
107+ "*/cosmos/orm/*" ,
108+ "*/cosmos/reflection/*" ,
109+ "*/cosmos/app/v1alpha1/*" ,
110+ "*/cosmos/tx/config/v1/config.proto" ,
111+ "*/cosmos/msg/textual/v1/textual.proto" ,
112+ "*/cosmos/vesting/v1beta1/vesting.proto" ,
113+ }... )... ,
111114 ),
112115 cosmosbuf .FileByFile (),
113116 ); err != nil {
@@ -165,7 +168,7 @@ func (g *generator) generateOpenAPISpec(ctx context.Context) error {
165168 }
166169 }
167170
168- out := g .opts .specOut
171+ out := g .opts .openAPISpecOut
169172
170173 if ! hasAnySpecChanged {
171174 // In case the generated output has been changed
0 commit comments