Documentation ¶ Index ¶ func WrapWithValidation(corsAllowedOrigins []string, routers ...openapi.Router) http.Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WrapWithValidation ¶ func WrapWithValidation(corsAllowedOrigins []string, routers ...openapi.Router) http.Handler WrapWithValidation wraps the auto-generated router with CORS and validation middleware. If corsAllowedOrigins is empty, CORS is disabled (no cross-origin headers are added). Types ¶ This section is empty. Source Files ¶ View all Source files router.go Click to show internal directories. Click to hide internal directories.