File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 77linters :
88 enable-all : true
99 disable :
10+ - nlreturn
11+ - mnd
1012 - dupword
1113 - ireturn # oapi-codegen strict handlers
1214 # - interfacebloat
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const (
1919 AuthorizationHeaderKey = "authorization"
2020)
2121
22+ // StrictHandlers implements StrictServerInterface.
2223type StrictHandlers struct {
2324 svc * services.Services
2425
@@ -31,13 +32,6 @@ type StrictHandlers struct {
3132 provider rp.RelyingParty
3233}
3334
34- // IMPORTANT: oapi codegen uses its own types for responses and request bodies,
35- // and we absolutely do not want this, since we would need to manually convert
36- // to or from oapi's Rest<..> and Db<..> structs.
37- // is it worth it to rewrite strict server gen to use rest package structs for request/response bodies?
38- // we could check in templates with a simple if stmt
39- // that if a type in rest package exists with the same name we don't prepend `externalRef0.`
40- // We already have the rest pkg struct list from ast-parser gen.
4135var _ StrictServerInterface = (* StrictHandlers )(nil )
4236
4337// NewStrictHandlers returns a server implementation of an openapi specification.
You can’t perform that action at this time.
0 commit comments