You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server.go
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -56,25 +56,22 @@ type Server struct {
56
56
disableAutoGroupTagsbool
57
57
basePathstring// Base path of the group
58
58
59
-
// Points to the server OpenAPI struct.
60
-
OpenAPI*OpenAPI
59
+
*Engine
61
60
62
61
SecuritySecurity
63
62
64
63
autoAuthAutoAuthConfig
65
64
fs fs.FS
66
65
template*template.Template// TODO: use preparsed templates
67
66
68
-
acceptedContentTypes []string
69
-
70
67
DisallowUnknownFieldsbool// If true, the server will return an error if the request body contains unknown fields. Useful for quick debugging in development.
71
68
DisableOpenapibool// If true, the routes within the server will not generate an OpenAPI spec.
72
69
maxBodySizeint64
73
70
74
-
SerializeSender// Custom serializer that overrides the default one.
75
-
SerializeErrorErrorSender// Used to serialize the error response. Defaults to [SendError].
76
-
ErrorHandlerfunc(errerror) error// Used to transform any error into a unified error type structure with status code. Defaults to [ErrorHandler]
77
-
startTimetime.Time
71
+
SerializeSender// Custom serializer that overrides the default one.
72
+
SerializeErrorErrorSender// Used to serialize the error response. Defaults to [SendError].
0 commit comments