ductone / protoc-gen-apigw

Apache License 2.0
9 stars 2 forks source link

Snake case URL paths that would normally have dots in them #25

Closed loganintech closed 1 year ago

loganintech commented 1 year ago

This PR changes the output of nested routes like book.id to bookId such that open api SDK generators can correctly create path arguments. Right now, we use nested routes to extract fields from subobjects when filling in path parameters on our HTTP to GRPC conversion. However, when you want to do this externally the right way is using path params. Currently speakeasy's generators can't handle this format of paths, so we're renaming them in the openApi spec. We're only changing the name in the openapi yaml, so nothing will change in the generated go code and anthony's recursive props work will be maintained.