Commit 31d000a
Use net/http constants in boilerplate
Closes: #2397
Replace raw integer literals in generated strict server code with named
net/http constants (e.g. http.StatusOK instead of 200). Covers
WriteHeader/Status/StatusCode calls in all strict server templates and
status code comparisons in generated client switch statements.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent a63186f commit 31d000a
71 files changed
Lines changed: 496 additions & 415 deletions
File tree
- examples
- authenticated-api
- echo/api
- stdhttp/api
- clienttypenameclash
- client
- custom-client-type
- import-mapping/samepackage
- petstore-expanded
- strict/api
- streaming/stdhttp/sse
- internal/test
- anonymous_inner_hoisting
- any_of/codegen
- inline
- ref_schema
- issues
- issue-1087
- issue-1093/api
- child
- parent
- issue-1182/pkg1
- issue-1189
- issue-1208-1209
- issue-1212/pkg1
- issue-1277
- issue-1298
- issue-1378
- bionicle
- fooservice
- issue-1529
- strict-echo
- strict-fiber
- strict-iris
- issue-1676
- issue-1963
- issue-2010/gen
- spec_base
- spec_other
- issue-2113/gen/api
- issue-2190
- issue-2367
- issue-312
- issue-52
- issue-970
- issue-grab_import_names
- issue-illegal_enum_names
- issue-removed-external-ref/gen/spec_base
- issue1799
- chi
- client
- echo
- fiber
- gin
- gorilla
- iris
- std-http
- issue240
- name_conflict_resolution
- outputoptions
- name-normalizer
- to-camel-case-with-additional-initialisms
- to-camel-case-with-digits
- to-camel-case-with-initialisms
- to-camel-case
- unset
- response-body-getters
- enabled
- skipped
- pathalias
- schemas
- strict-server
- chi
- client
- echo
- fiber
- gin
- gorilla
- iris
- stdhttp
- pkg/codegen
- templates/strict
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments