grpc-ecosystem/grpc-gateway

Replace openapiv2 path template parser with httprule parser

オープン

#2,824 opened on 2022/07/31

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Go (2,250 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (16,971 個のスター)
PR merge metrics
 (平均マージ 8d 23h) (30d で 147 merged PRs)

説明

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.

コントリビューターガイド