emicklei / go-restful-openapi

OpenAPI extension in Go for the go-restful package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pointer to array/slice of primitive registers incorrect definition

jerrymccollom opened this issue · comments

Greetings, Ernest!

I found that if I have a pointer to a slice of strings in a struct, the swagger generates schema references to "#/definitions/string". I tracked it down to a single line in definition_builder.go. I've submitted PR #46 with the change to fix this.

Generating this reference makes the current rev of ReDoc choke (which is how I discovered the problem).

Thanks for considering the PR!

Thank you for accepting the PR!