1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2024-10-28 01:59:38 +01:00

Update API gen, cleanup, add missing property to status response (#3987)

* fix(api): remove invalid tag properties from components

* chore(api): update api validation/linter to use redocly

* fix(api): add missing streamTitle property to status object. Closes #3983

* chore: add redocly config file

* Commit updated API documentation

---------

Co-authored-by: Owncast <owncast@owncast.online>
This commit is contained in:
Gabe Kangas 2024-10-27 15:36:31 -07:00 committed by GitHub
parent 5a3600e01f
commit eed34b528e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 4549 additions and 4588 deletions

View file

@ -8,8 +8,8 @@ folderPath="webserver/handlers/generated"
specPath="openapi.yaml" specPath="openapi.yaml"
# validate scripts are installed # validate scripts are installed
if ! command -v swagger-cli &>/dev/null; then if ! command -v redocly &>/dev/null; then
echo "Please install \`swagger-cli\` before running this script" echo "Please install \`redocly cli\` before running this script: npm install -g @redocly/cli"
exit 1 exit 1
fi fi
@ -20,7 +20,7 @@ if ! command -v oapi-codegen &>/dev/null; then
fi fi
# validate schema # validate schema
swagger-cli validate $specPath npx redocly lint $specPath
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Open API specification is not valid" echo "Open API specification is not valid"
exit 1 exit 1

File diff suppressed because one or more lines are too long

View file

@ -3387,14 +3387,12 @@ components:
Error: Error:
type: object type: object
description: Structure for an error response description: Structure for an error response
tags: ['Objects']
properties: properties:
error: error:
type: string type: string
BaseAPIResponse: BaseAPIResponse:
type: object type: object
description: Simple API response description: Simple API response
tags: ['Objects']
properties: properties:
message: message:
type: string type: string
@ -3403,7 +3401,6 @@ components:
Status: Status:
type: object type: object
description: Response for status description: Response for status
tags: ['Objects']
properties: properties:
serverTime: serverTime:
type: string type: string
@ -3417,6 +3414,8 @@ components:
type: integer type: integer
online: online:
type: boolean type: boolean
streamTitle:
type: string
Emojis: Emojis:
type: array type: array
items: items:
@ -3424,7 +3423,6 @@ components:
Emoji: Emoji:
type: object type: object
description: Name and url for an emoji description: Name and url for an emoji
tags: ['Objects']
properties: properties:
name: name:
type: string type: string
@ -3434,7 +3432,6 @@ components:
description: URL for the emoji image description: URL for the emoji image
AnonymousUser: AnonymousUser:
type: object type: object
tags: ['Objects']
properties: properties:
id: id:
type: string type: string
@ -3444,7 +3441,6 @@ components:
type: string type: string
User: User:
type: object type: object
tags: ['Objects']
properties: properties:
createdAt: createdAt:
type: string type: string
@ -3476,7 +3472,6 @@ components:
$ref: '#/components/schemas/User' $ref: '#/components/schemas/User'
Follower: Follower:
type: object type: object
tags: ['Objects']
properties: properties:
link: link:
type: string type: string
@ -3498,12 +3493,10 @@ components:
description: When this follower was rejected or disabled. description: When this follower was rejected or disabled.
Followers: Followers:
type: array type: array
tags: ['Objects']
items: items:
$ref: '#/components/schemas/Follower' $ref: '#/components/schemas/Follower'
PaginatedFollowers: PaginatedFollowers:
type: object type: object
tags: ['Objects']
properties: properties:
total: total:
type: integer type: integer
@ -3511,7 +3504,6 @@ components:
$ref: '#/components/schemas/Followers' $ref: '#/components/schemas/Followers'
Event: Event:
type: object type: object
tags: ['Objects']
properties: properties:
timestamp: timestamp:
type: string type: string
@ -3521,7 +3513,6 @@ components:
type: string type: string
UserEvent: UserEvent:
type: object type: object
tags: ['Objects']
properties: properties:
user: user:
$ref: '#/components/schemas/User' $ref: '#/components/schemas/User'
@ -3531,13 +3522,11 @@ components:
type: integer type: integer
MessageEvent: MessageEvent:
type: object type: object
tags: ['Objects']
properties: properties:
body: body:
type: string type: string
ChatMessages: ChatMessages:
type: array type: array
tags: ['Objects']
items: items:
anyOf: anyOf:
- $ref: '#/components/schemas/UserMessage' - $ref: '#/components/schemas/UserMessage'
@ -3546,32 +3535,27 @@ components:
- $ref: '#/components/schemas/FederatedAction' - $ref: '#/components/schemas/FederatedAction'
UserMessage: UserMessage:
type: object type: object
tags: ['Objects']
allOf: allOf:
- $ref: '#/components/schemas/Event' - $ref: '#/components/schemas/Event'
- $ref: '#/components/schemas/UserEvent' - $ref: '#/components/schemas/UserEvent'
- $ref: '#/components/schemas/MessageEvent' - $ref: '#/components/schemas/MessageEvent'
SystemMessage: SystemMessage:
type: object type: object
tags: ['Objects']
allOf: allOf:
- $ref: '#/components/schemas/Event' - $ref: '#/components/schemas/Event'
- $ref: '#/components/schemas/MessageEvent' - $ref: '#/components/schemas/MessageEvent'
SystemActionEvent: SystemActionEvent:
type: object type: object
tags: ['Objects']
allOf: allOf:
- $ref: '#/components/schemas/Event' - $ref: '#/components/schemas/Event'
- $ref: '#/components/schemas/MessageEvent' - $ref: '#/components/schemas/MessageEvent'
ActionMessage: ActionMessage:
type: object type: object
tags: ['Objects']
allOf: allOf:
- $ref: '#/components/schemas/Event' - $ref: '#/components/schemas/Event'
- $ref: '#/components/schemas/MessageEvent' - $ref: '#/components/schemas/MessageEvent'
FederatedAction: FederatedAction:
type: object type: object
tags: ['Objects']
allOf: allOf:
- $ref: '#/components/schemas/Event' - $ref: '#/components/schemas/Event'
- $ref: '#/components/schemas/MessageEvent' - $ref: '#/components/schemas/MessageEvent'
@ -3585,7 +3569,6 @@ components:
type: string type: string
WebConfig: WebConfig:
type: object type: object
tags: ['Objects']
properties: properties:
appearanceVariables: appearanceVariables:
type: object type: object
@ -3637,7 +3620,6 @@ components:
$ref: '#/components/schemas/AuthenticationConfig' $ref: '#/components/schemas/AuthenticationConfig'
SocialHandle: SocialHandle:
type: object type: object
tags: ['Objects']
properties: properties:
platform: platform:
type: string type: string
@ -3647,7 +3629,6 @@ components:
type: string type: string
ExternalAction: ExternalAction:
type: object type: object
tags: ['Objects']
properties: properties:
url: url:
type: string type: string
@ -3665,13 +3646,11 @@ components:
type: boolean type: boolean
NotificationConfig: NotificationConfig:
type: object type: object
tags: ['Objects']
properties: properties:
browser: browser:
$ref: '#/components/schemas/BrowserConfig' $ref: '#/components/schemas/BrowserConfig'
BrowserConfig: BrowserConfig:
type: object type: object
tags: ['Objects']
properties: properties:
publicKey: publicKey:
type: string type: string
@ -3679,7 +3658,6 @@ components:
type: boolean type: boolean
FederationConfig: FederationConfig:
type: object type: object
tags: ['Objects']
properties: properties:
account: account:
type: string type: string
@ -3689,13 +3667,11 @@ components:
type: boolean type: boolean
AuthenticationConfig: AuthenticationConfig:
type: object type: object
tags: ['Objects']
properties: properties:
indieAuthEnabled: indieAuthEnabled:
type: boolean type: boolean
YPDetails: YPDetails:
type: object type: object
tags: ['Objects']
properties: properties:
lastConnectTime: lastConnectTime:
type: string type: string
@ -3727,7 +3703,6 @@ components:
type: boolean type: boolean
VideoVariant: VideoVariant:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
index: index:
type: integer type: integer
@ -3735,7 +3710,6 @@ components:
type: string type: string
PlaybackMetrics: PlaybackMetrics:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
bandwidth: bandwidth:
type: number type: number
@ -3754,7 +3728,6 @@ components:
format: double format: double
Broadcaster: Broadcaster:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
time: time:
type: string type: string
@ -3765,7 +3738,6 @@ components:
$ref: '#/components/schemas/InboundStreamDetails' $ref: '#/components/schemas/InboundStreamDetails'
InboundStreamDetails: InboundStreamDetails:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
videoCodec: videoCodec:
type: string type: string
@ -3786,7 +3758,6 @@ components:
format: float format: float
CurrentBroadcast: CurrentBroadcast:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
outputSettings: outputSettings:
type: array type: array
@ -3796,7 +3767,6 @@ components:
$ref: '#/components/schemas/LatencyLevel' $ref: '#/components/schemas/LatencyLevel'
StreamOutputVariant: StreamOutputVariant:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
name: name:
type: string type: string
@ -3823,7 +3793,6 @@ components:
type: integer type: integer
StreamHealthOverview: StreamHealthOverview:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
message: message:
type: string type: string
@ -3835,7 +3804,6 @@ components:
type: boolean type: boolean
BrowserNotificationConfiguration: BrowserNotificationConfiguration:
type: object type: object
tags: ['Objects', 'Notifications']
properties: properties:
goLiveMessage: goLiveMessage:
type: string type: string
@ -3843,7 +3811,6 @@ components:
type: boolean type: boolean
DiscordNotificationConfiguration: DiscordNotificationConfiguration:
type: object type: object
tags: ['Objects', 'Notifications']
properties: properties:
webhook: webhook:
type: string type: string
@ -3853,7 +3820,6 @@ components:
type: boolean type: boolean
S3Info: S3Info:
type: object type: object
tags: ['Objects']
properties: properties:
endpoint: endpoint:
type: string type: string
@ -3875,7 +3841,6 @@ components:
type: boolean type: boolean
StreamKey: StreamKey:
type: object type: object
tags: ['Objects']
properties: properties:
key: key:
type: string type: string
@ -3883,7 +3848,6 @@ components:
type: string type: string
TimestampedValue: TimestampedValue:
type: object type: object
tags: ['Objects']
properties: properties:
time: time:
type: string type: string
@ -3893,7 +3857,6 @@ components:
format: double format: double
Viewer: Viewer:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
firstSeen: firstSeen:
type: string type: string
@ -3908,7 +3871,6 @@ components:
type: string type: string
GeoDetails: GeoDetails:
type: object type: object
tags: ['Objects']
properties: properties:
countryCode: countryCode:
type: string type: string
@ -3917,7 +3879,6 @@ components:
timeZone: timeZone:
type: string type: string
CollectedMetrics: CollectedMetrics:
tags: ['Objects']
type: object type: object
properties: properties:
disk: disk:
@ -3934,7 +3895,6 @@ components:
$ref: '#/components/schemas/TimestampedValue' $ref: '#/components/schemas/TimestampedValue'
ChatClient: ChatClient:
type: object type: object
tags: ['Objects', 'Chat']
properties: properties:
connectedAt: connectedAt:
type: string type: string
@ -3949,12 +3909,10 @@ components:
type: integer type: integer
ChatClients: ChatClients:
type: array type: array
tags: ['Objects', 'Chat']
items: items:
$ref: '#/components/schemas/ChatClient' $ref: '#/components/schemas/ChatClient'
IPAddress: IPAddress:
type: object type: object
tags: ['Objects', 'Chat']
properties: properties:
createdAt: createdAt:
type: string type: string
@ -3965,7 +3923,6 @@ components:
type: string type: string
Webhook: Webhook:
type: object type: object
tags: ['Objects', 'Notifications']
properties: properties:
timestamp: timestamp:
type: string type: string
@ -3983,7 +3940,6 @@ components:
type: integer type: integer
WebhookEventType: WebhookEventType:
type: string type: string
tags: ['Objects', 'Notifications']
enum: enum:
- CHAT - CHAT
- USER_JOINED - USER_JOINED
@ -4024,7 +3980,6 @@ components:
type: boolean type: boolean
MessageVisibilityUpdate: MessageVisibilityUpdate:
type: object type: object
tags: ['Objects', 'Chat']
properties: properties:
idArray: idArray:
type: array type: array
@ -4034,7 +3989,6 @@ components:
type: boolean type: boolean
ModerationUserDetails: ModerationUserDetails:
type: object type: object
tags: ['Objects', 'Chat']
properties: properties:
user: user:
$ref: '#/components/schemas/User' $ref: '#/components/schemas/User'
@ -4048,7 +4002,6 @@ components:
$ref: '#/components/schemas/UserMessage' $ref: '#/components/schemas/UserMessage'
ModerationConnectedClient: ModerationConnectedClient:
type: object type: object
tags: ['Objects', 'Chat']
properties: properties:
connectedAt: connectedAt:
type: string type: string
@ -4064,7 +4017,6 @@ components:
type: integer type: integer
FederatedActivity: FederatedActivity:
type: object type: object
tags: ['Objects', 'Social']
properties: properties:
timestamp: timestamp:
type: string type: string
@ -4077,7 +4029,6 @@ components:
type: string type: string
PaginatedFederatedActivity: PaginatedFederatedActivity:
type: object type: object
tags: ['Objects', 'Social']
properties: properties:
total: total:
type: integer type: integer
@ -4085,7 +4036,6 @@ components:
$ref: '#/components/schemas/FederatedActivity' $ref: '#/components/schemas/FederatedActivity'
AdminStatus: AdminStatus:
type: object type: object
tags: ['Objects']
properties: properties:
broadcaster: broadcaster:
$ref: '#/components/schemas/Broadcaster' $ref: '#/components/schemas/Broadcaster'
@ -4107,7 +4057,6 @@ components:
type: boolean type: boolean
AdminServerConfig: AdminServerConfig:
type: object type: object
tags: ['Objects']
properties: properties:
instanceDetails: instanceDetails:
$ref: '#/components/schemas/AdminWebConfig' $ref: '#/components/schemas/AdminWebConfig'
@ -4171,7 +4120,6 @@ components:
type: boolean type: boolean
AdminWebConfig: AdminWebConfig:
type: object type: object
tags: ['Objects']
properties: properties:
appearanceVariables: appearanceVariables:
type: object type: object
@ -4209,7 +4157,6 @@ components:
type: boolean type: boolean
AdminNotificationsConfig: AdminNotificationsConfig:
type: object type: object
tags: ['Objects', 'Notifications']
properties: properties:
browser: browser:
$ref: '#/components/schemas/BrowserNotificationConfiguration' $ref: '#/components/schemas/BrowserNotificationConfiguration'
@ -4217,14 +4164,12 @@ components:
$ref: '#/components/schemas/DiscordNotificationConfiguration' $ref: '#/components/schemas/DiscordNotificationConfiguration'
AdminYPInfo: AdminYPInfo:
type: object type: object
tags: ['Objects']
properties: properties:
instanceUrl: instanceUrl:
type: string type: string
enabled: enabled:
type: boolean type: boolean
AdminFederationConfig: AdminFederationConfig:
tags: ['Objects', 'Social']
type: object type: object
properties: properties:
username: username:
@ -4243,7 +4188,6 @@ components:
type: boolean type: boolean
AdminVideoSettings: AdminVideoSettings:
type: object type: object
tags: ['Objects', 'Video']
properties: properties:
videoQualityVariants: videoQualityVariants:
type: array type: array
@ -4253,7 +4197,6 @@ components:
type: integer type: integer
AdminLog: AdminLog:
type: object type: object
tags: ['Objects']
properties: properties:
time: time:
type: string type: string
@ -4264,7 +4207,6 @@ components:
type: string type: string
AdminConfigValue: AdminConfigValue:
type: object type: object
tags: ['Objects']
properties: properties:
value: value:
oneOf: oneOf:
@ -4276,7 +4218,6 @@ components:
- type: number - type: number
IndieAuthResponse: IndieAuthResponse:
type: object type: object
tags: ['Objects', 'Auth']
properties: properties:
me: me:
type: string type: string
@ -4288,7 +4229,6 @@ components:
type: string type: string
IndieAuthProfile: IndieAuthProfile:
type: object type: object
tags: ['Objects', 'Auth']
properties: properties:
name: name:
type: string type: string
@ -4298,7 +4238,6 @@ components:
type: string type: string
IndieAuthServerProfileResponse: IndieAuthServerProfileResponse:
type: object type: object
tags: ['Objects', 'Auth']
properties: properties:
me: me:
type: string type: string
@ -4310,7 +4249,6 @@ components:
type: string type: string
IndieAuthServerProfile: IndieAuthServerProfile:
type: object type: object
tags: ['Objects', 'Auth']
properties: properties:
name: name:
type: string type: string

8
redocly.yaml Normal file
View file

@ -0,0 +1,8 @@
extends:
- recommended
rules:
operation-summary: off
security-defined: off
operation-4xx-response: off
no-server-example.com: off

View file

@ -471,6 +471,7 @@ type Status struct {
LastDisconnectTime *string `json:"lastDisconnectTime,omitempty"` LastDisconnectTime *string `json:"lastDisconnectTime,omitempty"`
Online *bool `json:"online,omitempty"` Online *bool `json:"online,omitempty"`
ServerTime *string `json:"serverTime,omitempty"` ServerTime *string `json:"serverTime,omitempty"`
StreamTitle *string `json:"streamTitle,omitempty"`
VersionNumber *string `json:"versionNumber,omitempty"` VersionNumber *string `json:"versionNumber,omitempty"`
ViewerCount *int `json:"viewerCount,omitempty"` ViewerCount *int `json:"viewerCount,omitempty"`
} }

