{"repo":"oaswrap/spec","free":true,"listed":false,"github":"https://github.com/oaswrap/spec","clone":"git clone https://github.com/oaswrap/spec.git","description":"⚡A lightweight, framework-agnostic OpenAPI 3.x specification builder for Go.","language":"Go","stars":117,"topics":["openapi","openapi-generator","go","golang","oas","swagger","openapi3","openapi31","hacktoberfest","openapi32"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"oaswrap/spec Code-first, framework-agnostic OpenAPI 3.x spec builder for Go. Generate docs from route registrations and Go structs — no annotations, no vendor lock-in. --- Why oaswrap/spec? - Native OpenAPI builder — paths, operations, components, validation, and schema reflection are all implemented in this repository without third-party OpenAPI dependencies. - Framework-agnostic core — use spec.NewRouter for static generation, or drop in adapters for Chi, Echo, Gin, Fiber, net/http, and Mux. - Code-first route documentation — register routes and their documentation together using Go functions and typed options. - Version-aware output — defaults to OpenAPI 3.1.2 , with full support for 3.0.x and 3.2.0 features when selected. - Direct model escape hatches — use typed openapi structs, Extensions for x- fields, and Extra for official or future fields not yet wrapped by a helper option. - Deterministic output — generated documents are stable enough for golden-file snapshot tests and CI documentation checks. --- Features - JSON and YAML generation. - Framework-agnostic route registration with NewRouter , groups, route builders, and HTTP method helpers. - Webhook registration helpers for OpenAPI 3.1.x and 3.2.0 . - OpenAPI 3.2.0 QUERY method and additional operation support. - Request and response schema reflection from Go structs. - Parameter reflection from path , query , header , cookie , and OpenAPI 3.2.0 querystring tags. - JSON Schema/OpenAPI schema tags for examples, enums,","default_branch":null,"files":null,"tree":[],"storefront":"/r/oaswrap","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oaswrap/spec/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."}