Skip to content

Commit

Permalink
Typo fixes (#45)
Browse files Browse the repository at this point in the history
* fix: error message typo

* fix: readme typos
  • Loading branch information
zostay committed Jun 17, 2024
1 parent 07254b8 commit 18db6db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

`protoc-gen-apigw` is a plugin for the Google protocol buffer compiler to generate a Go server which implements gRPC service interfaces and a REST gateway.

It is inspired by [utrack/clay](https://github.com/utrack/clay) and [grpc-gateway)](https://github.com/grpc-ecosystem/grpc-gateway), but uses a different approach to bridging HTTP Requests to gRPC calls.
It is inspired by [utrack/clay](https://github.com/utrack/clay) and [grpc-gateway](https://github.com/grpc-ecosystem/grpc-gateway)), but uses a different approach to bridging HTTP Requests to gRPC calls.

Features include:
- Can use existing gRPC service definitions and generate a REST gateway for them.
- Can use existing gRPC Middlewares.
- Router-shim layer: Can be easily used with other HTTP Routers or Muxers in the HTTP Ecorystem. [Gin](https://github.com/gin-gonic/gin) based integration is standlone of the core project and about.
- Router-shim layer: Can be easily used with other HTTP Routers or Muxers in the HTTP Ecosystem. [Gin](https://github.com/gin-gonic/gin) based integration is standalone of the core project and about.

Many TODOs are remaining, but the basic bridging works.

Expand Down
2 changes: 1 addition & 1 deletion internal/apigw/apigw_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (module *Module) generateFieldConverter(method pgs.Method, edgeNumber proto
) (*paramContext, error) {
switch {
case edgeField.Type().IsRepeated():
return nil, fmt.Errorf("apigw: methodContext: operation.Route invalid: target field is repeatd '%s'", method.FullyQualifiedName())
return nil, fmt.Errorf("apigw: methodContext: operation.Route invalid: target field is repeated '%s'", method.FullyQualifiedName())
case edgeField.Type().IsMap():
return nil, fmt.Errorf("apigw: methodContext: operation.Route invalid: target field is map '%s'", method.FullyQualifiedName())
case isInt(edgeField.Type().ProtoType()):
Expand Down

0 comments on commit 18db6db

Please sign in to comment.