Documentation
¶
Overview ¶
Package webtypes holds types shared across web-facing packages.
Keeping these shapes in a single, dependency-free package lets both pkg/webapi and pkg/webauth reference the same Go type so swag emits exactly one schema per wire shape in the OpenAPI spec (no per-package duplicates like webapi.ErrorResponse / webauth.ErrorResponse).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse is the standard JSON error envelope used by every /api/* endpoint. Its wire shape is `{"error": "message"}`.
Click to show internal directories.
Click to hide internal directories.