{"repo":"doordash-oss/oapi-codegen-dd","free":true,"listed":false,"github":"https://github.com/doordash-oss/oapi-codegen-dd","clone":"git clone https://github.com/doordash-oss/oapi-codegen-dd.git","description":"Generate Go models from OpenAPI spec","language":"Go","stars":48,"topics":["code-generator","oapi-codegen","openapi"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"oapi-codegen Battle-tested : This generator is continuously tested against 2,000+ real-world OpenAPI specs, successfully generating and compiling over 20 million lines of Go code. Handles complex specs with circular references, deep nesting, and union types. Using oapi-codegen allows you to reduce the boilerplate required to create or integrate with services based on OpenAPI 3.x, and instead focus on writing your business logic, and working on the real value-add for your organization. Features Code Generation - Idiomatic Go code - Clean, readable generated code that follows Go conventions - OpenAPI 3.x support - Comprehensive support for OpenAPI 3.0 and 3.1 specifications - Flexible output - Single or multiple file output with configurable structure - Smart pruning - Automatically removes unused types by default (configurable) Type System - Union types - Full support for oneOf , anyOf , allOf , and if / then / else with intelligent type merging, runtime.Either[A, B] for two-element unions, and runtime.Conditional[T, E] for conditional schemas - Additional properties - Handle dynamic fields with map[string]interface{} or custom types - Validation - Built-in validation using go-playground/validator with Validate() methods on generated types - Custom extensions - for fine-grained control over code generation Client Generation - HTTP client generation - Generate type-safe HTTP clients with customizable timeout and request editors - Envelope WithResponse clients - Opt-in WithRespo","default_branch":null,"files":null,"tree":[],"storefront":"/r/doordash-oss","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/doordash-oss/oapi-codegen-dd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}