swagger
swagger copied to clipboard
Swagger client generator
type ExpTest struct { testField [][]Data } type Data struct { id int } Parsing fails for ExpTest with error "Can not find definition of []Data model"
When I use the newest version of yvasiyarov/swagger to generate docs.go. i find there is a new key "basePath" and the value is "{{.}}". but unfortunately the {{.}} is not...
This commit: https://github.com/yvasiyarov/swagger/commit/3430d5b14cbeac355b58e11231eac3f702793af6 introduced adding @BasePath as a requirement for the swagger page to work properly, or at least that's the only thing that unbreaks my workflow. Despite not seeing...
If body param structure has any boolean field, it is not shown in swagger ui.
I traced the swagger library network traffic in the browser to the point where "/" is fetched to read the resourceListingJson string. When deployed, my server application is at: http://computer/application...
According to the Swagger 1.2 spec, section 5.2.5, the responseModel is not required. https://github.com/swagger-api/swagger-spec/blob/master/versions/1.2.md#525-response-message-object However, here the markup is required to be {object} or {array}. Similarly for the response_data_type. Currently...
I'm running into some odd behavior (at least in relation to what I'm interpreting from the documentation). I have the following structure and annotation using it for my handler. ```...
Hi! Given the following struct: ``` go type ExampleStruct struct { IntValue int64 `json:"intval"` TimeValue time.Time `json:"timeval"` } ``` The following swagger models are currently generated: ``` "models": { "pkg.ExampleStruct:...
When using e.g. gopkg.in the import names do not match the package names. Go build works fine but swagger fails with error below. Imported path: gopkg.in/guregu/null.v2 Package name : null...
We have a struct like this: ``` Base struct { private int } Another struct { Base Id int `json:"id"` ... } ``` This results in model like this: ```...