Closed godcong closed 2 weeks ago
I cloned the repro and unfortunately there doesn't seem to be a buf.gen.yaml
present in the repository you provided?
That being said, looking at your issue description:
It looks like, buf is splitting the proto into multiple commands for different directories.
The strategy key in buf.gen.yaml
might be helpful to you. The default is to split the input file by directory and run the plugin across each. However, if you set strategy: all
for your plugin, it will run the plugin against your entire.
@doriable Thanks for the reply.
I fixed buf.gen.yaml
https://github.com/origadmin/basic-layout/blob/a84adaa12633071b85cdb1645d71007f8338f0cb/buf.gen.yaml
That's ok~
GitHub repository with your minimal reproducible example (do not leave this field blank or fill out this field with "github.com/bufbuild/buf" or we will automatically close your issue, see the instructions above!)
https://github.com/origadmin/basic-layout
Commands
Output
Expected Output
output api into openapi.yaml with no errors
Anything else?
The openapi tool used
and uncomment this at file buf.gen.yaml on root directory:
It looks like, buf is splitting the proto into multiple commands for different directories.