Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.

License

Notifications You must be signed in to change notification settings

pubgo/protoc-gen-openapi

Open more actions menu

Repository files navigation

protoc-gen-openapi

  • 本项目一个 protobuf openapi 插件的实现
  • 本项目早期参考了protoc-gen-openapi, 由于 gnostic 长时间不更新,并发现了优秀的替代品protoc-gen-connect-openapi, 现在基于protoc-gen-connect-openapi 做了部分修改
  • internal/converter 大部分都是来自于 protoc-gen-connect-openapi, copy.go 部分是自己的实现

为什么修改 protoc-gen-connect-openapi

  • protoc-gen-connect-openapi 刚好和本项目早期底层使用一致, 为本项目重构提供了很好的思路和想法
  • protoc-gen-connect-openapi 是为了 connect-go 生成 openapi 文档, 包含不少 connect 关键词
  • protoc-gen-connect-openapi 不支持 grpc service 级别的注解
  • protoc-gen-connect-openapi 针对企业内部业务级别的修改无法支持

改动部分

Installation:

go install github.com/pubgo/protoc-gen-openapi@latest

使用

参考 make protobuf_test

计划

  • 长期兼容 gnostic, 兼容 protoc-gen-connect-openapi, 后期会进行重构

About

A compiler for APIs described by the OpenAPI Specification with plugins for code generation and other API support tasks.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 42

Morty Proxy This is a proxified and sanitized view of the page, visit original site.