grpc-ecosystem/grpc-gateway

Replace openapiv2 path template parser with httprule parser

开放

#2,824 创建于 2022年7月31日

 (0 条评论) (0 个反应) (0 位负责人)Go (2,250 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (16,971 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

We have at least two parsers for the http.proto template language;

  • In the httprule package, which is used by protoc-gen-grpc-gateway to generate the handler paths
  • In the genopenapi package to generate the OpenAPI paths.

We should unify these two places, and we should be using the one in httprule. I did a little bit of investigating and I think it should be possible without too much work, and then we'd have consistency between the two generators.

贡献者指南