emicklei / go-restful-openapi

OpenAPI extension in Go for the go-restful package
MIT License
135 stars 72 forks source link

support multidimensional array for more general types on properties (#77) #105

Closed dialytica closed 1 year ago

dialytica commented 1 year ago

This might be another workaround because currently It only works for the properties that contains multidimensional array, However I think this might works on most of the cases.

The workaround won't work on a response body level. E.g.

[
  [
     "string"
  ]
]

will be produced as the following example

[
  "string"
]
emicklei commented 1 year ago

@dialytica thank you for your contribution. I will have a closer look asap