Skip to content

Commit

Permalink
fix openapi examples (#425)
Browse files Browse the repository at this point in the history
Fix examples to follow breaking changes in go-openapi/spec#113
  • Loading branch information
ohtake authored and emicklei_kramphub committed Feb 16, 2020
1 parent eed6602 commit 74f0066
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions examples/restful-openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,17 @@ func enrichSwaggerObject(swo *spec.Swagger) {
Title: "UserService",
Description: "Resource for managing Users",
Contact: &spec.ContactInfo{
Name: "john",
Email: "john@doe.rp",
URL: "http://johndoe.org",
ContactInfoProps: spec.ContactInfoProps{
Name: "john",
Email: "john@doe.rp",
URL: "http://johndoe.org",
},
},
License: &spec.License{
Name: "MIT",
URL: "http://mit.org",
LicenseProps: spec.LicenseProps{
Name: "MIT",
URL: "http://mit.org",
},
},
Version: "1.0.0",
},
Expand Down
14 changes: 9 additions & 5 deletions examples/restful-user-resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,17 @@ func enrichSwaggerObject(swo *spec.Swagger) {
Title: "UserService",
Description: "Resource for managing Users",
Contact: &spec.ContactInfo{
Name: "john",
Email: "john@doe.rp",
URL: "http://johndoe.org",
ContactInfoProps: spec.ContactInfoProps{
Name: "john",
Email: "john@doe.rp",
URL: "http://johndoe.org",
},
},
License: &spec.License{
Name: "MIT",
URL: "http://mit.org",
LicenseProps: spec.LicenseProps{
Name: "MIT",
URL: "http://mit.org",
},
},
Version: "1.0.0",
},
Expand Down

0 comments on commit 74f0066

Please sign in to comment.