go-restful-swagger12 icon indicating copy to clipboard operation
go-restful-swagger12 copied to clipboard

Swagger 1.2 extension to the go-restful package

Results 4 go-restful-swagger12 issues
Sort by recently updated
recently updated
newest added

http://petstore.swagger.wordnik.com/api/api-docs Cannot open

I have follow codes: type Cpuinfo struct { Id string `json:"socket_id,omitempty"` Cpus string `json:"cpus,omitempty"` } ... and defined: func (cpuinfo CpuinfoResource) SwaggerDoc() map[string]string { return map[string]string{ "": "Cpuinfo doc", "socket_id":...

Example struct: ```go type Thing struct { Status int `json:"status" enum:"0|1|2|3|4|5|6|7"` } ``` The output swagger json has the enum values as a list of strings. Then when you use...

Hello, I tried to test https://github.com/emicklei/go-restful/blob/master/examples/restful-user-resource.go, but **go-restful-swagger12** does not display all operations ? $ curl http://localhost:8080/swagger.json { "swaggerVersion": "1.2", "apis": [ { "path": "/users", "description": "Manage Users hello "...