View file

@ -4593,6 +4593,7 @@ func (siw *ServerInterfaceWrapper) RegisterFediverseOTPRequest(w http.ResponseWr
// ------------- Required query parameter "accessToken" ------------- // ------------- Required query parameter "accessToken" -------------
if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" { if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"})
return return
@ -4642,6 +4643,7 @@ func (siw *ServerInterfaceWrapper) StartIndieAuthFlow(w http.ResponseWriter, r *
// ------------- Required query parameter "accessToken" ------------- // ------------- Required query parameter "accessToken" -------------
if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" { if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"})
return return
@ -4676,6 +4678,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthRedirect(w http.ResponseWriter
// ------------- Required query parameter "state" ------------- // ------------- Required query parameter "state" -------------
if paramValue := r.URL.Query().Get("state"); paramValue != "" { if paramValue := r.URL.Query().Get("state"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "state"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "state"})
return return
@ -4690,6 +4693,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthRedirect(w http.ResponseWriter
// ------------- Required query parameter "code" ------------- // ------------- Required query parameter "code" -------------
if paramValue := r.URL.Query().Get("code"); paramValue != "" { if paramValue := r.URL.Query().Get("code"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "code"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "code"})
return return
@ -4726,6 +4730,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointGet(w http.ResponseWri
// ------------- Required query parameter "client_id" ------------- // ------------- Required query parameter "client_id" -------------
if paramValue := r.URL.Query().Get("client_id"); paramValue != "" { if paramValue := r.URL.Query().Get("client_id"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "client_id"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "client_id"})
return return
@ -4740,6 +4745,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointGet(w http.ResponseWri
// ------------- Required query parameter "redirect_uri" ------------- // ------------- Required query parameter "redirect_uri" -------------
if paramValue := r.URL.Query().Get("redirect_uri"); paramValue != "" { if paramValue := r.URL.Query().Get("redirect_uri"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "redirect_uri"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "redirect_uri"})
return return
@ -4754,6 +4760,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointGet(w http.ResponseWri
// ------------- Required query parameter "code_challenge" ------------- // ------------- Required query parameter "code_challenge" -------------
if paramValue := r.URL.Query().Get("code_challenge"); paramValue != "" { if paramValue := r.URL.Query().Get("code_challenge"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "code_challenge"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "code_challenge"})
return return
@ -4768,6 +4775,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointGet(w http.ResponseWri
// ------------- Required query parameter "state" ------------- // ------------- Required query parameter "state" -------------
if paramValue := r.URL.Query().Get("state"); paramValue != "" { if paramValue := r.URL.Query().Get("state"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "state"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "state"})
return return
@ -4782,6 +4790,7 @@ func (siw *ServerInterfaceWrapper) HandleIndieAuthEndpointGet(w http.ResponseWri
// ------------- Required query parameter "code" ------------- // ------------- Required query parameter "code" -------------
if paramValue := r.URL.Query().Get("code"); paramValue != "" { if paramValue := r.URL.Query().Get("code"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "code"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "code"})
return return
@ -4831,6 +4840,7 @@ func (siw *ServerInterfaceWrapper) GetChatMessages(w http.ResponseWriter, r *htt
// ------------- Required query parameter "accessToken" ------------- // ------------- Required query parameter "accessToken" -------------
if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" { if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"})
return return
@ -4865,6 +4875,7 @@ func (siw *ServerInterfaceWrapper) UpdateMessageVisibility(w http.ResponseWriter
// ------------- Required query parameter "accessToken" ------------- // ------------- Required query parameter "accessToken" -------------
if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" { if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"})
return return
@ -4955,6 +4966,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserEnabled(w http.ResponseWriter, r *h
// ------------- Required query parameter "accessToken" ------------- // ------------- Required query parameter "accessToken" -------------
if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" { if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"})
return return
@ -5389,6 +5401,7 @@ func (siw *ServerInterfaceWrapper) GetUserDetails(w http.ResponseWriter, r *http
// ------------- Required query parameter "accessToken" ------------- // ------------- Required query parameter "accessToken" -------------
if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" { if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"})
return return
@ -5423,6 +5436,7 @@ func (siw *ServerInterfaceWrapper) RegisterForLiveNotifications(w http.ResponseW
// ------------- Required query parameter "accessToken" ------------- // ------------- Required query parameter "accessToken" -------------
if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" { if paramValue := r.URL.Query().Get("accessToken"); paramValue != "" {
} else { } else {
siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"}) siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "accessToken"})
return return