openapi-go
openapi-go copied to clipboard
OpenAPI structures for Go
Having any plan to rewrite this?
**Describe the bug** `Content-Type: multipart/form-data; boundary=SOME-BOUNDARY` would fail to parse when request tag contain `formData` and `json` ``` type UserList struct { Page string `formData:"page" json:"page"` } ``` **To Reproduce**...
Run the following code: ``` package main import ( "fmt" "github.com/swaggest/openapi-go" "github.com/swaggest/openapi-go/openapi31" ) func main() { reflector := openapi31.NewReflector() type Foo struct { Bar string `json:"bar"` } type Example struct...
- Make all examples full go programs - Link to examples from features list
This update introduces the ReuseResponses boolean flag in the Reflector struct, allowing common response definitions to be moved to components/responses. The new methods generateResponseName and collectResponse facilitate the generation of...
I'm tryin to solve discussion about correct generation for array of string enums. [Here i found discussion](https://github.com/swaggest/openapi-go/discussions/123)