Tags: pabloos/gota
Tags
v0.3.4 — richer inferred schemas Inline anonymous struct values and nested function-local types; infer a no-body status (204/304/1xx) from a bare WriteHeader; detected responses replace the default 200; and unresolvable-ref warnings name the referencing operation. See CHANGELOG.md.
v0.3.3 — schema resolution robustness + a gorilla/mux mount fix An unresolvable schema $ref degrades to a generic object instead of aborting; dependency/other-module types are package-qualified and resolve to real schemas; a function-local response type is inlined; and a same-package gorilla sub-router constructor mount applies its prefix (Handle and http.StripPrefix idioms). See CHANGELOG.md.
v0.3.2 — inference through handler factories + middleware, and a moun… …t fix Body inference now follows a handler factory (func(...) http.Handler) to its returned literal, unwrapping middleware wrappers, and infers a request body from a generic middleware's type argument. gorilla/mux treats a *mux.Router handler as a mount rather than a duplicate endpoint. See CHANGELOG.md.
v0.3.1 — gorilla/mux fixes and cross-module type resolution gorilla/mux: recognize a factory-call handler (Handle(p, factory())) and inherit the prefix through NewRoute().Subrouter(). Inference: resolve a response type declared in another module (dependency or go.work) instead of aborting, and give an actionable error for a workspace-root --dir. See CHANGELOG.md.
v0.3.0 — gorilla/mux router plugin + inference robustness gorilla/mux router plugin with type-aware middleware unwrapping and subrouter prefix tracking; a function-local response type degrades to a generic object instead of erroring the whole document. Both driven by validating against a real gorilla/mux API (gophish). See CHANGELOG.md.
v0.2.0 — multi-framework routing and richer handler resolution Chi and Gin router plugins; the inference.Dialect seam; inline func-literal handler support across all plugins; package-qualified schema-name disambiguation; go 1.23 build floor (x/tools v0.36.0). See CHANGELOG.md for details.
gota v0.1.0 First tagged release: OpenAPI 3.1 generation from Go net/http source via static analysis, merged with gota: comments, with cross-package and multi-level indirection resolution, generic instantiation handling, and operationId/dispatch correctness fixes. See CHANGELOG.md for details.