Update build images

* Add swagger annotations for all the query and response parameters
  for buildimages
* Improve populating the BuildOptions struct
* Improve swagger.json generation, removing tags.xml and move tag
  definiation into the swagger:meta block
* Update Makefile to be more robust, added target for validation

* TODO once validation passes add that step to the generation step

Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
Jhon Honce
2020-01-16 10:33:43 -07:00
parent f467bb20bd
commit 68896b18e5
5 changed files with 366 additions and 116 deletions

View File

@ -36,11 +36,11 @@ func getRuntime(r *http.Request) *libpod.Runtime {
return r.Context().Value("runtime").(*libpod.Runtime)
}
func getHeader(r *http.Request, k string) string {
return r.Header.Get(k)
}
func hasHeader(r *http.Request, k string) bool {
_, found := r.Header[k]
return found
}
// func getHeader(r *http.Request, k string) string {
// return r.Header.Get(k)
// }
//
// func hasHeader(r *http.Request, k string) bool {
// _, found := r.Header[k]
// return found
// }