Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OpenAPI YAML annotations #1665

Merged
merged 17 commits into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix YAML annotation
Don't set the method option "tag" so examples/internal/clients/unannotatedecho/api/swagger.yaml
generates a examples/internal/clients/unannotatedecho/api_unannotated_echo_service.go that works with existing tests.
  • Loading branch information
jasonewang committed Sep 15, 2020
commit a750c98afa0b9248275b35fd73bdf1b0105d2a17
1 change: 0 additions & 1 deletion examples/internal/clients/unannotatedecho/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package(default_visibility = ["//visibility:public"])
go_library(
name = "go_default_library",
srcs = [
"api_echo_rpc.go",
"api_unannotated_echo_service.go",
"client.go",
"configuration.go",
Expand Down
4 changes: 2 additions & 2 deletions examples/internal/clients/unannotatedecho/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ paths:
/v1/example/echo/{id}:
post:
tags:
- "echo rpc"
- "UnannotatedEchoService"
summary: "Summary: Echo rpc"
description: "Description Echo"
operationId: "UnannotatedEchoService_Echo"
Expand Down Expand Up @@ -82,7 +82,7 @@ paths:
/v1/example/echo/{id}/{num}:
get:
tags:
- "echo rpc"
- "UnannotatedEchoService"
summary: "Summary: Echo rpc"
description: "Description Echo"
operationId: "UnannotatedEchoService_Echo2"
Expand Down
Loading