goadesign / goa

🌟 Goa: Elevate Go API development! 🚀 Streamlined design, automatic code generation, and seamless HTTP/gRPC support. ✨
https://goa.design
MIT License
5.68k stars 559 forks source link

Add "openapi:typename" meta to user types #3572

Closed raphael closed 2 months ago

raphael commented 2 months ago

This update forces OpenAPI generators to use specified type names rather than merging structurally identical types automatically.

Note: Goa-generated types (e.g., from anonymous payload or result definitions) will still be merged if structurally identical. This approach helps prevent the unnecessary proliferation of types in OpenAPI specifications.