Skip to content

Commit

Permalink
fix(*): remove the Summary field in RPCAction struct (#395)
Browse files Browse the repository at this point in the history
Co-authored-by: iawia002 <[email protected]>
  • Loading branch information
caicloud-bot and iawia002 authored Nov 24, 2020
1 parent fcaaa04 commit 2bee466
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions definition/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ type RPCAction struct {
Parameters []Parameter
// Results describes function retrun values.
Results []Result
// Summary is a one-line brief description of this definition.
Summary string
// Description describes the API handler.
Description string
// Examples contains many examples for the API handler.
Expand Down
2 changes: 1 addition & 1 deletion service/rpc/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (b *builder) genDefinition(action definition.RPCAction, consumes []string,
Function: action.Function,
Parameters: action.Parameters,
Results: action.Results,
Summary: action.Summary,
Summary: action.Name,
Description: action.Description,
Examples: action.Examples,
}
Expand Down

0 comments on commit 2bee466

Please sign in to comment.