Skip to content

Commit

Permalink
Fix godoc for dsl.Param() (#3514)
Browse files Browse the repository at this point in the history
  • Loading branch information
tchssk committed May 4, 2024
1 parent f11a242 commit 4bd580c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dsl/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ func Params(args any) {
// Example:
//
// var ShowPayload = Type("ShowPayload", func() {
// Attribute("parentID", UInt64, "ID of parent account")
// Attribute("id", UInt64, "Account ID")
// Attribute("version", String, "Version", func() {
// Enum("1.0", "2.0")
Expand All @@ -675,8 +676,8 @@ func Params(args any) {
//
// var _ = Service("account", func() {
// HTTP(func() {
// Path("/{parentID}")
// Param("parentID", UInt64, "ID of parent account")
// Path("/{parentID}") // HTTP request uses ShowPayload "parentID"
// // attribute to define "parentID" parameter.
// })
// Method("show", func() { // default response type.
// Payload(ShowPayload)
Expand Down

0 comments on commit 4bd580c

Please sign in to comment.