Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use proto to generate swager #692

Closed
yanrongliang opened this issue Mar 28, 2023 · 2 comments
Closed

use proto to generate swager #692

yanrongliang opened this issue Mar 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@yanrongliang
Copy link

hz 的命令可以通过 proto 生成 swagger 吗?类似 grpc-gateway?

@github-actions github-actions bot added the invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) label Mar 28, 2023
@github-actions
Copy link

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 3 days if no further activity occurs.

@github-actions github-actions bot added the stale label Mar 28, 2023
@Duslia Duslia added enhancement New feature or request and removed invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) stale labels Mar 28, 2023
@FGYFFFF
Copy link
Contributor

FGYFFFF commented Mar 28, 2023

Another plugin is needed to generate swagger(https://github.com/google/gnostic/tree/main/cmd/protoc-gen-openapi):

Make sure your go_package is defined as follows:
option go_package="{$MODULE_NAME}/{$MODEL_DIR}/xxx"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants