feat: use http.MethodXXX constants instead of string literals in generated code by imsugeno · Pull Request #2294 · oapi-codegen/oapi-codegen
added 2 commits
March 14, 2026 21:38Add httpMethodConstant template helper that converts HTTP method strings (e.g. "GET") to net/http constants (e.g. http.MethodGet) and apply it to the client, gorilla, and stdhttp templates. Refs oapi-codegen#659
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters