ogen
OpenAPI v3 code generator for Go
No reflection
- The json encoding is code-generated, optimized and uses jx for speed and overcoming encoding/json limitations
- Validation is code-generated according to specification
No boilerplate
- Structures are generated from OpenAPI v3 specification
- Arguments, headers, url queries are parsed according to specification into structures
- String formats like
uuid
,date
,date-time
,uri
are represented by go types directly - Sum types are generated for OneOf, with discriminator or implicit type inference
- Optional and nullable are supported without pointers if possible
OpenTelemetry
Tracing and metrics support that is compatible with OpenTelemetry