From 0dc45497bf7c1b14e8d622d6e5490d5226180f2e Mon Sep 17 00:00:00 2001 From: Jeroen Rinzema Date: Mon, 29 Jun 2026 22:49:29 +0200 Subject: [PATCH 1/5] feat(scheduled): address schedule assignments by id for multi-instance scheduling Schedule assignments are now addressed by their own id. Submitting with an existing assignment id upserts that row; omitting it creates a new instance, so a single subject can hold multiple assignments to the same named schedule (e.g. several reminders of the same kind, or rescheduling a specific one). - migration drops the unique (user_id, schedule_id) / (organization_id, schedule_id) indexes; the non-unique lookup indexes are kept - UpsertUserSchedule / UpsertOrganizationSchedule take an id and conflict on (id), guarded by user/schedule so a supplied id cannot hijack another subject's row (ErrScheduleOwnershipMismatch otherwise) - ScheduledMsg carries assignment_id; the client API exposes an optional id on the upsert requests and returns the assignment id in the 202 response; the management API exposes an optional id so the console can target an instance - journey schedule steps derive a deterministic assignment id from (user, schedule) so re-runs/retries stay idempotent (no behaviour change) - regenerated client + management Go oapi and the console TS types --- console/src/oapi/management.generated.ts | 12 + .../controllers/v1/client/oapi/resources.yml | 12 + .../v1/client/oapi/resources_gen.go | 1217 ++-- .../http/controllers/v1/client/scheduled.go | 44 +- .../v1/management/oapi/resources.yml | 10 + .../v1/management/oapi/resources_gen.go | 6362 +++++------------ .../controllers/v1/management/scheduled.go | 28 +- .../v1/management/scheduled_test.go | 41 +- internal/journeys/schedule.go | 14 +- internal/pubsub/consumer/scheduled.go | 13 +- internal/pubsub/schemas/events.go | 1 + ...4600000_schedule_multi_assignment.down.sql | 9 + ...784600000_schedule_multi_assignment.up.sql | 10 + internal/store/subjects/scheduled.go | 56 +- internal/store/subjects/scheduled_test.go | 72 +- 15 files changed, 2679 insertions(+), 5222 deletions(-) create mode 100644 internal/store/subjects/migrations/1784600000_schedule_multi_assignment.down.sql create mode 100644 internal/store/subjects/migrations/1784600000_schedule_multi_assignment.up.sql diff --git a/console/src/oapi/management.generated.ts b/console/src/oapi/management.generated.ts index 52ad61ba..e77573ed 100644 --- a/console/src/oapi/management.generated.ts +++ b/console/src/oapi/management.generated.ts @@ -4978,6 +4978,12 @@ export interface components { results: components["schemas"]["OrganizationScheduled"][]; }; UpsertUserScheduledRequest: { + /** + * Format: uuid + * @description The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per user); supply an existing id to update that assignment in place. + * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 + */ + id?: string; /** * Format: uuid * @description The scheduled definition ID. Either scheduled_id or scheduled_name must be provided. @@ -5018,6 +5024,12 @@ export interface components { } | null; }; UpsertOrganizationScheduledRequest: { + /** + * Format: uuid + * @description The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per organization); supply an existing id to update that assignment in place. + * @example a1b2c3d4-e5f6-7890-abcd-ef1234567890 + */ + id?: string; /** * Format: uuid * @description The scheduled definition ID. Either scheduled_id or scheduled_name must be provided. diff --git a/internal/http/controllers/v1/client/oapi/resources.yml b/internal/http/controllers/v1/client/oapi/resources.yml index 5bdf2cab..117dd0ff 100644 --- a/internal/http/controllers/v1/client/oapi/resources.yml +++ b/internal/http/controllers/v1/client/oapi/resources.yml @@ -1646,6 +1646,12 @@ components: required: - name properties: + id: + type: string + format: uuid + nullable: true + example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" + description: The id of the schedule assignment. Omit to create a new assignment (multiple assignments may share the same name per user); supply an existing id to update that assignment in place. The id is returned in the response. name: type: string example: "renewal_date" @@ -1685,6 +1691,12 @@ components: - name - identifier properties: + id: + type: string + format: uuid + nullable: true + example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" + description: The id of the schedule assignment. Omit to create a new assignment (multiple assignments may share the same name per organization); supply an existing id to update that assignment in place. The id is returned in the response. name: type: string example: "contract_renewal" diff --git a/internal/http/controllers/v1/client/oapi/resources_gen.go b/internal/http/controllers/v1/client/oapi/resources_gen.go index 976597ac..bbba0aac 100644 --- a/internal/http/controllers/v1/client/oapi/resources_gen.go +++ b/internal/http/controllers/v1/client/oapi/resources_gen.go @@ -1,13 +1,12 @@ // Package oapi provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT. package oapi import ( "bytes" "context" "encoding/json" - "errors" "fmt" "io" "net/http" @@ -21,7 +20,7 @@ import ( ) const ( - HttpBearerAuthScopes httpBearerAuthContextKey = "HttpBearerAuth.Scopes" + HttpBearerAuthScopes = "HttpBearerAuth.Scopes" ) // Defines values for Channel. @@ -32,22 +31,6 @@ const ( Sms Channel = "sms" ) -// Valid indicates whether the value is a known member of the Channel enum. -func (e Channel) Valid() bool { - switch e { - case Email: - return true - case Inbox: - return true - case Push: - return true - case Sms: - return true - default: - return false - } -} - // Defines values for DeviceRegistrationOs. const ( Android DeviceRegistrationOs = "android" @@ -55,20 +38,6 @@ const ( Web DeviceRegistrationOs = "web" ) -// Valid indicates whether the value is a known member of the DeviceRegistrationOs enum. -func (e DeviceRegistrationOs) Valid() bool { - switch e { - case Android: - return true - case Ios: - return true - case Web: - return true - default: - return false - } -} - // Defines values for GetOrganizationInboxParamsStatus. const ( GetOrganizationInboxParamsStatusArchived GetOrganizationInboxParamsStatus = "archived" @@ -76,20 +45,6 @@ const ( GetOrganizationInboxParamsStatusUnread GetOrganizationInboxParamsStatus = "unread" ) -// Valid indicates whether the value is a known member of the GetOrganizationInboxParamsStatus enum. -func (e GetOrganizationInboxParamsStatus) Valid() bool { - switch e { - case GetOrganizationInboxParamsStatusArchived: - return true - case GetOrganizationInboxParamsStatusRead: - return true - case GetOrganizationInboxParamsStatusUnread: - return true - default: - return false - } -} - // Defines values for GetUserInboxParamsStatus. const ( GetUserInboxParamsStatusArchived GetUserInboxParamsStatus = "archived" @@ -97,20 +52,6 @@ const ( GetUserInboxParamsStatusUnread GetUserInboxParamsStatus = "unread" ) -// Valid indicates whether the value is a known member of the GetUserInboxParamsStatus enum. -func (e GetUserInboxParamsStatus) Valid() bool { - switch e { - case GetUserInboxParamsStatusArchived: - return true - case GetUserInboxParamsStatusRead: - return true - case GetUserInboxParamsStatusUnread: - return true - default: - return false - } -} - // Channel defines model for Channel. type Channel string @@ -165,7 +106,7 @@ type DeviceRegistration struct { // Token Device token for FCM or APNs Token *string `json:"token,omitempty"` } `json:"config"` - Data *json.RawMessage `json:"data,omitempty"` + Data *json.RawMessage `json:"data"` DeviceId string `json:"device_id"` // Identifier One or more external identifiers to identify the user @@ -187,7 +128,7 @@ type Event struct { Identifier *UserIdentifier `json:"identifier,omitempty"` // Match JSONB containment filter to match users by their data attributes. Mutually exclusive with identifier. When set, the event is delivered to every user whose data column contains the given key/value pairs. - Match *map[string]any `json:"match,omitempty"` + Match *map[string]any `json:"match"` // Name The name of the event Name string `json:"name"` @@ -199,7 +140,7 @@ type ExternalID struct { ExternalId string `json:"external_id"` // Metadata Optional metadata associated with this identifier - Metadata *map[string]any `json:"metadata,omitempty"` + Metadata *map[string]any `json:"metadata"` // Source Source of the identifier (e.g. "default", "anonymous", or a custom source). Defaults to "default" if not provided. Source *string `json:"source,omitempty"` @@ -210,7 +151,7 @@ type ExternalIDResponse struct { CreatedAt time.Time `json:"created_at"` ExternalId string `json:"external_id"` Id openapi_types.UUID `json:"id"` - Metadata *map[string]any `json:"metadata,omitempty"` + Metadata *map[string]any `json:"metadata"` Source string `json:"source"` UpdatedAt time.Time `json:"updated_at"` } @@ -218,16 +159,16 @@ type ExternalIDResponse struct { // IdentifyRequest defines model for IdentifyRequest. type IdentifyRequest struct { // Data User-specific attributes - Data *map[string]any `json:"data,omitempty"` - Email *string `json:"email,omitempty"` + Data *map[string]any `json:"data"` + Email *string `json:"email"` // Identifier One or more external identifiers to identify the user Identifier UserIdentifier `json:"identifier"` - Locale *string `json:"locale,omitempty"` + Locale *string `json:"locale"` // Phone E.164 formatted phone number - Phone *string `json:"phone,omitempty"` - Timezone *string `json:"timezone,omitempty"` + Phone *string `json:"phone"` + Timezone *string `json:"timezone"` } // InboxCount defines model for InboxCount. @@ -238,26 +179,26 @@ type InboxCount struct { // InboxMessage defines model for InboxMessage. type InboxMessage struct { - ArchivedAt *time.Time `json:"archived_at,omitempty"` - BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` - CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` + ArchivedAt *time.Time `json:"archived_at"` + BroadcastId *openapi_types.UUID `json:"broadcast_id"` + CampaignId *openapi_types.UUID `json:"campaign_id"` Channel Channel `json:"channel"` Content json.RawMessage `json:"content"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` - ExpiresAt *time.Time `json:"expires_at,omitempty"` + ExpiresAt *time.Time `json:"expires_at"` // ExternalId External identifier for the message, if one was provided at creation time. - ExternalId *string `json:"external_id,omitempty"` + ExternalId *string `json:"external_id"` Id openapi_types.UUID `json:"id"` OrganizationId *openapi_types.UUID `json:"organization_id,omitempty"` Priority int16 `json:"priority"` ProjectId openapi_types.UUID `json:"project_id"` - ReadAt *time.Time `json:"read_at,omitempty"` + ReadAt *time.Time `json:"read_at"` ScheduledAt time.Time `json:"scheduled_at"` - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` - SentAt *time.Time `json:"sent_at,omitempty"` - Source *string `json:"source,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + SentAt *time.Time `json:"sent_at"` + Source *string `json:"source"` Tags []string `json:"tags"` UpdatedAt time.Time `json:"updated_at"` UserId *openapi_types.UUID `json:"user_id,omitempty"` @@ -265,23 +206,23 @@ type InboxMessage struct { // InboxMessageCreate defines model for InboxMessageCreate. type InboxMessageCreate struct { - BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` - CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` + BroadcastId *openapi_types.UUID `json:"broadcast_id"` + CampaignId *openapi_types.UUID `json:"campaign_id"` Channel Channel `json:"channel"` // Content Channel-specific payload content. - Content *json.RawMessage `json:"content,omitempty"` - Data *map[string]any `json:"data,omitempty"` - ExpiresAt *time.Time `json:"expires_at,omitempty"` + Content *json.RawMessage `json:"content"` + Data *map[string]any `json:"data"` + ExpiresAt *time.Time `json:"expires_at"` // Identifier An external identifier with source and optional metadata Identifier ExternalID `json:"identifier"` Priority *int16 `json:"priority,omitempty"` - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` // SenderIdentityId Required for email and sms messages. Push uses project push provider settings. - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` - Source *string `json:"source,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + Source *string `json:"source"` Tags *[]string `json:"tags,omitempty"` // Target One or more external identifiers to identify the user @@ -313,13 +254,13 @@ type Organization struct { // OrganizationEvent defines model for OrganizationEvent. type OrganizationEvent struct { // Data Event-specific data - Data *map[string]any `json:"data,omitempty"` + Data *map[string]any `json:"data"` // Identifier One or more external identifiers to identify the organization Identifier *OrganizationIdentifier `json:"identifier,omitempty"` // Match JSONB containment filter to match organizations by their data attributes. Mutually exclusive with identifier. When set, the event is delivered to every organization whose data column contains the given key/value pairs. - Match *map[string]any `json:"match,omitempty"` + Match *map[string]any `json:"match"` // Name The name of the event Name string `json:"name"` @@ -330,23 +271,23 @@ type OrganizationIdentifier = []ExternalID // OrganizationInboxMessageCreate defines model for OrganizationInboxMessageCreate. type OrganizationInboxMessageCreate struct { - BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` - CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` + BroadcastId *openapi_types.UUID `json:"broadcast_id"` + CampaignId *openapi_types.UUID `json:"campaign_id"` Channel Channel `json:"channel"` // Content Channel-specific payload content. - Content *json.RawMessage `json:"content,omitempty"` - Data *map[string]any `json:"data,omitempty"` - ExpiresAt *time.Time `json:"expires_at,omitempty"` + Content *json.RawMessage `json:"content"` + Data *map[string]any `json:"data"` + ExpiresAt *time.Time `json:"expires_at"` // Identifier An external identifier with source and optional metadata Identifier ExternalID `json:"identifier"` Priority *int16 `json:"priority,omitempty"` - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` // SenderIdentityId Required for email and sms messages. Push uses project push provider settings. - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` - Source *string `json:"source,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + Source *string `json:"source"` Tags *[]string `json:"tags,omitempty"` // Target One or more external identifiers to identify the organization @@ -366,17 +307,17 @@ type OrganizationInboxMessageRef struct { // OrganizationRequest defines model for OrganizationRequest. type OrganizationRequest struct { - Data *map[string]any `json:"data,omitempty"` + Data *map[string]any `json:"data"` // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` - Name *string `json:"name,omitempty"` + Name *string `json:"name"` } // OrganizationUserRequest defines model for OrganizationUserRequest. type OrganizationUserRequest struct { // Data Organization-specific data for this user - Data *map[string]any `json:"data,omitempty"` + Data *map[string]any `json:"data"` Organization struct { // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` @@ -423,7 +364,7 @@ type RemoveOrganizationUserRequest struct { // ScheduledAccepted defines model for ScheduledAccepted. type ScheduledAccepted struct { // Data Scheduled resource data - Data *map[string]any `json:"data,omitempty"` + Data *map[string]any `json:"data"` // Id The unique identifier for the scheduled instance Id openapi_types.UUID `json:"id"` @@ -446,43 +387,49 @@ type SessionToken struct { // UpsertOrganizationScheduledRequest defines model for UpsertOrganizationScheduledRequest. type UpsertOrganizationScheduledRequest struct { // Data Scheduled resource data - Data *map[string]any `json:"data,omitempty"` + Data *map[string]any `json:"data"` + + // Id The id of the schedule assignment. Omit to create a new assignment (multiple assignments may share the same name per organization); supply an existing id to update that assignment in place. The id is returned in the response. + Id *openapi_types.UUID `json:"id"` // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval,omitempty"` + Interval *string `json:"interval"` // Name The name of the scheduled resource Name string `json:"name"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at,omitempty"` + StartAt *time.Time `json:"start_at"` } // UpsertUserScheduledRequest defines model for UpsertUserScheduledRequest. type UpsertUserScheduledRequest struct { // Data Scheduled resource data - Data *map[string]any `json:"data,omitempty"` + Data *map[string]any `json:"data"` + + // Id The id of the schedule assignment. Omit to create a new assignment (multiple assignments may share the same name per user); supply an existing id to update that assignment in place. The id is returned in the response. + Id *openapi_types.UUID `json:"id"` // Identifier One or more external identifiers to identify the user Identifier *UserIdentifier `json:"identifier,omitempty"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval,omitempty"` + Interval *string `json:"interval"` // Name The name of the scheduled resource Name string `json:"name"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at,omitempty"` + StartAt *time.Time `json:"start_at"` } // User defines model for User. @@ -537,9 +484,6 @@ type ProjectID = openapi_types.UUID // Error defines model for Error. type Error = Problem -// httpBearerAuthContextKey is the context key for HttpBearerAuth security scheme -type httpBearerAuthContextKey string - // GetOrganizationInboxParams defines parameters for GetOrganizationInbox. type GetOrganizationInboxParams struct { Source string `form:"source" json:"source"` @@ -1478,14 +1422,14 @@ func NewCreateSessionRequestWithBody(server string, projectID ProjectID, authMet var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "authMethodID", authMethodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "authMethodID", runtime.ParamLocationPath, authMethodID) if err != nil { return nil, err } @@ -1505,7 +1449,7 @@ func NewCreateSessionRequestWithBody(server string, projectID ProjectID, authMet return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -1532,7 +1476,7 @@ func NewDeleteOrganizationClientRequestWithBody(server string, projectID Project var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -1552,7 +1496,7 @@ func NewDeleteOrganizationClientRequestWithBody(server string, projectID Project return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -1579,7 +1523,7 @@ func NewUpsertOrganizationClientRequestWithBody(server string, projectID Project var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -1599,7 +1543,7 @@ func NewUpsertOrganizationClientRequestWithBody(server string, projectID Project return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -1626,7 +1570,7 @@ func NewPostOrganizationEventsClientRequestWithBody(server string, projectID Pro var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -1646,7 +1590,7 @@ func NewPostOrganizationEventsClientRequestWithBody(server string, projectID Pro return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -1662,7 +1606,7 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -1683,37 +1627,43 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -1721,11 +1671,15 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -1733,11 +1687,15 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -1745,31 +1703,43 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -1777,23 +1747,24 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -1818,7 +1789,7 @@ func NewPostOrganizationInboxMessagesRequestWithBody(server string, projectID Pr var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -1838,7 +1809,7 @@ func NewPostOrganizationInboxMessagesRequestWithBody(server string, projectID Pr return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -1865,7 +1836,7 @@ func NewPostOrganizationInboxArchivedRequestWithBody(server string, projectID Pr var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -1885,7 +1856,7 @@ func NewPostOrganizationInboxArchivedRequestWithBody(server string, projectID Pr return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -1901,7 +1872,7 @@ func NewGetOrganizationInboxCountRequest(server string, projectID ProjectID, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -1922,45 +1893,48 @@ func NewGetOrganizationInboxCountRequest(server string, projectID ProjectID, par } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -1985,7 +1959,7 @@ func NewPostOrganizationInboxReadRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2005,7 +1979,7 @@ func NewPostOrganizationInboxReadRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2032,7 +2006,7 @@ func NewDeleteOrganizationScheduledClientRequestWithBody(server string, projectI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2052,7 +2026,7 @@ func NewDeleteOrganizationScheduledClientRequestWithBody(server string, projectI return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -2079,7 +2053,7 @@ func NewUpsertOrganizationScheduledClientRequestWithBody(server string, projectI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2099,7 +2073,7 @@ func NewUpsertOrganizationScheduledClientRequestWithBody(server string, projectI return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2126,7 +2100,7 @@ func NewRemoveOrganizationUserClientRequestWithBody(server string, projectID Pro var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2146,7 +2120,7 @@ func NewRemoveOrganizationUserClientRequestWithBody(server string, projectID Pro return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -2173,7 +2147,7 @@ func NewAddOrganizationUserClientRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2193,7 +2167,7 @@ func NewAddOrganizationUserClientRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2209,7 +2183,7 @@ func NewGetVapidPublicKeyRequest(server string, projectID ProjectID) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2229,7 +2203,7 @@ func NewGetVapidPublicKeyRequest(server string, projectID ProjectID) (*http.Requ return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2254,7 +2228,7 @@ func NewDeleteUserClientRequestWithBody(server string, projectID ProjectID, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2274,7 +2248,7 @@ func NewDeleteUserClientRequestWithBody(server string, projectID ProjectID, cont return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -2301,7 +2275,7 @@ func NewUpsertUserClientRequestWithBody(server string, projectID ProjectID, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2321,7 +2295,7 @@ func NewUpsertUserClientRequestWithBody(server string, projectID ProjectID, cont return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2348,7 +2322,7 @@ func NewRegisterDeviceRequestWithBody(server string, projectID ProjectID, conten var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2368,7 +2342,7 @@ func NewRegisterDeviceRequestWithBody(server string, projectID ProjectID, conten return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2395,7 +2369,7 @@ func NewPostUserEventsRequestWithBody(server string, projectID ProjectID, conten var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2415,7 +2389,7 @@ func NewPostUserEventsRequestWithBody(server string, projectID ProjectID, conten return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2431,7 +2405,7 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2452,37 +2426,43 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2490,11 +2470,15 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2502,11 +2486,15 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2514,31 +2502,43 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -2546,23 +2546,24 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2587,7 +2588,7 @@ func NewPostUserInboxMessagesRequestWithBody(server string, projectID ProjectID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2607,7 +2608,7 @@ func NewPostUserInboxMessagesRequestWithBody(server string, projectID ProjectID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2634,7 +2635,7 @@ func NewPostUserInboxArchivedRequestWithBody(server string, projectID ProjectID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2654,7 +2655,7 @@ func NewPostUserInboxArchivedRequestWithBody(server string, projectID ProjectID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2670,7 +2671,7 @@ func NewGetUserInboxCountRequest(server string, projectID ProjectID, params *Get var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2691,45 +2692,48 @@ func NewGetUserInboxCountRequest(server string, projectID ProjectID, params *Get } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2754,7 +2758,7 @@ func NewPostUserInboxReadRequestWithBody(server string, projectID ProjectID, con var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2774,7 +2778,7 @@ func NewPostUserInboxReadRequestWithBody(server string, projectID ProjectID, con return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2801,7 +2805,7 @@ func NewDeleteUserScheduledClientRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2821,7 +2825,7 @@ func NewDeleteUserScheduledClientRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err } @@ -2848,7 +2852,7 @@ func NewUpsertUserScheduledClientRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -2868,7 +2872,7 @@ func NewUpsertUserScheduledClientRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2884,14 +2888,14 @@ func NewGetPreferencesPageRequest(server string, projectID openapi_types.UUID, u var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -2911,7 +2915,7 @@ func NewGetPreferencesPageRequest(server string, projectID openapi_types.UUID, u return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -2936,14 +2940,14 @@ func NewUpdatePreferencesRequestWithBody(server string, projectID openapi_types. var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -2963,7 +2967,7 @@ func NewUpdatePreferencesRequestWithBody(server string, projectID openapi_types. return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -2993,29 +2997,24 @@ func NewEmailUnsubscribeRequest(server string, params *EmailUnsubscribeParams) ( } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "link", params.Link, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link", runtime.ParamLocationQuery, params.Link); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -3216,14 +3215,6 @@ func (r CreateSessionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateSessionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteOrganizationClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3246,14 +3237,6 @@ func (r DeleteOrganizationClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteOrganizationClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertOrganizationClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3277,14 +3260,6 @@ func (r UpsertOrganizationClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertOrganizationClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostOrganizationEventsClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3307,14 +3282,6 @@ func (r PostOrganizationEventsClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostOrganizationEventsClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetOrganizationInboxResponse struct { Body []byte HTTPResponse *http.Response @@ -3338,14 +3305,6 @@ func (r GetOrganizationInboxResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOrganizationInboxResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostOrganizationInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -3368,14 +3327,6 @@ func (r PostOrganizationInboxMessagesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostOrganizationInboxMessagesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostOrganizationInboxArchivedResponse struct { Body []byte HTTPResponse *http.Response @@ -3398,14 +3349,6 @@ func (r PostOrganizationInboxArchivedResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostOrganizationInboxArchivedResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetOrganizationInboxCountResponse struct { Body []byte HTTPResponse *http.Response @@ -3429,14 +3372,6 @@ func (r GetOrganizationInboxCountResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOrganizationInboxCountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostOrganizationInboxReadResponse struct { Body []byte HTTPResponse *http.Response @@ -3459,14 +3394,6 @@ func (r PostOrganizationInboxReadResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostOrganizationInboxReadResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteOrganizationScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3489,14 +3416,6 @@ func (r DeleteOrganizationScheduledClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteOrganizationScheduledClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertOrganizationScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3520,14 +3439,6 @@ func (r UpsertOrganizationScheduledClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertOrganizationScheduledClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type RemoveOrganizationUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3550,14 +3461,6 @@ func (r RemoveOrganizationUserClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RemoveOrganizationUserClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type AddOrganizationUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3580,14 +3483,6 @@ func (r AddOrganizationUserClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddOrganizationUserClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetVapidPublicKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -3611,14 +3506,6 @@ func (r GetVapidPublicKeyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetVapidPublicKeyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3641,14 +3528,6 @@ func (r DeleteUserClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3672,14 +3551,6 @@ func (r UpsertUserClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertUserClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type RegisterDeviceResponse struct { Body []byte HTTPResponse *http.Response @@ -3702,14 +3573,6 @@ func (r RegisterDeviceResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RegisterDeviceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostUserEventsResponse struct { Body []byte HTTPResponse *http.Response @@ -3732,14 +3595,6 @@ func (r PostUserEventsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostUserEventsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserInboxResponse struct { Body []byte HTTPResponse *http.Response @@ -3763,14 +3618,6 @@ func (r GetUserInboxResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserInboxResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostUserInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -3793,14 +3640,6 @@ func (r PostUserInboxMessagesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostUserInboxMessagesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostUserInboxArchivedResponse struct { Body []byte HTTPResponse *http.Response @@ -3823,14 +3662,6 @@ func (r PostUserInboxArchivedResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostUserInboxArchivedResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserInboxCountResponse struct { Body []byte HTTPResponse *http.Response @@ -3854,14 +3685,6 @@ func (r GetUserInboxCountResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserInboxCountResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PostUserInboxReadResponse struct { Body []byte HTTPResponse *http.Response @@ -3884,14 +3707,6 @@ func (r PostUserInboxReadResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostUserInboxReadResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteUserScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3914,14 +3729,6 @@ func (r DeleteUserScheduledClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserScheduledClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertUserScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3945,14 +3752,6 @@ func (r UpsertUserScheduledClientResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertUserScheduledClientResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetPreferencesPageResponse struct { Body []byte HTTPResponse *http.Response @@ -3974,14 +3773,6 @@ func (r GetPreferencesPageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetPreferencesPageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdatePreferencesResponse struct { Body []byte HTTPResponse *http.Response @@ -4003,14 +3794,6 @@ func (r UpdatePreferencesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdatePreferencesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type EmailUnsubscribeResponse struct { Body []byte HTTPResponse *http.Response @@ -4032,14 +3815,6 @@ func (r EmailUnsubscribeResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EmailUnsubscribeResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - // CreateSessionWithBodyWithResponse request with arbitrary body returning *CreateSessionResponse func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, projectID ProjectID, authMethodID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error) { rsp, err := c.CreateSessionWithBody(ctx, projectID, authMethodID, contentType, body, reqEditors...) @@ -5501,12 +5276,11 @@ type MiddlewareFunc func(http.Handler) http.Handler func (siw *ServerInterfaceWrapper) CreateSession(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5515,7 +5289,7 @@ func (siw *ServerInterfaceWrapper) CreateSession(w http.ResponseWriter, r *http. // ------------- Path parameter "authMethodID" ------------- var authMethodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "authMethodID", chi.URLParam(r, "authMethodID"), &authMethodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "authMethodID", chi.URLParam(r, "authMethodID"), &authMethodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "authMethodID", Err: err}) return @@ -5542,12 +5316,11 @@ func (siw *ServerInterfaceWrapper) CreateSession(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DeleteOrganizationClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5574,12 +5347,11 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationClient(w http.ResponseWrite func (siw *ServerInterfaceWrapper) UpsertOrganizationClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5606,12 +5378,11 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationClient(w http.ResponseWrite func (siw *ServerInterfaceWrapper) PostOrganizationEventsClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5638,12 +5409,11 @@ func (siw *ServerInterfaceWrapper) PostOrganizationEventsClient(w http.ResponseW func (siw *ServerInterfaceWrapper) GetOrganizationInbox(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5660,118 +5430,94 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInbox(w http.ResponseWriter, r // ------------- Required query parameter "source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("source"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) return } // ------------- Required query parameter "external_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) return } // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) return } // ------------- Required query parameter "channel" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("channel"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -5790,12 +5536,11 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInbox(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) PostOrganizationInboxMessages(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5822,12 +5567,11 @@ func (siw *ServerInterfaceWrapper) PostOrganizationInboxMessages(w http.Response func (siw *ServerInterfaceWrapper) PostOrganizationInboxArchived(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5854,12 +5598,11 @@ func (siw *ServerInterfaceWrapper) PostOrganizationInboxArchived(w http.Response func (siw *ServerInterfaceWrapper) GetOrganizationInboxCount(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5876,40 +5619,46 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxCount(w http.ResponseWrit // ------------- Required query parameter "source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("source"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) return } // ------------- Required query parameter "external_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) return } // ------------- Required query parameter "channel" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("channel"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) return } @@ -5928,12 +5677,11 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxCount(w http.ResponseWrit func (siw *ServerInterfaceWrapper) PostOrganizationInboxRead(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5960,12 +5708,11 @@ func (siw *ServerInterfaceWrapper) PostOrganizationInboxRead(w http.ResponseWrit func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduledClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5992,12 +5739,11 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduledClient(w http.Resp func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduledClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6024,12 +5770,11 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduledClient(w http.Resp func (siw *ServerInterfaceWrapper) RemoveOrganizationUserClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6056,12 +5801,11 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationUserClient(w http.ResponseW func (siw *ServerInterfaceWrapper) AddOrganizationUserClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6088,12 +5832,11 @@ func (siw *ServerInterfaceWrapper) AddOrganizationUserClient(w http.ResponseWrit func (siw *ServerInterfaceWrapper) GetVapidPublicKey(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6120,12 +5863,11 @@ func (siw *ServerInterfaceWrapper) GetVapidPublicKey(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) DeleteUserClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6152,12 +5894,11 @@ func (siw *ServerInterfaceWrapper) DeleteUserClient(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) UpsertUserClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6184,12 +5925,11 @@ func (siw *ServerInterfaceWrapper) UpsertUserClient(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) RegisterDevice(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6216,12 +5956,11 @@ func (siw *ServerInterfaceWrapper) RegisterDevice(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) PostUserEvents(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6248,12 +5987,11 @@ func (siw *ServerInterfaceWrapper) PostUserEvents(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetUserInbox(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6270,118 +6008,94 @@ func (siw *ServerInterfaceWrapper) GetUserInbox(w http.ResponseWriter, r *http.R // ------------- Required query parameter "source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("source"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) return } // ------------- Required query parameter "external_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) return } // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) return } // ------------- Required query parameter "channel" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("channel"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -6400,12 +6114,11 @@ func (siw *ServerInterfaceWrapper) GetUserInbox(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) PostUserInboxMessages(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6432,12 +6145,11 @@ func (siw *ServerInterfaceWrapper) PostUserInboxMessages(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) PostUserInboxArchived(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6464,12 +6176,11 @@ func (siw *ServerInterfaceWrapper) PostUserInboxArchived(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) GetUserInboxCount(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6486,40 +6197,46 @@ func (siw *ServerInterfaceWrapper) GetUserInboxCount(w http.ResponseWriter, r *h // ------------- Required query parameter "source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("source"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) return } // ------------- Required query parameter "external_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) return } // ------------- Required query parameter "channel" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("channel"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) return } @@ -6538,12 +6255,11 @@ func (siw *ServerInterfaceWrapper) GetUserInboxCount(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) PostUserInboxRead(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6570,12 +6286,11 @@ func (siw *ServerInterfaceWrapper) PostUserInboxRead(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) DeleteUserScheduledClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6602,12 +6317,11 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduledClient(w http.ResponseWrit func (siw *ServerInterfaceWrapper) UpsertUserScheduledClient(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6634,12 +6348,11 @@ func (siw *ServerInterfaceWrapper) UpsertUserScheduledClient(w http.ResponseWrit func (siw *ServerInterfaceWrapper) GetPreferencesPage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6648,7 +6361,7 @@ func (siw *ServerInterfaceWrapper) GetPreferencesPage(w http.ResponseWriter, r * // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -6669,12 +6382,11 @@ func (siw *ServerInterfaceWrapper) GetPreferencesPage(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) UpdatePreferences(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6683,7 +6395,7 @@ func (siw *ServerInterfaceWrapper) UpdatePreferences(w http.ResponseWriter, r *h // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -6704,21 +6416,22 @@ func (siw *ServerInterfaceWrapper) UpdatePreferences(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) EmailUnsubscribe(w http.ResponseWriter, r *http.Request) { var err error - _ = err // Parameter object where we will unmarshal all parameters from the context var params EmailUnsubscribeParams // ------------- Required query parameter "link" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, true, "link", r.URL.Query(), ¶ms.Link, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + if paramValue := r.URL.Query().Get("link"); paramValue != "" { + + } else { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "link"}) + return + } + + err = runtime.BindQueryParameter("form", true, true, "link", r.URL.Query(), ¶ms.Link) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "link"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "link", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "link", Err: err}) return } diff --git a/internal/http/controllers/v1/client/scheduled.go b/internal/http/controllers/v1/client/scheduled.go index 398303ff..44b034c3 100644 --- a/internal/http/controllers/v1/client/scheduled.go +++ b/internal/http/controllers/v1/client/scheduled.go @@ -75,17 +75,26 @@ func (srv *ScheduledController) UpsertUserScheduledClient(w http.ResponseWriter, data = *req.Data } + // Resolve the assignment id: a supplied id upserts that specific instance, + // otherwise mint a new one so this submission creates a fresh assignment. + // Multiple assignments may share the same name per user. + assignmentID := uuid.New() + if req.Id != nil { + assignmentID = *req.Id + } + userIDParams := auth.BoundUserIdentifiers(r.Context(), oapi.ToParams(*req.Identifier)) msg := schemas.ScheduledMsg{ - ID: uuid.New(), - ProjectID: projectID, - Name: req.Name, - Type: scheduleType, - SubjectType: "user", - Data: data, - Identifiers: userIDParams, - StartAt: req.StartAt, - Interval: req.Interval, + ID: uuid.New(), + ProjectID: projectID, + AssignmentID: assignmentID, + Name: req.Name, + Type: scheduleType, + SubjectType: "user", + Data: data, + Identifiers: userIDParams, + StartAt: req.StartAt, + Interval: req.Interval, } if req.ScheduledAt != nil { @@ -99,7 +108,7 @@ func (srv *ScheduledController) UpsertUserScheduledClient(w http.ResponseWriter, return } - logger.Info("user scheduled accepted for processing", zap.Stringer("id", msg.ID)) + logger.Info("user scheduled accepted for processing", zap.Stringer("assignment_id", assignmentID)) var scheduledAt time.Time if req.ScheduledAt != nil { @@ -109,7 +118,7 @@ func (srv *ScheduledController) UpsertUserScheduledClient(w http.ResponseWriter, } json.Write(w, http.StatusAccepted, oapi.ScheduledAccepted{ - Id: msg.ID, + Id: assignmentID, Name: req.Name, ScheduledAt: scheduledAt, Data: req.Data, @@ -239,9 +248,18 @@ func (srv *ScheduledController) UpsertOrganizationScheduledClient(w http.Respons data = *req.Data } + // Resolve the assignment id: a supplied id upserts that specific instance, + // otherwise mint a new one so this submission creates a fresh assignment. + // Multiple assignments may share the same name per organization. + assignmentID := uuid.New() + if req.Id != nil { + assignmentID = *req.Id + } + msg := schemas.ScheduledMsg{ ID: uuid.New(), ProjectID: projectID, + AssignmentID: assignmentID, Name: req.Name, Type: scheduleType, SubjectType: "organization", @@ -263,7 +281,7 @@ func (srv *ScheduledController) UpsertOrganizationScheduledClient(w http.Respons return } - logger.Info("organization scheduled accepted for processing", zap.Stringer("id", msg.ID)) + logger.Info("organization scheduled accepted for processing", zap.Stringer("assignment_id", assignmentID)) var scheduledAt time.Time if req.ScheduledAt != nil { @@ -273,7 +291,7 @@ func (srv *ScheduledController) UpsertOrganizationScheduledClient(w http.Respons } json.Write(w, http.StatusAccepted, oapi.ScheduledAccepted{ - Id: msg.ID, + Id: assignmentID, Name: req.Name, ScheduledAt: scheduledAt, Data: req.Data, diff --git a/internal/http/controllers/v1/management/oapi/resources.yml b/internal/http/controllers/v1/management/oapi/resources.yml index d686095c..41374bec 100644 --- a/internal/http/controllers/v1/management/oapi/resources.yml +++ b/internal/http/controllers/v1/management/oapi/resources.yml @@ -9930,6 +9930,11 @@ components: UpsertUserScheduledRequest: type: object properties: + id: + type: string + format: uuid + description: The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per user); supply an existing id to update that assignment in place. + example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" scheduled_id: type: string format: uuid @@ -9969,6 +9974,11 @@ components: UpsertOrganizationScheduledRequest: type: object properties: + id: + type: string + format: uuid + description: The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per organization); supply an existing id to update that assignment in place. + example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" scheduled_id: type: string format: uuid diff --git a/internal/http/controllers/v1/management/oapi/resources_gen.go b/internal/http/controllers/v1/management/oapi/resources_gen.go index 48caa877..2284928e 100644 --- a/internal/http/controllers/v1/management/oapi/resources_gen.go +++ b/internal/http/controllers/v1/management/oapi/resources_gen.go @@ -1,13 +1,12 @@ // Package oapi provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT. package oapi import ( "bytes" "context" "encoding/json" - "errors" "fmt" "io" "net/http" @@ -22,7 +21,7 @@ import ( ) const ( - HttpBearerAuthScopes httpBearerAuthContextKey = "HttpBearerAuth.Scopes" + HttpBearerAuthScopes = "HttpBearerAuth.Scopes" ) // Defines values for AuthMethodType. @@ -32,20 +31,6 @@ const ( AuthMethodTypeTrustedIssuer AuthMethodType = "trusted_issuer" ) -// Valid indicates whether the value is a known member of the AuthMethodType enum. -func (e AuthMethodType) Valid() bool { - switch e { - case AuthMethodTypeApiKey: - return true - case AuthMethodTypeSession: - return true - case AuthMethodTypeTrustedIssuer: - return true - default: - return false - } -} - // Defines values for BroadcastState. const ( BroadcastStateCancelled BroadcastState = "cancelled" @@ -56,26 +41,6 @@ const ( BroadcastStateSending BroadcastState = "sending" ) -// Valid indicates whether the value is a known member of the BroadcastState enum. -func (e BroadcastState) Valid() bool { - switch e { - case BroadcastStateCancelled: - return true - case BroadcastStateCompleted: - return true - case BroadcastStateFailed: - return true - case BroadcastStatePending: - return true - case BroadcastStateScheduled: - return true - case BroadcastStateSending: - return true - default: - return false - } -} - // Defines values for CampaignUserStatus. const ( CampaignUserStatusAborted CampaignUserStatus = "aborted" @@ -86,26 +51,6 @@ const ( CampaignUserStatusThrottled CampaignUserStatus = "throttled" ) -// Valid indicates whether the value is a known member of the CampaignUserStatus enum. -func (e CampaignUserStatus) Valid() bool { - switch e { - case CampaignUserStatusAborted: - return true - case CampaignUserStatusFailed: - return true - case CampaignUserStatusOpened: - return true - case CampaignUserStatusPending: - return true - case CampaignUserStatusSent: - return true - case CampaignUserStatusThrottled: - return true - default: - return false - } -} - // Defines values for Channel. const ( ChannelEmail Channel = "email" @@ -114,40 +59,12 @@ const ( ChannelSms Channel = "sms" ) -// Valid indicates whether the value is a known member of the Channel enum. -func (e Channel) Valid() bool { - switch e { - case ChannelEmail: - return true - case ChannelInbox: - return true - case ChannelPush: - return true - case ChannelSms: - return true - default: - return false - } -} - // Defines values for CreateListType. const ( CreateListTypeDynamic CreateListType = "dynamic" CreateListTypeStatic CreateListType = "static" ) -// Valid indicates whether the value is a known member of the CreateListType enum. -func (e CreateListType) Valid() bool { - switch e { - case CreateListTypeDynamic: - return true - case CreateListTypeStatic: - return true - default: - return false - } -} - // Defines values for CreateProjectInviteRole. const ( CreateProjectInviteRoleAdmin CreateProjectInviteRole = "admin" @@ -156,58 +73,18 @@ const ( CreateProjectInviteRoleSupport CreateProjectInviteRole = "support" ) -// Valid indicates whether the value is a known member of the CreateProjectInviteRole enum. -func (e CreateProjectInviteRole) Valid() bool { - switch e { - case CreateProjectInviteRoleAdmin: - return true - case CreateProjectInviteRoleClient: - return true - case CreateProjectInviteRoleEditor: - return true - case CreateProjectInviteRoleSupport: - return true - default: - return false - } -} - // Defines values for CreateScheduleOffsetRequestDirection. const ( CreateScheduleOffsetRequestDirectionAfter CreateScheduleOffsetRequestDirection = "after" CreateScheduleOffsetRequestDirectionBefore CreateScheduleOffsetRequestDirection = "before" ) -// Valid indicates whether the value is a known member of the CreateScheduleOffsetRequestDirection enum. -func (e CreateScheduleOffsetRequestDirection) Valid() bool { - switch e { - case CreateScheduleOffsetRequestDirectionAfter: - return true - case CreateScheduleOffsetRequestDirectionBefore: - return true - default: - return false - } -} - // Defines values for CreateSenderIdentityChannel. const ( CreateSenderIdentityChannelEmail CreateSenderIdentityChannel = "email" CreateSenderIdentityChannelSms CreateSenderIdentityChannel = "sms" ) -// Valid indicates whether the value is a known member of the CreateSenderIdentityChannel enum. -func (e CreateSenderIdentityChannel) Valid() bool { - switch e { - case CreateSenderIdentityChannelEmail: - return true - case CreateSenderIdentityChannelSms: - return true - default: - return false - } -} - // Defines values for CreateUserDeviceOs. const ( CreateUserDeviceOsAndroid CreateUserDeviceOs = "android" @@ -215,20 +92,6 @@ const ( CreateUserDeviceOsWeb CreateUserDeviceOs = "web" ) -// Valid indicates whether the value is a known member of the CreateUserDeviceOs enum. -func (e CreateUserDeviceOs) Valid() bool { - switch e { - case CreateUserDeviceOsAndroid: - return true - case CreateUserDeviceOsIos: - return true - case CreateUserDeviceOsWeb: - return true - default: - return false - } -} - // Defines values for JourneyStatus. const ( JourneyStatusArchived JourneyStatus = "archived" @@ -236,20 +99,6 @@ const ( JourneyStatusPublished JourneyStatus = "published" ) -// Valid indicates whether the value is a known member of the JourneyStatus enum. -func (e JourneyStatus) Valid() bool { - switch e { - case JourneyStatusArchived: - return true - case JourneyStatusDraft: - return true - case JourneyStatusPublished: - return true - default: - return false - } -} - // Defines values for JourneyStepType. const ( JourneyStepTypeAction JourneyStepType = "action" @@ -266,38 +115,6 @@ const ( JourneyStepTypeUpdate JourneyStepType = "update" ) -// Valid indicates whether the value is a known member of the JourneyStepType enum. -func (e JourneyStepType) Valid() bool { - switch e { - case JourneyStepTypeAction: - return true - case JourneyStepTypeBalancer: - return true - case JourneyStepTypeCampaign: - return true - case JourneyStepTypeDelay: - return true - case JourneyStepTypeEntrance: - return true - case JourneyStepTypeEvent: - return true - case JourneyStepTypeExit: - return true - case JourneyStepTypeExperiment: - return true - case JourneyStepTypeGate: - return true - case JourneyStepTypeSchedule: - return true - case JourneyStepTypeSticky: - return true - case JourneyStepTypeUpdate: - return true - default: - return false - } -} - // Defines values for ListState. const ( ListStateDraft ListState = "draft" @@ -305,38 +122,12 @@ const ( ListStateReady ListState = "ready" ) -// Valid indicates whether the value is a known member of the ListState enum. -func (e ListState) Valid() bool { - switch e { - case ListStateDraft: - return true - case ListStateLoading: - return true - case ListStateReady: - return true - default: - return false - } -} - // Defines values for ListType. const ( ListTypeDynamic ListType = "dynamic" ListTypeStatic ListType = "static" ) -// Valid indicates whether the value is a known member of the ListType enum. -func (e ListType) Valid() bool { - switch e { - case ListTypeDynamic: - return true - case ListTypeStatic: - return true - default: - return false - } -} - // Defines values for OrganizationRole. const ( OrganizationRoleAdmin OrganizationRole = "admin" @@ -344,20 +135,6 @@ const ( OrganizationRoleOwner OrganizationRole = "owner" ) -// Valid indicates whether the value is a known member of the OrganizationRole enum. -func (e OrganizationRole) Valid() bool { - switch e { - case OrganizationRoleAdmin: - return true - case OrganizationRoleMember: - return true - case OrganizationRoleOwner: - return true - default: - return false - } -} - // Defines values for PermissionGrantVerb. const ( PermissionGrantVerbCreate PermissionGrantVerb = "create" @@ -366,22 +143,6 @@ const ( PermissionGrantVerbUpdate PermissionGrantVerb = "update" ) -// Valid indicates whether the value is a known member of the PermissionGrantVerb enum. -func (e PermissionGrantVerb) Valid() bool { - switch e { - case PermissionGrantVerbCreate: - return true - case PermissionGrantVerbDelete: - return true - case PermissionGrantVerbRead: - return true - case PermissionGrantVerbUpdate: - return true - default: - return false - } -} - // Defines values for ProjectInviteRole. const ( ProjectInviteRoleAdmin ProjectInviteRole = "admin" @@ -390,22 +151,6 @@ const ( ProjectInviteRoleSupport ProjectInviteRole = "support" ) -// Valid indicates whether the value is a known member of the ProjectInviteRole enum. -func (e ProjectInviteRole) Valid() bool { - switch e { - case ProjectInviteRoleAdmin: - return true - case ProjectInviteRoleClient: - return true - case ProjectInviteRoleEditor: - return true - case ProjectInviteRoleSupport: - return true - default: - return false - } -} - // Defines values for ProjectPushProviderPlatform. const ( ProjectPushProviderPlatformAndroid ProjectPushProviderPlatform = "android" @@ -414,22 +159,6 @@ const ( ProjectPushProviderPlatformWeb ProjectPushProviderPlatform = "web" ) -// Valid indicates whether the value is a known member of the ProjectPushProviderPlatform enum. -func (e ProjectPushProviderPlatform) Valid() bool { - switch e { - case ProjectPushProviderPlatformAndroid: - return true - case ProjectPushProviderPlatformIos: - return true - case ProjectPushProviderPlatformMail: - return true - case ProjectPushProviderPlatformWeb: - return true - default: - return false - } -} - // Defines values for ProjectRole. const ( ProjectRoleAdmin ProjectRole = "admin" @@ -438,166 +167,54 @@ const ( ProjectRoleSupport ProjectRole = "support" ) -// Valid indicates whether the value is a known member of the ProjectRole enum. -func (e ProjectRole) Valid() bool { - switch e { - case ProjectRoleAdmin: - return true - case ProjectRoleClient: - return true - case ProjectRoleEditor: - return true - case ProjectRoleSupport: - return true - default: - return false - } -} - // Defines values for ScheduleOffsetDirection. const ( ScheduleOffsetDirectionAfter ScheduleOffsetDirection = "after" ScheduleOffsetDirectionBefore ScheduleOffsetDirection = "before" ) -// Valid indicates whether the value is a known member of the ScheduleOffsetDirection enum. -func (e ScheduleOffsetDirection) Valid() bool { - switch e { - case ScheduleOffsetDirectionAfter: - return true - case ScheduleOffsetDirectionBefore: - return true - default: - return false - } -} - // Defines values for SenderIdentityChannel. const ( SenderIdentityChannelEmail SenderIdentityChannel = "email" SenderIdentityChannelSms SenderIdentityChannel = "sms" ) -// Valid indicates whether the value is a known member of the SenderIdentityChannel enum. -func (e SenderIdentityChannel) Valid() bool { - switch e { - case SenderIdentityChannelEmail: - return true - case SenderIdentityChannelSms: - return true - default: - return false - } -} - // Defines values for SubjectScope. const ( All SubjectScope = "all" Own SubjectScope = "own" ) -// Valid indicates whether the value is a known member of the SubjectScope enum. -func (e SubjectScope) Valid() bool { - switch e { - case All: - return true - case Own: - return true - default: - return false - } -} - // Defines values for SubscriptionState. const ( Subscribed SubscriptionState = "subscribed" Unsubscribed SubscriptionState = "unsubscribed" ) -// Valid indicates whether the value is a known member of the SubscriptionState enum. -func (e SubscriptionState) Valid() bool { - switch e { - case Subscribed: - return true - case Unsubscribed: - return true - default: - return false - } -} - // Defines values for UpdateOrganizationScheduledRequestPause. const ( UpdateOrganizationScheduledRequestPauseAfterNextInterval UpdateOrganizationScheduledRequestPause = "after_next_interval" UpdateOrganizationScheduledRequestPauseImmediately UpdateOrganizationScheduledRequestPause = "immediately" ) -// Valid indicates whether the value is a known member of the UpdateOrganizationScheduledRequestPause enum. -func (e UpdateOrganizationScheduledRequestPause) Valid() bool { - switch e { - case UpdateOrganizationScheduledRequestPauseAfterNextInterval: - return true - case UpdateOrganizationScheduledRequestPauseImmediately: - return true - default: - return false - } -} - // Defines values for UpdateOrganizationScheduledRequestResume. const ( UpdateOrganizationScheduledRequestResumeAtNextInterval UpdateOrganizationScheduledRequestResume = "at_next_interval" UpdateOrganizationScheduledRequestResumeImmediately UpdateOrganizationScheduledRequestResume = "immediately" ) -// Valid indicates whether the value is a known member of the UpdateOrganizationScheduledRequestResume enum. -func (e UpdateOrganizationScheduledRequestResume) Valid() bool { - switch e { - case UpdateOrganizationScheduledRequestResumeAtNextInterval: - return true - case UpdateOrganizationScheduledRequestResumeImmediately: - return true - default: - return false - } -} - // Defines values for UpdateUserScheduledRequestPause. const ( UpdateUserScheduledRequestPauseAfterNextInterval UpdateUserScheduledRequestPause = "after_next_interval" UpdateUserScheduledRequestPauseImmediately UpdateUserScheduledRequestPause = "immediately" ) -// Valid indicates whether the value is a known member of the UpdateUserScheduledRequestPause enum. -func (e UpdateUserScheduledRequestPause) Valid() bool { - switch e { - case UpdateUserScheduledRequestPauseAfterNextInterval: - return true - case UpdateUserScheduledRequestPauseImmediately: - return true - default: - return false - } -} - // Defines values for UpdateUserScheduledRequestResume. const ( UpdateUserScheduledRequestResumeAtNextInterval UpdateUserScheduledRequestResume = "at_next_interval" UpdateUserScheduledRequestResumeImmediately UpdateUserScheduledRequestResume = "immediately" ) -// Valid indicates whether the value is a known member of the UpdateUserScheduledRequestResume enum. -func (e UpdateUserScheduledRequestResume) Valid() bool { - switch e { - case UpdateUserScheduledRequestResumeAtNextInterval: - return true - case UpdateUserScheduledRequestResumeImmediately: - return true - default: - return false - } -} - // Defines values for ListProjectInvitesParamsStatus. const ( Accepted ListProjectInvitesParamsStatus = "accepted" @@ -606,22 +223,6 @@ const ( Revoked ListProjectInvitesParamsStatus = "revoked" ) -// Valid indicates whether the value is a known member of the ListProjectInvitesParamsStatus enum. -func (e ListProjectInvitesParamsStatus) Valid() bool { - switch e { - case Accepted: - return true - case Expired: - return true - case Pending: - return true - case Revoked: - return true - default: - return false - } -} - // Defines values for ListProjectInvitesParamsRole. const ( ListProjectInvitesParamsRoleAdmin ListProjectInvitesParamsRole = "admin" @@ -630,40 +231,12 @@ const ( ListProjectInvitesParamsRoleSupport ListProjectInvitesParamsRole = "support" ) -// Valid indicates whether the value is a known member of the ListProjectInvitesParamsRole enum. -func (e ListProjectInvitesParamsRole) Valid() bool { - switch e { - case ListProjectInvitesParamsRoleAdmin: - return true - case ListProjectInvitesParamsRoleClient: - return true - case ListProjectInvitesParamsRoleEditor: - return true - case ListProjectInvitesParamsRoleSupport: - return true - default: - return false - } -} - // Defines values for ListSenderIdentitiesParamsChannel. const ( ListSenderIdentitiesParamsChannelEmail ListSenderIdentitiesParamsChannel = "email" ListSenderIdentitiesParamsChannelSms ListSenderIdentitiesParamsChannel = "sms" ) -// Valid indicates whether the value is a known member of the ListSenderIdentitiesParamsChannel enum. -func (e ListSenderIdentitiesParamsChannel) Valid() bool { - switch e { - case ListSenderIdentitiesParamsChannelEmail: - return true - case ListSenderIdentitiesParamsChannelSms: - return true - default: - return false - } -} - // Defines values for GetOrganizationInboxMessagesParamsStatus. const ( GetOrganizationInboxMessagesParamsStatusArchived GetOrganizationInboxMessagesParamsStatus = "archived" @@ -671,20 +244,6 @@ const ( GetOrganizationInboxMessagesParamsStatusUnread GetOrganizationInboxMessagesParamsStatus = "unread" ) -// Valid indicates whether the value is a known member of the GetOrganizationInboxMessagesParamsStatus enum. -func (e GetOrganizationInboxMessagesParamsStatus) Valid() bool { - switch e { - case GetOrganizationInboxMessagesParamsStatusArchived: - return true - case GetOrganizationInboxMessagesParamsStatusRead: - return true - case GetOrganizationInboxMessagesParamsStatusUnread: - return true - default: - return false - } -} - // Defines values for GetUserInboxMessagesParamsStatus. const ( GetUserInboxMessagesParamsStatusArchived GetUserInboxMessagesParamsStatus = "archived" @@ -692,53 +251,17 @@ const ( GetUserInboxMessagesParamsStatusUnread GetUserInboxMessagesParamsStatus = "unread" ) -// Valid indicates whether the value is a known member of the GetUserInboxMessagesParamsStatus enum. -func (e GetUserInboxMessagesParamsStatus) Valid() bool { - switch e { - case GetUserInboxMessagesParamsStatusArchived: - return true - case GetUserInboxMessagesParamsStatusRead: - return true - case GetUserInboxMessagesParamsStatusUnread: - return true - default: - return false - } -} - // Defines values for AuthCallbackParamsDriver. const ( AuthCallbackParamsDriverBasic AuthCallbackParamsDriver = "basic" AuthCallbackParamsDriverClerk AuthCallbackParamsDriver = "clerk" ) -// Valid indicates whether the value is a known member of the AuthCallbackParamsDriver enum. -func (e AuthCallbackParamsDriver) Valid() bool { - switch e { - case AuthCallbackParamsDriverBasic: - return true - case AuthCallbackParamsDriverClerk: - return true - default: - return false - } -} - // Defines values for AuthWebhookParamsDriver. const ( AuthWebhookParamsDriverClerk AuthWebhookParamsDriver = "clerk" ) -// Valid indicates whether the value is a known member of the AuthWebhookParamsDriver enum. -func (e AuthWebhookParamsDriver) Valid() bool { - switch e { - case AuthWebhookParamsDriverClerk: - return true - default: - return false - } -} - // Action defines model for Action. type Action struct { // Config Action configuration (varies by type) @@ -1064,25 +587,25 @@ type CreateCampaign struct { // CreateInboxMessageRequest defines model for CreateInboxMessageRequest. type CreateInboxMessageRequest struct { - BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` - CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` + BroadcastId *openapi_types.UUID `json:"broadcast_id"` + CampaignId *openapi_types.UUID `json:"campaign_id"` // Channel Communication channel type Channel Channel `json:"channel"` // Content Channel-specific payload content. - Content *json.RawMessage `json:"content,omitempty"` - Data *map[string]any `json:"data,omitempty"` - ExpiresAt *time.Time `json:"expires_at,omitempty"` + Content *json.RawMessage `json:"content"` + Data *map[string]any `json:"data"` + ExpiresAt *time.Time `json:"expires_at"` // Identifier An external identifier with source and optional metadata Identifier *ExternalID `json:"identifier,omitempty"` Priority *int16 `json:"priority,omitempty"` - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` // SenderIdentityId Required for email and sms messages. Push uses project push provider settings. - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` - Source *string `json:"source,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + Source *string `json:"source"` Tags *[]string `json:"tags,omitempty"` } @@ -1198,19 +721,19 @@ type CreateTag struct { // CreateTemplate defines model for CreateTemplate. type CreateTemplate struct { // Data Template-specific data based on type. Structure varies by template type. - Data *json.RawMessage `json:"data,omitempty"` + Data *json.RawMessage `json:"data"` // Locale The locale/language code for the template Locale string `json:"locale"` // SenderIdentityId The ID of the sender identity to use for this template - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` } // CreateUserDevice defines model for CreateUserDevice. type CreateUserDevice struct { - AppBuild *string `json:"app_build,omitempty"` - AppVersion *string `json:"app_version,omitempty"` + AppBuild *string `json:"app_build"` + AppVersion *string `json:"app_version"` Config struct { // Endpoint Web Push subscription endpoint URL Endpoint *string `json:"endpoint,omitempty"` @@ -1223,11 +746,11 @@ type CreateUserDevice struct { // Token Device token for FCM or APNs Token *string `json:"token,omitempty"` } `json:"config"` - Data *json.RawMessage `json:"data,omitempty"` + Data *json.RawMessage `json:"data"` DeviceId string `json:"device_id"` - Model *string `json:"model,omitempty"` + Model *string `json:"model"` Os CreateUserDeviceOs `json:"os"` - OsVersion *string `json:"os_version,omitempty"` + OsVersion *string `json:"os_version"` } // CreateUserDeviceOs defines model for CreateUserDevice.Os. @@ -1358,7 +881,7 @@ type ExternalID struct { ExternalId string `json:"external_id"` // Metadata Optional metadata associated with this identifier - Metadata *map[string]any `json:"metadata,omitempty"` + Metadata *map[string]any `json:"metadata"` // Source Source of the identifier (e.g. "default", "anonymous", or a custom source). Defaults to "default" if not provided. Source *string `json:"source,omitempty"` @@ -1369,7 +892,7 @@ type ExternalIDResponse struct { CreatedAt time.Time `json:"created_at"` ExternalId string `json:"external_id"` Id openapi_types.UUID `json:"id"` - Metadata *map[string]any `json:"metadata,omitempty"` + Metadata *map[string]any `json:"metadata"` Source string `json:"source"` UpdatedAt time.Time `json:"updated_at"` } @@ -1393,28 +916,28 @@ type IdentifyUser struct { // InboxMessage defines model for InboxMessage. type InboxMessage struct { - ArchivedAt *time.Time `json:"archived_at,omitempty"` - BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` - CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` + ArchivedAt *time.Time `json:"archived_at"` + BroadcastId *openapi_types.UUID `json:"broadcast_id"` + CampaignId *openapi_types.UUID `json:"campaign_id"` // Channel Communication channel type Channel Channel `json:"channel"` Content json.RawMessage `json:"content"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` - ExpiresAt *time.Time `json:"expires_at,omitempty"` + ExpiresAt *time.Time `json:"expires_at"` // ExternalId External identifier for the message, if one was provided at creation time. - ExternalId *string `json:"external_id,omitempty"` + ExternalId *string `json:"external_id"` Id openapi_types.UUID `json:"id"` OrganizationId *openapi_types.UUID `json:"organization_id,omitempty"` Priority int16 `json:"priority"` ProjectId openapi_types.UUID `json:"project_id"` - ReadAt *time.Time `json:"read_at,omitempty"` + ReadAt *time.Time `json:"read_at"` ScheduledAt time.Time `json:"scheduled_at"` - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` - SentAt *time.Time `json:"sent_at,omitempty"` - Source *string `json:"source,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + SentAt *time.Time `json:"sent_at"` + Source *string `json:"source"` Tags []string `json:"tags"` UpdatedAt time.Time `json:"updated_at"` UserId *openapi_types.UUID `json:"user_id,omitempty"` @@ -1487,7 +1010,7 @@ type JourneyStep struct { // JourneyStepChild defines model for JourneyStepChild. type JourneyStepChild struct { // Data Child-specific configuration data (structure varies by parent step type) - Data *json.RawMessage `json:"data,omitempty"` + Data *json.RawMessage `json:"data"` // ExternalId External ID of the child step ExternalId string `json:"external_id"` @@ -1646,16 +1169,16 @@ type OrganizationScheduled struct { Id openapi_types.UUID `json:"id"` // Interval Interval for recurring schedules - Interval *string `json:"interval,omitempty"` + Interval *string `json:"interval"` OrganizationId openapi_types.UUID `json:"organization_id"` // PausedAt When set, the schedule is paused and the scheduler will not advance it - PausedAt *time.Time `json:"paused_at,omitempty"` + PausedAt *time.Time `json:"paused_at"` ScheduledAt time.Time `json:"scheduled_at"` ScheduledId openapi_types.UUID `json:"scheduled_id"` // StartAt Start time of the recurring schedule interval - StartAt *time.Time `json:"start_at,omitempty"` + StartAt *time.Time `json:"start_at"` UpdatedAt time.Time `json:"updated_at"` } @@ -1687,7 +1210,7 @@ type PaginatedResponse struct { // PermissionGrant A single (resource, verb) entry in a custom permission set. type PermissionGrant struct { // Instances Optional allow-list of named instances this grant is scoped to. For a create grant the method may only create instances with these names (e.g. event names); omitted/empty = unrestricted. Only meaningful for create today. - Instances *[]string `json:"instances,omitempty"` + Instances *[]string `json:"instances"` Resource string `json:"resource"` Verb PermissionGrantVerb `json:"verb"` } @@ -1754,21 +1277,21 @@ type ProjectAdminList struct { // ProjectInvite defines model for ProjectInvite. type ProjectInvite struct { - AcceptedAt *time.Time `json:"accepted_at,omitempty"` + AcceptedAt *time.Time `json:"accepted_at"` CreatedAt *time.Time `json:"created_at,omitempty"` ExpiresAt *time.Time `json:"expires_at,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` // InviteeAdminId Id of the existing admin that owns the invitee email, if any - InviteeAdminId *openapi_types.UUID `json:"invitee_admin_id,omitempty"` + InviteeAdminId *openapi_types.UUID `json:"invitee_admin_id"` InviteeEmail *openapi_types.Email `json:"invitee_email,omitempty"` - InviterAdminEmail *string `json:"inviter_admin_email,omitempty"` - InviterAdminId *openapi_types.UUID `json:"inviter_admin_id,omitempty"` + InviterAdminEmail *string `json:"inviter_admin_email"` + InviterAdminId *openapi_types.UUID `json:"inviter_admin_id"` ProjectId *openapi_types.UUID `json:"project_id,omitempty"` // ProjectName Name of the project the invite grants access to ProjectName *string `json:"project_name,omitempty"` - RevokedAt *time.Time `json:"revoked_at,omitempty"` + RevokedAt *time.Time `json:"revoked_at"` Role *ProjectInviteRole `json:"role,omitempty"` } @@ -2019,7 +1542,7 @@ type Template struct { ProjectId openapi_types.UUID `json:"project_id"` // SenderIdentityId The ID of the sender identity to use for this template - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` // Type Communication channel type Type Channel `json:"type"` @@ -2108,7 +1631,7 @@ type UpdateAuthMethod struct { // UpdateBroadcast defines model for UpdateBroadcast. type UpdateBroadcast struct { // ScheduledAt Set or update the scheduled send time. Pass null to remove the schedule and revert to pending. Only allowed when the broadcast is in 'pending' or 'scheduled' state. - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` } // UpdateCampaign defines model for UpdateCampaign. @@ -2199,10 +1722,10 @@ type UpdateTag struct { // UpdateTemplate defines model for UpdateTemplate. type UpdateTemplate struct { // Data Template-specific data based on type. Structure varies by template type. - Data *json.RawMessage `json:"data,omitempty"` + Data *json.RawMessage `json:"data"` // SenderIdentityId The ID of the sender identity to use for this template - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` } // UpdateUser defines model for UpdateUser. @@ -2253,13 +1776,16 @@ type UpsertOrganization struct { // UpsertOrganizationScheduledRequest defines model for UpsertOrganizationScheduledRequest. type UpsertOrganizationScheduledRequest struct { // Data Scheduled resource data - Data *json.RawMessage `json:"data,omitempty"` + Data *json.RawMessage `json:"data"` + + // Id The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per organization); supply an existing id to update that assignment in place. + Id *openapi_types.UUID `json:"id,omitempty"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval,omitempty"` + Interval *string `json:"interval"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` // ScheduledId The scheduled definition ID. Either scheduled_id or scheduled_name must be provided. ScheduledId *openapi_types.UUID `json:"scheduled_id,omitempty"` @@ -2268,7 +1794,7 @@ type UpsertOrganizationScheduledRequest struct { ScheduledName *string `json:"scheduled_name,omitempty"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at,omitempty"` + StartAt *time.Time `json:"start_at"` } // UpsertProjectPushProvider defines model for UpsertProjectPushProvider. @@ -2280,13 +1806,16 @@ type UpsertProjectPushProvider struct { // UpsertUserScheduledRequest defines model for UpsertUserScheduledRequest. type UpsertUserScheduledRequest struct { // Data Scheduled resource data - Data *json.RawMessage `json:"data,omitempty"` + Data *json.RawMessage `json:"data"` + + // Id The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per user); supply an existing id to update that assignment in place. + Id *openapi_types.UUID `json:"id,omitempty"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval,omitempty"` + Interval *string `json:"interval"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at,omitempty"` + ScheduledAt *time.Time `json:"scheduled_at"` // ScheduledId The scheduled definition ID. Either scheduled_id or scheduled_name must be provided. ScheduledId *openapi_types.UUID `json:"scheduled_id,omitempty"` @@ -2295,7 +1824,7 @@ type UpsertUserScheduledRequest struct { ScheduledName *string `json:"scheduled_name,omitempty"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at,omitempty"` + StartAt *time.Time `json:"start_at"` } // User defines model for User. @@ -2320,15 +1849,15 @@ type User struct { // UserDevice defines model for UserDevice. type UserDevice struct { - AppBuild *string `json:"app_build,omitempty"` - AppVersion *string `json:"app_version,omitempty"` + AppBuild *string `json:"app_build"` + AppVersion *string `json:"app_version"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` DeviceId string `json:"device_id"` Id openapi_types.UUID `json:"id"` - Model *string `json:"model,omitempty"` - Os *string `json:"os,omitempty"` - OsVersion *string `json:"os_version,omitempty"` + Model *string `json:"model"` + Os *string `json:"os"` + OsVersion *string `json:"os_version"` UpdatedAt time.Time `json:"updated_at"` } @@ -2400,7 +1929,7 @@ type UserList struct { // UserScheduled defines model for UserScheduled. type UserScheduled struct { // AnchorAt Anchor time used as the base for occurrence calculations. Rebased when scheduled_at is explicitly set. - AnchorAt *time.Time `json:"anchor_at,omitempty"` + AnchorAt *time.Time `json:"anchor_at"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` @@ -2409,15 +1938,15 @@ type UserScheduled struct { Id openapi_types.UUID `json:"id"` // Interval Interval for recurring schedules - Interval *string `json:"interval,omitempty"` + Interval *string `json:"interval"` // PausedAt When set, the schedule is paused and the scheduler will not advance it - PausedAt *time.Time `json:"paused_at,omitempty"` + PausedAt *time.Time `json:"paused_at"` ScheduledAt time.Time `json:"scheduled_at"` ScheduledId openapi_types.UUID `json:"scheduled_id"` // StartAt Start time of the recurring schedule interval - StartAt *time.Time `json:"start_at,omitempty"` + StartAt *time.Time `json:"start_at"` UpdatedAt time.Time `json:"updated_at"` UserId openapi_types.UUID `json:"user_id"` } @@ -2640,9 +2169,6 @@ type TagListResponse struct { Total int `json:"total"` } -// httpBearerAuthContextKey is the context key for HttpBearerAuth security scheme -type httpBearerAuthContextKey string - // ListProjectsParams defines parameters for ListProjects. type ListProjectsParams struct { // Limit Maximum number of items to return @@ -6843,7 +6369,7 @@ func NewSetActiveOrganizationRequestWithBody(server string, contentType string, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -6872,7 +6398,7 @@ func NewListMyOrganizationsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -6899,7 +6425,7 @@ func NewGetProfileRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -6927,21 +6453,19 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6949,11 +6473,15 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -6961,23 +6489,24 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7015,7 +6544,7 @@ func NewCreateProjectRequestWithBody(server string, contentType string, body io. return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -7031,7 +6560,7 @@ func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7051,7 +6580,7 @@ func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -7065,7 +6594,7 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7085,7 +6614,7 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7110,7 +6639,7 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7130,7 +6659,7 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -7146,7 +6675,7 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7167,21 +6696,19 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7189,11 +6716,15 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7201,23 +6732,24 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7242,7 +6774,7 @@ func NewCreateActionRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7262,7 +6794,7 @@ func NewCreateActionRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -7278,7 +6810,7 @@ func NewListActionMetaRequest(server string, projectID openapi_types.UUID) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7298,7 +6830,7 @@ func NewListActionMetaRequest(server string, projectID openapi_types.UUID) (*htt return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7312,14 +6844,14 @@ func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, act var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionType", actionType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionType", runtime.ParamLocationPath, actionType) if err != nil { return nil, err } @@ -7339,7 +6871,7 @@ func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, act return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7364,7 +6896,7 @@ func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, c var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7384,7 +6916,7 @@ func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, c return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -7400,14 +6932,14 @@ func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } @@ -7427,7 +6959,7 @@ func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionI return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -7441,14 +6973,14 @@ func NewGetActionRequest(server string, projectID openapi_types.UUID, actionID o var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } @@ -7468,7 +7000,7 @@ func NewGetActionRequest(server string, projectID openapi_types.UUID, actionID o return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7493,14 +7025,14 @@ func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } @@ -7520,7 +7052,7 @@ func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -7536,21 +7068,21 @@ func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, ac var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "functionID", functionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) if err != nil { return nil, err } @@ -7570,7 +7102,7 @@ func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, ac return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7595,21 +7127,21 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "functionID", functionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) if err != nil { return nil, err } @@ -7629,7 +7161,7 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -7645,7 +7177,7 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7666,21 +7198,19 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7688,11 +7218,15 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7700,23 +7234,24 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7730,14 +7265,14 @@ func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, a var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -7757,7 +7292,7 @@ func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, a return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -7771,14 +7306,14 @@ func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, admi var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -7798,7 +7333,7 @@ func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, admi return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7823,14 +7358,14 @@ func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -7850,7 +7385,7 @@ func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -7866,7 +7401,7 @@ func NewListAuthMethodsRequest(server string, projectID openapi_types.UUID, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7887,21 +7422,19 @@ func NewListAuthMethodsRequest(server string, projectID openapi_types.UUID, para } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -7909,23 +7442,24 @@ func NewListAuthMethodsRequest(server string, projectID openapi_types.UUID, para if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -7950,7 +7484,7 @@ func NewCreateAuthMethodRequestWithBody(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -7970,7 +7504,7 @@ func NewCreateAuthMethodRequestWithBody(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -7986,14 +7520,14 @@ func NewDeleteAuthMethodRequest(server string, projectID openapi_types.UUID, met var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "methodID", methodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "methodID", runtime.ParamLocationPath, methodID) if err != nil { return nil, err } @@ -8013,7 +7547,7 @@ func NewDeleteAuthMethodRequest(server string, projectID openapi_types.UUID, met return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -8027,14 +7561,14 @@ func NewGetAuthMethodRequest(server string, projectID openapi_types.UUID, method var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "methodID", methodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "methodID", runtime.ParamLocationPath, methodID) if err != nil { return nil, err } @@ -8054,7 +7588,7 @@ func NewGetAuthMethodRequest(server string, projectID openapi_types.UUID, method return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8079,14 +7613,14 @@ func NewUpdateAuthMethodRequestWithBody(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "methodID", methodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "methodID", runtime.ParamLocationPath, methodID) if err != nil { return nil, err } @@ -8106,7 +7640,7 @@ func NewUpdateAuthMethodRequestWithBody(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -8122,7 +7656,7 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -8143,21 +7677,19 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8165,11 +7697,15 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8177,11 +7713,15 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8189,11 +7729,15 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.CampaignId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "campaign_id", *params.CampaignId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "campaign_id", runtime.ParamLocationQuery, *params.CampaignId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8201,11 +7745,15 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.ListId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "list_id", *params.ListId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "list_id", runtime.ParamLocationQuery, *params.ListId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8213,23 +7761,24 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.State != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "state", *params.State, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state", runtime.ParamLocationQuery, *params.State); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8254,7 +7803,7 @@ func NewCreateBroadcastRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -8274,7 +7823,7 @@ func NewCreateBroadcastRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -8290,14 +7839,14 @@ func NewCancelBroadcastRequest(server string, projectID openapi_types.UUID, broa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) if err != nil { return nil, err } @@ -8317,7 +7866,7 @@ func NewCancelBroadcastRequest(server string, projectID openapi_types.UUID, broa return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -8331,14 +7880,14 @@ func NewGetBroadcastRequest(server string, projectID openapi_types.UUID, broadca var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) if err != nil { return nil, err } @@ -8358,7 +7907,7 @@ func NewGetBroadcastRequest(server string, projectID openapi_types.UUID, broadca return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8383,14 +7932,14 @@ func NewUpdateBroadcastRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) if err != nil { return nil, err } @@ -8410,7 +7959,7 @@ func NewUpdateBroadcastRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -8426,14 +7975,14 @@ func NewStreamBroadcastProgressRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) if err != nil { return nil, err } @@ -8453,7 +8002,7 @@ func NewStreamBroadcastProgressRequest(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8467,14 +8016,14 @@ func NewSendBroadcastRequest(server string, projectID openapi_types.UUID, broadc var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) if err != nil { return nil, err } @@ -8494,7 +8043,7 @@ func NewSendBroadcastRequest(server string, projectID openapi_types.UUID, broadc return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8508,14 +8057,14 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) if err != nil { return nil, err } @@ -8536,21 +8085,19 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8558,11 +8105,15 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8570,23 +8121,24 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8600,7 +8152,7 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -8621,21 +8173,19 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8643,11 +8193,15 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8655,11 +8209,15 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -8667,23 +8225,24 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params if params.IncludeDeleted != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_deleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_deleted", runtime.ParamLocationQuery, *params.IncludeDeleted); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8708,7 +8267,7 @@ func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -8728,7 +8287,7 @@ func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -8744,14 +8303,14 @@ func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } @@ -8771,7 +8330,7 @@ func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campa return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -8785,14 +8344,14 @@ func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaign var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } @@ -8812,7 +8371,7 @@ func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaign return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -8837,14 +8396,14 @@ func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } @@ -8864,7 +8423,7 @@ func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -8880,14 +8439,14 @@ func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, ca var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } @@ -8907,7 +8466,7 @@ func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, ca return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -8932,14 +8491,14 @@ func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } @@ -8959,7 +8518,7 @@ func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -8975,21 +8534,21 @@ func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) if err != nil { return nil, err } @@ -9009,7 +8568,7 @@ func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campa return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -9023,21 +8582,21 @@ func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaign var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) if err != nil { return nil, err } @@ -9057,7 +8616,7 @@ func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaign return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9082,21 +8641,21 @@ func NewUpdateTemplateRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) if err != nil { return nil, err } @@ -9116,7 +8675,7 @@ func NewUpdateTemplateRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -9143,21 +8702,21 @@ func NewSendTestRequestWithBody(server string, projectID openapi_types.UUID, cam var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) if err != nil { return nil, err } @@ -9177,7 +8736,7 @@ func NewSendTestRequestWithBody(server string, projectID openapi_types.UUID, cam return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9193,14 +8752,14 @@ func NewUnarchiveCampaignRequest(server string, projectID openapi_types.UUID, ca var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } @@ -9220,7 +8779,7 @@ func NewUnarchiveCampaignRequest(server string, projectID openapi_types.UUID, ca return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -9234,14 +8793,14 @@ func NewGetCampaignUsersRequest(server string, projectID openapi_types.UUID, cam var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) if err != nil { return nil, err } @@ -9262,21 +8821,19 @@ func NewGetCampaignUsersRequest(server string, projectID openapi_types.UUID, cam } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9284,23 +8841,24 @@ func NewGetCampaignUsersRequest(server string, projectID openapi_types.UUID, cam if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9314,7 +8872,7 @@ func NewListDocumentsRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -9335,21 +8893,19 @@ func NewListDocumentsRequest(server string, projectID openapi_types.UUID, params } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9357,23 +8913,24 @@ func NewListDocumentsRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9387,7 +8944,7 @@ func NewUploadDocumentsRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -9407,7 +8964,7 @@ func NewUploadDocumentsRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9423,14 +8980,14 @@ func NewDeleteDocumentRequest(server string, projectID openapi_types.UUID, docum var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "documentID", documentID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "documentID", runtime.ParamLocationPath, documentID) if err != nil { return nil, err } @@ -9450,7 +9007,7 @@ func NewDeleteDocumentRequest(server string, projectID openapi_types.UUID, docum return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -9464,14 +9021,14 @@ func NewGetDocumentRequest(server string, projectID openapi_types.UUID, document var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "documentID", documentID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "documentID", runtime.ParamLocationPath, documentID) if err != nil { return nil, err } @@ -9491,7 +9048,7 @@ func NewGetDocumentRequest(server string, projectID openapi_types.UUID, document return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9505,14 +9062,14 @@ func NewGetDocumentMetadataRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "documentID", documentID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "documentID", runtime.ParamLocationPath, documentID) if err != nil { return nil, err } @@ -9532,7 +9089,7 @@ func NewGetDocumentMetadataRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9546,7 +9103,7 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -9567,21 +9124,19 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9589,11 +9144,15 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9601,23 +9160,24 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9631,7 +9191,7 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -9652,21 +9212,19 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9674,11 +9232,15 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Role != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "role", *params.Role, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9686,11 +9248,15 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.ExpiresAfter != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expires_after", *params.ExpiresAfter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires_after", runtime.ParamLocationQuery, *params.ExpiresAfter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9698,11 +9264,15 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.ExpiresBefore != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expires_before", *params.ExpiresBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires_before", runtime.ParamLocationQuery, *params.ExpiresBefore); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9710,11 +9280,15 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.InviterAdminId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "inviter_admin_id", *params.InviterAdminId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inviter_admin_id", runtime.ParamLocationQuery, *params.InviterAdminId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9722,11 +9296,15 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9734,11 +9312,15 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9746,23 +9328,24 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9787,7 +9370,7 @@ func NewCreateProjectInviteRequestWithBody(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -9807,7 +9390,7 @@ func NewCreateProjectInviteRequestWithBody(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -9823,14 +9406,14 @@ func NewRevokeProjectInviteRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "inviteID", inviteID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "inviteID", runtime.ParamLocationPath, inviteID) if err != nil { return nil, err } @@ -9850,7 +9433,7 @@ func NewRevokeProjectInviteRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -9864,7 +9447,7 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -9885,21 +9468,19 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9907,11 +9488,15 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9919,11 +9504,15 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -9931,23 +9520,24 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params if params.IncludeDeleted != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_deleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_deleted", runtime.ParamLocationQuery, *params.IncludeDeleted); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -9972,7 +9562,7 @@ func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -9993,33 +9583,28 @@ func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Publish != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "publish", *params.Publish, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "publish", runtime.ParamLocationQuery, *params.Publish); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -10035,14 +9620,14 @@ func NewDeleteJourneyRequest(server string, projectID openapi_types.UUID, journe var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10062,7 +9647,7 @@ func NewDeleteJourneyRequest(server string, projectID openapi_types.UUID, journe return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -10076,14 +9661,14 @@ func NewGetJourneyRequest(server string, projectID openapi_types.UUID, journeyID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10103,7 +9688,7 @@ func NewGetJourneyRequest(server string, projectID openapi_types.UUID, journeyID return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10128,14 +9713,14 @@ func NewUpdateJourneyRequestWithBody(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10155,7 +9740,7 @@ func NewUpdateJourneyRequestWithBody(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -10171,14 +9756,14 @@ func NewDuplicateJourneyRequest(server string, projectID openapi_types.UUID, jou var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10198,7 +9783,7 @@ func NewDuplicateJourneyRequest(server string, projectID openapi_types.UUID, jou return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10212,14 +9797,14 @@ func NewPublishJourneyRequest(server string, projectID openapi_types.UUID, journ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10239,7 +9824,7 @@ func NewPublishJourneyRequest(server string, projectID openapi_types.UUID, journ return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10253,14 +9838,14 @@ func NewGetJourneyStepsRequest(server string, projectID openapi_types.UUID, jour var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10280,7 +9865,7 @@ func NewGetJourneyStepsRequest(server string, projectID openapi_types.UUID, jour return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10305,14 +9890,14 @@ func NewSetJourneyStepsRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10332,7 +9917,7 @@ func NewSetJourneyStepsRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -10348,14 +9933,14 @@ func NewUnarchiveJourneyRequest(server string, projectID openapi_types.UUID, jou var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10375,7 +9960,7 @@ func NewUnarchiveJourneyRequest(server string, projectID openapi_types.UUID, jou return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10389,21 +9974,21 @@ func NewCancelUserJourneyRequest(server string, projectID openapi_types.UUID, jo var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -10423,7 +10008,7 @@ func NewCancelUserJourneyRequest(server string, projectID openapi_types.UUID, jo return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -10437,21 +10022,21 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -10471,7 +10056,7 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10496,21 +10081,21 @@ func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -10530,7 +10115,7 @@ func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -10557,21 +10142,21 @@ func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -10591,7 +10176,7 @@ func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -10607,21 +10192,21 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -10641,7 +10226,7 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10655,14 +10240,14 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) if err != nil { return nil, err } @@ -10682,7 +10267,7 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -10696,7 +10281,7 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -10717,21 +10302,19 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -10739,11 +10322,15 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -10751,11 +10338,15 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -10763,23 +10354,24 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li if params.IncludeDeleted != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_deleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_deleted", runtime.ParamLocationQuery, *params.IncludeDeleted); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10804,7 +10396,7 @@ func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, c var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -10824,7 +10416,7 @@ func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, c return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -10840,14 +10432,14 @@ func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID op var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -10867,7 +10459,7 @@ func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID op return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -10881,14 +10473,14 @@ func NewGetListRequest(server string, projectID openapi_types.UUID, listID opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -10908,7 +10500,7 @@ func NewGetListRequest(server string, projectID openapi_types.UUID, listID opena return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -10933,14 +10525,14 @@ func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, l var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -10960,7 +10552,7 @@ func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, l return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -10976,14 +10568,14 @@ func NewDuplicateListRequest(server string, projectID openapi_types.UUID, listID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -11003,7 +10595,7 @@ func NewDuplicateListRequest(server string, projectID openapi_types.UUID, listID return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -11017,14 +10609,14 @@ func NewUnarchiveListRequest(server string, projectID openapi_types.UUID, listID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -11044,7 +10636,7 @@ func NewUnarchiveListRequest(server string, projectID openapi_types.UUID, listID return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -11058,14 +10650,14 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -11086,21 +10678,19 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11108,11 +10698,15 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11120,23 +10714,24 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11150,14 +10745,14 @@ func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, lis var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -11178,33 +10773,28 @@ func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, lis } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11218,14 +10808,14 @@ func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) if err != nil { return nil, err } @@ -11245,7 +10835,7 @@ func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11261,7 +10851,7 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -11282,21 +10872,19 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11304,23 +10892,24 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11345,7 +10934,7 @@ func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -11365,7 +10954,7 @@ func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11381,14 +10970,14 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "localeID", localeID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) if err != nil { return nil, err } @@ -11408,7 +10997,7 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -11422,14 +11011,14 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "localeID", localeID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) if err != nil { return nil, err } @@ -11449,7 +11038,7 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11463,7 +11052,7 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -11484,21 +11073,19 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11506,23 +11093,24 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11536,7 +11124,7 @@ func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*h var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -11556,7 +11144,7 @@ func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*h return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11581,14 +11169,14 @@ func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) if err != nil { return nil, err } @@ -11608,7 +11196,7 @@ func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -11624,21 +11212,21 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, pType var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "providerID", providerID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) if err != nil { return nil, err } @@ -11658,7 +11246,7 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, pType return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -11672,21 +11260,21 @@ func NewGetProviderRequest(server string, projectID openapi_types.UUID, pType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "providerID", providerID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) if err != nil { return nil, err } @@ -11706,7 +11294,7 @@ func NewGetProviderRequest(server string, projectID openapi_types.UUID, pType st return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11731,21 +11319,21 @@ func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "providerID", providerID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) if err != nil { return nil, err } @@ -11765,7 +11353,7 @@ func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -11781,7 +11369,7 @@ func NewListProjectPushProvidersRequest(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -11801,7 +11389,7 @@ func NewListProjectPushProvidersRequest(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -11815,14 +11403,14 @@ func NewDeleteProjectPushProviderRequest(server string, projectID openapi_types. var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "platform", platform, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "platform", runtime.ParamLocationPath, platform) if err != nil { return nil, err } @@ -11842,7 +11430,7 @@ func NewDeleteProjectPushProviderRequest(server string, projectID openapi_types. return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -11867,14 +11455,14 @@ func NewUpsertProjectPushProviderRequestWithBody(server string, projectID openap var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "platform", platform, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "platform", runtime.ParamLocationPath, platform) if err != nil { return nil, err } @@ -11894,7 +11482,7 @@ func NewUpsertProjectPushProviderRequestWithBody(server string, projectID openap return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -11910,7 +11498,7 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -11931,21 +11519,19 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.ProviderId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider_id", *params.ProviderId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_id", runtime.ParamLocationQuery, *params.ProviderId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11953,11 +11539,15 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, if params.Channel != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, *params.Channel); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11965,11 +11555,15 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -11977,23 +11571,24 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12018,7 +11613,7 @@ func NewCreateSenderIdentityRequestWithBody(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -12038,7 +11633,7 @@ func NewCreateSenderIdentityRequestWithBody(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12054,14 +11649,14 @@ func NewDeleteSenderIdentityRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "senderIdentityID", senderIdentityID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "senderIdentityID", runtime.ParamLocationPath, senderIdentityID) if err != nil { return nil, err } @@ -12081,7 +11676,7 @@ func NewDeleteSenderIdentityRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -12095,14 +11690,14 @@ func NewGetSenderIdentityRequest(server string, projectID openapi_types.UUID, se var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "senderIdentityID", senderIdentityID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "senderIdentityID", runtime.ParamLocationPath, senderIdentityID) if err != nil { return nil, err } @@ -12122,7 +11717,7 @@ func NewGetSenderIdentityRequest(server string, projectID openapi_types.UUID, se return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12136,7 +11731,7 @@ func NewListOrganizationEventSchemasRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -12156,7 +11751,7 @@ func NewListOrganizationEventSchemasRequest(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12170,14 +11765,14 @@ func NewDeleteOrganizationEventSchemaRequest(server string, projectID openapi_ty var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "eventID", eventID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "eventID", runtime.ParamLocationPath, eventID) if err != nil { return nil, err } @@ -12197,7 +11792,7 @@ func NewDeleteOrganizationEventSchemaRequest(server string, projectID openapi_ty return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -12211,7 +11806,7 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -12232,21 +11827,19 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12254,11 +11847,15 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12266,23 +11863,24 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12307,7 +11905,7 @@ func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -12327,7 +11925,7 @@ func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12343,7 +11941,7 @@ func NewListOrganizationSchemasRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -12363,7 +11961,7 @@ func NewListOrganizationSchemasRequest(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12377,7 +11975,7 @@ func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_ty var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -12397,7 +11995,7 @@ func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_ty return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12411,14 +12009,14 @@ func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, o var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -12438,7 +12036,7 @@ func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, o return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -12452,14 +12050,14 @@ func NewGetOrganizationRequest(server string, projectID openapi_types.UUID, orga var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -12479,7 +12077,7 @@ func NewGetOrganizationRequest(server string, projectID openapi_types.UUID, orga return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12504,14 +12102,14 @@ func NewUpdateOrganizationRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -12531,7 +12129,7 @@ func NewUpdateOrganizationRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -12547,14 +12145,14 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -12575,21 +12173,19 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12597,11 +12193,15 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12609,23 +12209,24 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12650,14 +12251,14 @@ func NewCreateOrganizationEventRequestWithBody(server string, projectID openapi_ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -12677,7 +12278,7 @@ func NewCreateOrganizationEventRequestWithBody(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12693,21 +12294,21 @@ func NewDeleteOrganizationExternalIDRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "identifierID", identifierID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "identifierID", runtime.ParamLocationPath, identifierID) if err != nil { return nil, err } @@ -12727,7 +12328,7 @@ func NewDeleteOrganizationExternalIDRequest(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -12741,14 +12342,14 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -12769,21 +12370,19 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12791,11 +12390,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12803,11 +12406,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12815,11 +12422,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12827,11 +12438,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Channel != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, *params.Channel); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12839,11 +12454,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.IncludeArchived != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_archived", *params.IncludeArchived, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_archived", runtime.ParamLocationQuery, *params.IncludeArchived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12851,11 +12470,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.IncludeScheduled != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_scheduled", *params.IncludeScheduled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_scheduled", runtime.ParamLocationQuery, *params.IncludeScheduled); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12863,11 +12486,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12875,11 +12502,15 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -12887,23 +12518,24 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -12928,14 +12560,14 @@ func NewCreateOrganizationInboxMessageRequestWithBody(server string, projectID o var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -12955,7 +12587,7 @@ func NewCreateOrganizationInboxMessageRequestWithBody(server string, projectID o return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -12971,21 +12603,21 @@ func NewArchiveOrganizationInboxMessageRequest(server string, projectID openapi_ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -13005,7 +12637,7 @@ func NewArchiveOrganizationInboxMessageRequest(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -13019,21 +12651,21 @@ func NewReadOrganizationInboxMessageRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -13053,7 +12685,7 @@ func NewReadOrganizationInboxMessageRequest(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -13078,21 +12710,21 @@ func NewRescheduleOrganizationInboxMessageRequestWithBody(server string, project var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -13112,7 +12744,7 @@ func NewRescheduleOrganizationInboxMessageRequestWithBody(server string, project return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -13128,21 +12760,21 @@ func NewUnarchiveOrganizationInboxMessageRequest(server string, projectID openap var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -13162,7 +12794,7 @@ func NewUnarchiveOrganizationInboxMessageRequest(server string, projectID openap return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -13176,21 +12808,21 @@ func NewUnreadOrganizationInboxMessageRequest(server string, projectID openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -13210,7 +12842,7 @@ func NewUnreadOrganizationInboxMessageRequest(server string, projectID openapi_t return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -13224,14 +12856,14 @@ func NewGetOrganizationScheduledRequest(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -13252,21 +12884,19 @@ func NewGetOrganizationScheduledRequest(server string, projectID openapi_types.U } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -13274,23 +12904,24 @@ func NewGetOrganizationScheduledRequest(server string, projectID openapi_types.U if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -13315,14 +12946,14 @@ func NewUpsertOrganizationScheduledRequestWithBody(server string, projectID open var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -13342,7 +12973,7 @@ func NewUpsertOrganizationScheduledRequestWithBody(server string, projectID open return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -13358,21 +12989,21 @@ func NewDeleteOrganizationScheduledRequest(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) if err != nil { return nil, err } @@ -13392,7 +13023,7 @@ func NewDeleteOrganizationScheduledRequest(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -13417,21 +13048,21 @@ func NewUpdateOrganizationScheduledRequestWithBody(server string, projectID open var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) if err != nil { return nil, err } @@ -13451,7 +13082,7 @@ func NewUpdateOrganizationScheduledRequestWithBody(server string, projectID open return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -13467,14 +13098,14 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -13495,21 +13126,19 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -13517,23 +13146,24 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -13558,14 +13188,14 @@ func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_ty var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } @@ -13585,7 +13215,7 @@ func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_ty return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -13601,21 +13231,21 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -13635,7 +13265,7 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -13649,7 +13279,7 @@ func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -13669,7 +13299,7 @@ func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -13683,14 +13313,14 @@ func NewDeleteUserEventSchemaRequest(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "eventID", eventID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "eventID", runtime.ParamLocationPath, eventID) if err != nil { return nil, err } @@ -13710,7 +13340,7 @@ func NewDeleteUserEventSchemaRequest(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -13724,7 +13354,7 @@ func NewListScheduledSchemasRequest(server string, projectID openapi_types.UUID) var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -13744,7 +13374,7 @@ func NewListScheduledSchemasRequest(server string, projectID openapi_types.UUID) return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -13758,14 +13388,14 @@ func NewDeleteScheduledSchemaRequest(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "scheduledID", scheduledID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "scheduledID", runtime.ParamLocationPath, scheduledID) if err != nil { return nil, err } @@ -13785,7 +13415,7 @@ func NewDeleteScheduledSchemaRequest(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -13810,14 +13440,14 @@ func NewCreateScheduleOffsetRequestWithBody(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "scheduledID", scheduledID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "scheduledID", runtime.ParamLocationPath, scheduledID) if err != nil { return nil, err } @@ -13837,7 +13467,7 @@ func NewCreateScheduleOffsetRequestWithBody(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -13853,7 +13483,7 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -13874,21 +13504,19 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -13896,11 +13524,15 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -13908,23 +13540,24 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -13949,7 +13582,7 @@ func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -13969,7 +13602,7 @@ func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -13985,7 +13618,7 @@ func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -14005,7 +13638,7 @@ func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -14021,7 +13654,7 @@ func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*ht var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -14041,7 +13674,7 @@ func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*ht return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -14055,14 +13688,14 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14082,7 +13715,7 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -14096,14 +13729,14 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14123,7 +13756,7 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -14148,14 +13781,14 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14175,7 +13808,7 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -14191,14 +13824,14 @@ func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14218,7 +13851,7 @@ func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userI return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -14243,14 +13876,14 @@ func NewCreateUserDeviceRequestWithBody(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14270,7 +13903,7 @@ func NewCreateUserDeviceRequestWithBody(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -14286,21 +13919,21 @@ func NewDeleteUserDeviceRequest(server string, projectID openapi_types.UUID, use var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "deviceID", deviceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deviceID", runtime.ParamLocationPath, deviceID) if err != nil { return nil, err } @@ -14320,7 +13953,7 @@ func NewDeleteUserDeviceRequest(server string, projectID openapi_types.UUID, use return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -14334,14 +13967,14 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14362,21 +13995,19 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14384,11 +14015,15 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14396,23 +14031,24 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -14437,14 +14073,14 @@ func NewCreateUserEventRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14464,7 +14100,7 @@ func NewCreateUserEventRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -14480,21 +14116,21 @@ func NewDeleteUserExternalIDRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "identifierID", identifierID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "identifierID", runtime.ParamLocationPath, identifierID) if err != nil { return nil, err } @@ -14514,7 +14150,7 @@ func NewDeleteUserExternalIDRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -14528,14 +14164,14 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14556,21 +14192,19 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14578,11 +14212,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14590,11 +14228,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14602,11 +14244,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14614,11 +14260,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Channel != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, *params.Channel); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14626,11 +14276,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.IncludeArchived != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_archived", *params.IncludeArchived, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_archived", runtime.ParamLocationQuery, *params.IncludeArchived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14638,11 +14292,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.IncludeScheduled != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_scheduled", *params.IncludeScheduled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_scheduled", runtime.ParamLocationQuery, *params.IncludeScheduled); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14650,11 +14308,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14662,11 +14324,15 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -14674,23 +14340,24 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -14715,14 +14382,14 @@ func NewCreateUserInboxMessageRequestWithBody(server string, projectID openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -14742,7 +14409,7 @@ func NewCreateUserInboxMessageRequestWithBody(server string, projectID openapi_t return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -14758,21 +14425,21 @@ func NewArchiveUserInboxMessageRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -14792,7 +14459,7 @@ func NewArchiveUserInboxMessageRequest(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -14806,21 +14473,21 @@ func NewReadUserInboxMessageRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -14840,7 +14507,7 @@ func NewReadUserInboxMessageRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -14865,21 +14532,21 @@ func NewRescheduleUserInboxMessageRequestWithBody(server string, projectID opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -14899,7 +14566,7 @@ func NewRescheduleUserInboxMessageRequestWithBody(server string, projectID opena return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -14915,21 +14582,21 @@ func NewUnarchiveUserInboxMessageRequest(server string, projectID openapi_types. var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -14949,7 +14616,7 @@ func NewUnarchiveUserInboxMessageRequest(server string, projectID openapi_types. return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -14963,21 +14630,21 @@ func NewUnreadUserInboxMessageRequest(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) if err != nil { return nil, err } @@ -14997,7 +14664,7 @@ func NewUnreadUserInboxMessageRequest(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -15011,14 +14678,14 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -15039,21 +14706,19 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15061,23 +14726,24 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15091,14 +14757,14 @@ func NewGetUserScheduledRequest(server string, projectID openapi_types.UUID, use var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -15119,21 +14785,19 @@ func NewGetUserScheduledRequest(server string, projectID openapi_types.UUID, use } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15141,23 +14805,24 @@ func NewGetUserScheduledRequest(server string, projectID openapi_types.UUID, use if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15182,14 +14847,14 @@ func NewUpsertUserScheduledRequestWithBody(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -15209,7 +14874,7 @@ func NewUpsertUserScheduledRequestWithBody(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest("PUT", queryURL.String(), body) if err != nil { return nil, err } @@ -15225,21 +14890,21 @@ func NewDeleteUserScheduledRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) if err != nil { return nil, err } @@ -15259,7 +14924,7 @@ func NewDeleteUserScheduledRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -15284,21 +14949,21 @@ func NewUpdateUserScheduledRequestWithBody(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) if err != nil { return nil, err } @@ -15318,7 +14983,7 @@ func NewUpdateUserScheduledRequestWithBody(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -15334,14 +14999,14 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -15362,21 +15027,19 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15384,11 +15047,15 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15396,23 +15063,24 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15426,14 +15094,14 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -15454,21 +15122,19 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15476,23 +15142,24 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15517,14 +15184,14 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) if err != nil { return nil, err } @@ -15544,7 +15211,7 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -15560,7 +15227,7 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -15581,21 +15248,19 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15603,23 +15268,24 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15644,7 +15310,7 @@ func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -15664,7 +15330,7 @@ func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -15680,14 +15346,14 @@ func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subs var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subscriptionID", subscriptionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) if err != nil { return nil, err } @@ -15707,7 +15373,7 @@ func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subs return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15732,14 +15398,14 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subscriptionID", subscriptionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) if err != nil { return nil, err } @@ -15759,7 +15425,7 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -15775,7 +15441,7 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -15796,21 +15462,19 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15818,11 +15482,15 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -15830,23 +15498,24 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -15871,7 +15540,7 @@ func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, co var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } @@ -15891,7 +15560,7 @@ func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, co return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -15907,14 +15576,14 @@ func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID open var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tagID", tagID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) if err != nil { return nil, err } @@ -15934,7 +15603,7 @@ func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID open return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -15948,14 +15617,14 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tagID", tagID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) if err != nil { return nil, err } @@ -15975,7 +15644,7 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -16000,14 +15669,14 @@ func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, ta var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tagID", tagID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) if err != nil { return nil, err } @@ -16027,7 +15696,7 @@ func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, ta return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -16057,21 +15726,19 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques } if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -16079,11 +15746,15 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } @@ -16091,23 +15762,24 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } } } } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL.RawQuery = queryValues.Encode() } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -16145,7 +15817,7 @@ func NewCreateAdminRequestWithBody(server string, contentType string, body io.Re return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -16161,7 +15833,7 @@ func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -16181,7 +15853,7 @@ func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Req return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest("DELETE", queryURL.String(), nil) if err != nil { return nil, err } @@ -16195,7 +15867,7 @@ func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -16215,7 +15887,7 @@ func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Reques return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -16240,7 +15912,7 @@ func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, co var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) if err != nil { return nil, err } @@ -16260,7 +15932,7 @@ func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, co return nil, err } - req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) + req, err := http.NewRequest("PATCH", queryURL.String(), body) if err != nil { return nil, err } @@ -16289,7 +15961,7 @@ func NewWhoamiRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -16314,7 +15986,7 @@ func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriv var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "driver", driver, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) if err != nil { return nil, err } @@ -16334,7 +16006,7 @@ func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriv return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest("POST", queryURL.String(), body) if err != nil { return nil, err } @@ -16363,7 +16035,7 @@ func NewGetAuthMethodsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -16377,7 +16049,7 @@ func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "driver", driver, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) if err != nil { return nil, err } @@ -16397,7 +16069,7 @@ func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -16424,7 +16096,7 @@ func NewListMyInvitesRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest("GET", queryURL.String(), nil) if err != nil { return nil, err } @@ -16438,7 +16110,7 @@ func NewAcceptProjectInviteRequest(server string, inviteID openapi_types.UUID) ( var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "inviteID", inviteID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "inviteID", runtime.ParamLocationPath, inviteID) if err != nil { return nil, err } @@ -16458,7 +16130,7 @@ func NewAcceptProjectInviteRequest(server string, inviteID openapi_types.UUID) ( return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest("POST", queryURL.String(), nil) if err != nil { return nil, err } @@ -17179,14 +16851,6 @@ func (r SetActiveOrganizationResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SetActiveOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListMyOrganizationsResponse struct { Body []byte HTTPResponse *http.Response @@ -17212,14 +16876,6 @@ func (r ListMyOrganizationsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListMyOrganizationsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetProfileResponse struct { Body []byte HTTPResponse *http.Response @@ -17243,14 +16899,6 @@ func (r GetProfileResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProfileResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListProjectsResponse struct { Body []byte HTTPResponse *http.Response @@ -17274,14 +16922,6 @@ func (r ListProjectsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -17305,14 +16945,6 @@ func (r CreateProjectResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateProjectResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -17335,14 +16967,6 @@ func (r DeleteProjectResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteProjectResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -17366,14 +16990,6 @@ func (r GetProjectResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -17397,14 +17013,6 @@ func (r UpdateProjectResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateProjectResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListActionsResponse struct { Body []byte HTTPResponse *http.Response @@ -17428,14 +17036,6 @@ func (r ListActionsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListActionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17459,14 +17059,6 @@ func (r CreateActionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateActionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListActionMetaResponse struct { Body []byte HTTPResponse *http.Response @@ -17490,14 +17082,6 @@ func (r ListActionMetaResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListActionMetaResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetActionPreviewResponse struct { Body []byte HTTPResponse *http.Response @@ -17520,14 +17104,6 @@ func (r GetActionPreviewResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActionPreviewResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type TestActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17551,14 +17127,6 @@ func (r TestActionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TestActionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17581,14 +17149,6 @@ func (r DeleteActionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteActionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17612,14 +17172,6 @@ func (r GetActionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetActionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17643,14 +17195,6 @@ func (r UpdateActionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateActionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListActionSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -17674,14 +17218,6 @@ func (r ListActionSchemasResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListActionSchemasResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type TestActionFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -17705,14 +17241,6 @@ func (r TestActionFunctionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TestActionFunctionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListProjectAdminsResponse struct { Body []byte HTTPResponse *http.Response @@ -17736,14 +17264,6 @@ func (r ListProjectAdminsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectAdminsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteProjectAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -17766,14 +17286,6 @@ func (r DeleteProjectAdminResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteProjectAdminResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetProjectAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -17797,14 +17309,6 @@ func (r GetProjectAdminResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProjectAdminResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateProjectAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -17828,14 +17332,6 @@ func (r UpdateProjectAdminResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateProjectAdminResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListAuthMethodsResponse struct { Body []byte HTTPResponse *http.Response @@ -17859,14 +17355,6 @@ func (r ListAuthMethodsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListAuthMethodsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17890,14 +17378,6 @@ func (r CreateAuthMethodResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateAuthMethodResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17920,14 +17400,6 @@ func (r DeleteAuthMethodResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteAuthMethodResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17951,14 +17423,6 @@ func (r GetAuthMethodResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthMethodResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17982,14 +17446,6 @@ func (r UpdateAuthMethodResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateAuthMethodResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListBroadcastsResponse struct { Body []byte HTTPResponse *http.Response @@ -18013,14 +17469,6 @@ func (r ListBroadcastsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListBroadcastsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -18044,14 +17492,6 @@ func (r CreateBroadcastResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateBroadcastResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CancelBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -18075,14 +17515,6 @@ func (r CancelBroadcastResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CancelBroadcastResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -18106,14 +17538,6 @@ func (r GetBroadcastResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetBroadcastResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -18137,14 +17561,6 @@ func (r UpdateBroadcastResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateBroadcastResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type StreamBroadcastProgressResponse struct { Body []byte HTTPResponse *http.Response @@ -18167,14 +17583,6 @@ func (r StreamBroadcastProgressResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StreamBroadcastProgressResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type SendBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -18198,14 +17606,6 @@ func (r SendBroadcastResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SendBroadcastResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetBroadcastUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -18242,14 +17642,6 @@ func (r GetBroadcastUsersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetBroadcastUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListCampaignsResponse struct { Body []byte HTTPResponse *http.Response @@ -18273,14 +17665,6 @@ func (r ListCampaignsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListCampaignsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -18304,14 +17688,6 @@ func (r CreateCampaignResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateCampaignResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -18334,14 +17710,6 @@ func (r DeleteCampaignResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteCampaignResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -18367,14 +17735,6 @@ func (r GetCampaignResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetCampaignResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -18398,14 +17758,6 @@ func (r UpdateCampaignResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateCampaignResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DuplicateCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -18429,14 +17781,6 @@ func (r DuplicateCampaignResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DuplicateCampaignResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -18460,14 +17804,6 @@ func (r CreateTemplateResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -18490,14 +17826,6 @@ func (r DeleteTemplateResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -18523,14 +17851,6 @@ func (r GetTemplateResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -18554,14 +17874,6 @@ func (r UpdateTemplateResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateTemplateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type SendTestResponse struct { Body []byte HTTPResponse *http.Response @@ -18584,14 +17896,6 @@ func (r SendTestResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SendTestResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UnarchiveCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -18614,14 +17918,6 @@ func (r UnarchiveCampaignResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnarchiveCampaignResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetCampaignUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -18650,14 +17946,6 @@ func (r GetCampaignUsersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetCampaignUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListDocumentsResponse struct { Body []byte HTTPResponse *http.Response @@ -18681,14 +17969,6 @@ func (r ListDocumentsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListDocumentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UploadDocumentsResponse struct { Body []byte HTTPResponse *http.Response @@ -18715,14 +17995,6 @@ func (r UploadDocumentsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UploadDocumentsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteDocumentResponse struct { Body []byte HTTPResponse *http.Response @@ -18745,14 +18017,6 @@ func (r DeleteDocumentResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteDocumentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetDocumentResponse struct { Body []byte HTTPResponse *http.Response @@ -18775,14 +18039,6 @@ func (r GetDocumentResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDocumentResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetDocumentMetadataResponse struct { Body []byte HTTPResponse *http.Response @@ -18806,14 +18062,6 @@ func (r GetDocumentMetadataResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDocumentMetadataResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListEmailTemplatesResponse struct { Body []byte HTTPResponse *http.Response @@ -18837,14 +18085,6 @@ func (r ListEmailTemplatesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListEmailTemplatesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListProjectInvitesResponse struct { Body []byte HTTPResponse *http.Response @@ -18868,14 +18108,6 @@ func (r ListProjectInvitesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectInvitesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateProjectInviteResponse struct { Body []byte HTTPResponse *http.Response @@ -18899,14 +18131,6 @@ func (r CreateProjectInviteResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateProjectInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type RevokeProjectInviteResponse struct { Body []byte HTTPResponse *http.Response @@ -18929,14 +18153,6 @@ func (r RevokeProjectInviteResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RevokeProjectInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListJourneysResponse struct { Body []byte HTTPResponse *http.Response @@ -18960,14 +18176,6 @@ func (r ListJourneysResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListJourneysResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18991,14 +18199,6 @@ func (r CreateJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19021,14 +18221,6 @@ func (r DeleteJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19052,14 +18244,6 @@ func (r GetJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19083,14 +18267,6 @@ func (r UpdateJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DuplicateJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19114,14 +18290,6 @@ func (r DuplicateJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DuplicateJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PublishJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19145,14 +18313,6 @@ func (r PublishJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PublishJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response @@ -19176,14 +18336,6 @@ func (r GetJourneyStepsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetJourneyStepsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type SetJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response @@ -19207,14 +18359,6 @@ func (r SetJourneyStepsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SetJourneyStepsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UnarchiveJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19237,14 +18381,6 @@ func (r UnarchiveJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnarchiveJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CancelUserJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19267,14 +18403,6 @@ func (r CancelUserJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CancelUserJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type StreamUserJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response @@ -19297,14 +18425,6 @@ func (r StreamUserJourneyStepsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r StreamUserJourneyStepsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type TriggerUserResponse struct { Body []byte HTTPResponse *http.Response @@ -19327,14 +18447,6 @@ func (r TriggerUserResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r TriggerUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type AdvanceUserStepResponse struct { Body []byte HTTPResponse *http.Response @@ -19357,14 +18469,6 @@ func (r AdvanceUserStepResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AdvanceUserStepResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserJourneyStateResponse struct { Body []byte HTTPResponse *http.Response @@ -19392,14 +18496,6 @@ func (r GetUserJourneyStateResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserJourneyStateResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type VersionJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -19423,14 +18519,6 @@ func (r VersionJourneyResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r VersionJourneyResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListListsResponse struct { Body []byte HTTPResponse *http.Response @@ -19454,14 +18542,6 @@ func (r ListListsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListListsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateListResponse struct { Body []byte HTTPResponse *http.Response @@ -19485,14 +18565,6 @@ func (r CreateListResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateListResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteListResponse struct { Body []byte HTTPResponse *http.Response @@ -19515,14 +18587,6 @@ func (r DeleteListResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteListResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetListResponse struct { Body []byte HTTPResponse *http.Response @@ -19546,14 +18610,6 @@ func (r GetListResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetListResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateListResponse struct { Body []byte HTTPResponse *http.Response @@ -19577,14 +18633,6 @@ func (r UpdateListResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateListResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DuplicateListResponse struct { Body []byte HTTPResponse *http.Response @@ -19608,14 +18656,6 @@ func (r DuplicateListResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DuplicateListResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UnarchiveListResponse struct { Body []byte HTTPResponse *http.Response @@ -19638,14 +18678,6 @@ func (r UnarchiveListResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnarchiveListResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -19669,14 +18701,6 @@ func (r GetListUsersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetListUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type PreviewListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -19700,14 +18724,6 @@ func (r PreviewListUsersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PreviewListUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ImportListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -19730,14 +18746,6 @@ func (r ImportListUsersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ImportListUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListLocalesResponse struct { Body []byte HTTPResponse *http.Response @@ -19771,14 +18779,6 @@ func (r ListLocalesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListLocalesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateLocaleResponse struct { Body []byte HTTPResponse *http.Response @@ -19802,14 +18802,6 @@ func (r CreateLocaleResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateLocaleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteLocaleResponse struct { Body []byte HTTPResponse *http.Response @@ -19832,14 +18824,6 @@ func (r DeleteLocaleResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteLocaleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetLocaleResponse struct { Body []byte HTTPResponse *http.Response @@ -19863,14 +18847,6 @@ func (r GetLocaleResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetLocaleResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListProvidersResponse struct { Body []byte HTTPResponse *http.Response @@ -19894,14 +18870,6 @@ func (r ListProvidersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProvidersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListProviderMetaResponse struct { Body []byte HTTPResponse *http.Response @@ -19925,14 +18893,6 @@ func (r ListProviderMetaResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProviderMetaResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -19956,14 +18916,6 @@ func (r CreateProviderResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateProviderResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -19986,14 +18938,6 @@ func (r DeleteProviderResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteProviderResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -20017,14 +18961,6 @@ func (r GetProviderResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetProviderResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -20048,14 +18984,6 @@ func (r UpdateProviderResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateProviderResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListProjectPushProvidersResponse struct { Body []byte HTTPResponse *http.Response @@ -20081,14 +19009,6 @@ func (r ListProjectPushProvidersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListProjectPushProvidersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteProjectPushProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -20111,14 +19031,6 @@ func (r DeleteProjectPushProviderResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteProjectPushProviderResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertProjectPushProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -20142,14 +19054,6 @@ func (r UpsertProjectPushProviderResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertProjectPushProviderResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListSenderIdentitiesResponse struct { Body []byte HTTPResponse *http.Response @@ -20183,14 +19087,6 @@ func (r ListSenderIdentitiesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListSenderIdentitiesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateSenderIdentityResponse struct { Body []byte HTTPResponse *http.Response @@ -20214,14 +19110,6 @@ func (r CreateSenderIdentityResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateSenderIdentityResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteSenderIdentityResponse struct { Body []byte HTTPResponse *http.Response @@ -20244,14 +19132,6 @@ func (r DeleteSenderIdentityResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteSenderIdentityResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetSenderIdentityResponse struct { Body []byte HTTPResponse *http.Response @@ -20275,14 +19155,6 @@ func (r GetSenderIdentityResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSenderIdentityResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListOrganizationEventSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -20306,14 +19178,6 @@ func (r ListOrganizationEventSchemasResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListOrganizationEventSchemasResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteOrganizationEventSchemaResponse struct { Body []byte HTTPResponse *http.Response @@ -20336,14 +19200,6 @@ func (r DeleteOrganizationEventSchemaResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteOrganizationEventSchemaResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListOrganizationsResponse struct { Body []byte HTTPResponse *http.Response @@ -20367,14 +19223,6 @@ func (r ListOrganizationsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListOrganizationsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -20398,14 +19246,6 @@ func (r UpsertOrganizationResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListOrganizationSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -20431,14 +19271,6 @@ func (r ListOrganizationSchemasResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListOrganizationSchemasResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListOrganizationMemberSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -20464,14 +19296,6 @@ func (r ListOrganizationMemberSchemasResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListOrganizationMemberSchemasResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -20494,14 +19318,6 @@ func (r DeleteOrganizationResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -20525,14 +19341,6 @@ func (r GetOrganizationResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -20556,14 +19364,6 @@ func (r UpdateOrganizationResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateOrganizationResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetOrganizationEventsResponse struct { Body []byte HTTPResponse *http.Response @@ -20587,14 +19387,6 @@ func (r GetOrganizationEventsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOrganizationEventsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateOrganizationEventResponse struct { Body []byte HTTPResponse *http.Response @@ -20617,14 +19409,6 @@ func (r CreateOrganizationEventResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateOrganizationEventResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteOrganizationExternalIDResponse struct { Body []byte HTTPResponse *http.Response @@ -20647,14 +19431,6 @@ func (r DeleteOrganizationExternalIDResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteOrganizationExternalIDResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetOrganizationInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -20678,14 +19454,6 @@ func (r GetOrganizationInboxMessagesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOrganizationInboxMessagesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20709,14 +19477,6 @@ func (r CreateOrganizationInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateOrganizationInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ArchiveOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20740,14 +19500,6 @@ func (r ArchiveOrganizationInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ArchiveOrganizationInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ReadOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20771,14 +19523,6 @@ func (r ReadOrganizationInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ReadOrganizationInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type RescheduleOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20802,14 +19546,6 @@ func (r RescheduleOrganizationInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RescheduleOrganizationInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UnarchiveOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20833,14 +19569,6 @@ func (r UnarchiveOrganizationInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnarchiveOrganizationInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UnreadOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20864,14 +19592,6 @@ func (r UnreadOrganizationInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnreadOrganizationInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20895,14 +19615,6 @@ func (r GetOrganizationScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetOrganizationScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20926,14 +19638,6 @@ func (r UpsertOrganizationScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertOrganizationScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20956,14 +19660,6 @@ func (r DeleteOrganizationScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteOrganizationScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20987,14 +19683,6 @@ func (r UpdateOrganizationScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateOrganizationScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListOrganizationMembersResponse struct { Body []byte HTTPResponse *http.Response @@ -21018,14 +19706,6 @@ func (r ListOrganizationMembersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListOrganizationMembersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type AddOrganizationMemberResponse struct { Body []byte HTTPResponse *http.Response @@ -21048,14 +19728,6 @@ func (r AddOrganizationMemberResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AddOrganizationMemberResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type RemoveOrganizationMemberResponse struct { Body []byte HTTPResponse *http.Response @@ -21078,14 +19750,6 @@ func (r RemoveOrganizationMemberResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RemoveOrganizationMemberResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListUserEventSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -21109,14 +19773,6 @@ func (r ListUserEventSchemasResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListUserEventSchemasResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteUserEventSchemaResponse struct { Body []byte HTTPResponse *http.Response @@ -21139,14 +19795,6 @@ func (r DeleteUserEventSchemaResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserEventSchemaResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListScheduledSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -21170,14 +19818,6 @@ func (r ListScheduledSchemasResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListScheduledSchemasResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteScheduledSchemaResponse struct { Body []byte HTTPResponse *http.Response @@ -21200,14 +19840,6 @@ func (r DeleteScheduledSchemaResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteScheduledSchemaResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateScheduleOffsetResponse struct { Body []byte HTTPResponse *http.Response @@ -21231,14 +19863,6 @@ func (r CreateScheduleOffsetResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateScheduleOffsetResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -21262,14 +19886,6 @@ func (r ListUsersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type IdentifyUserResponse struct { Body []byte HTTPResponse *http.Response @@ -21293,14 +19909,6 @@ func (r IdentifyUserResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r IdentifyUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ImportUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -21323,14 +19931,6 @@ func (r ImportUsersResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ImportUsersResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListUserSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -21356,14 +19956,6 @@ func (r ListUserSchemasResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListUserSchemasResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteUserResponse struct { Body []byte HTTPResponse *http.Response @@ -21386,14 +19978,6 @@ func (r DeleteUserResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserResponse struct { Body []byte HTTPResponse *http.Response @@ -21417,14 +20001,6 @@ func (r GetUserResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateUserResponse struct { Body []byte HTTPResponse *http.Response @@ -21448,14 +20024,6 @@ func (r UpdateUserResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateUserResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserDevicesResponse struct { Body []byte HTTPResponse *http.Response @@ -21479,14 +20047,6 @@ func (r GetUserDevicesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserDevicesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateUserDeviceResponse struct { Body []byte HTTPResponse *http.Response @@ -21509,14 +20069,6 @@ func (r CreateUserDeviceResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateUserDeviceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteUserDeviceResponse struct { Body []byte HTTPResponse *http.Response @@ -21539,14 +20091,6 @@ func (r DeleteUserDeviceResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserDeviceResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserEventsResponse struct { Body []byte HTTPResponse *http.Response @@ -21570,14 +20114,6 @@ func (r GetUserEventsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserEventsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateUserEventResponse struct { Body []byte HTTPResponse *http.Response @@ -21600,14 +20136,6 @@ func (r CreateUserEventResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateUserEventResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteUserExternalIDResponse struct { Body []byte HTTPResponse *http.Response @@ -21630,14 +20158,6 @@ func (r DeleteUserExternalIDResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserExternalIDResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -21661,14 +20181,6 @@ func (r GetUserInboxMessagesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserInboxMessagesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -21692,14 +20204,6 @@ func (r CreateUserInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateUserInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ArchiveUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -21723,14 +20227,6 @@ func (r ArchiveUserInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ArchiveUserInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ReadUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -21754,14 +20250,6 @@ func (r ReadUserInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ReadUserInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type RescheduleUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -21785,14 +20273,6 @@ func (r RescheduleUserInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r RescheduleUserInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UnarchiveUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -21816,14 +20296,6 @@ func (r UnarchiveUserInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnarchiveUserInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UnreadUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -21847,14 +20319,6 @@ func (r UnreadUserInboxMessageResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UnreadUserInboxMessageResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserJourneysResponse struct { Body []byte HTTPResponse *http.Response @@ -21878,14 +20342,6 @@ func (r GetUserJourneysResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserJourneysResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -21909,14 +20365,6 @@ func (r GetUserScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpsertUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -21940,14 +20388,6 @@ func (r UpsertUserScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpsertUserScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -21970,14 +20410,6 @@ func (r DeleteUserScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -22001,14 +20433,6 @@ func (r UpdateUserScheduledResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateUserScheduledResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserOrganizationsResponse struct { Body []byte HTTPResponse *http.Response @@ -22037,14 +20461,6 @@ func (r GetUserOrganizationsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserOrganizationsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetUserSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -22068,14 +20484,6 @@ func (r GetUserSubscriptionsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserSubscriptionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateUserSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -22099,14 +20507,6 @@ func (r UpdateUserSubscriptionsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateUserSubscriptionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -22130,14 +20530,6 @@ func (r ListSubscriptionsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListSubscriptionsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response @@ -22161,14 +20553,6 @@ func (r CreateSubscriptionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateSubscriptionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetSubscriptionResponse struct { Body []byte HTTPResponse *http.Response @@ -22192,14 +20576,6 @@ func (r GetSubscriptionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSubscriptionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response @@ -22223,14 +20599,6 @@ func (r UpdateSubscriptionResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateSubscriptionResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListTagsResponse struct { Body []byte HTTPResponse *http.Response @@ -22254,14 +20622,6 @@ func (r ListTagsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListTagsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateTagResponse struct { Body []byte HTTPResponse *http.Response @@ -22285,14 +20645,6 @@ func (r CreateTagResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateTagResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteTagResponse struct { Body []byte HTTPResponse *http.Response @@ -22315,14 +20667,6 @@ func (r DeleteTagResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteTagResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetTagResponse struct { Body []byte HTTPResponse *http.Response @@ -22346,14 +20690,6 @@ func (r GetTagResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTagResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateTagResponse struct { Body []byte HTTPResponse *http.Response @@ -22377,14 +20713,6 @@ func (r UpdateTagResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateTagResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListAdminsResponse struct { Body []byte HTTPResponse *http.Response @@ -22408,14 +20736,6 @@ func (r ListAdminsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListAdminsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type CreateAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -22439,14 +20759,6 @@ func (r CreateAdminResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateAdminResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type DeleteAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -22469,14 +20781,6 @@ func (r DeleteAdminResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteAdminResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -22500,14 +20804,6 @@ func (r GetAdminResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAdminResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type UpdateAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -22531,14 +20827,6 @@ func (r UpdateAdminResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateAdminResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type WhoamiResponse struct { Body []byte HTTPResponse *http.Response @@ -22562,14 +20850,6 @@ func (r WhoamiResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r WhoamiResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type AuthCallbackResponse struct { Body []byte HTTPResponse *http.Response @@ -22592,14 +20872,6 @@ func (r AuthCallbackResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthCallbackResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type GetAuthMethodsResponse struct { Body []byte HTTPResponse *http.Response @@ -22623,14 +20895,6 @@ func (r GetAuthMethodsResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAuthMethodsResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type AuthWebhookResponse struct { Body []byte HTTPResponse *http.Response @@ -22653,14 +20917,6 @@ func (r AuthWebhookResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AuthWebhookResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type ListMyInvitesResponse struct { Body []byte HTTPResponse *http.Response @@ -22686,14 +20942,6 @@ func (r ListMyInvitesResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListMyInvitesResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - type AcceptProjectInviteResponse struct { Body []byte HTTPResponse *http.Response @@ -22717,14 +20965,6 @@ func (r AcceptProjectInviteResponse) StatusCode() int { return 0 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r AcceptProjectInviteResponse) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - // SetActiveOrganizationWithBodyWithResponse request with arbitrary body returning *SetActiveOrganizationResponse func (c *ClientWithResponses) SetActiveOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetActiveOrganizationResponse, error) { rsp, err := c.SetActiveOrganizationWithBody(ctx, contentType, body, reqEditors...) @@ -32112,7 +30352,6 @@ func (siw *ServerInterfaceWrapper) GetProfile(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request) { var err error - _ = err ctx := r.Context() @@ -32125,40 +30364,25 @@ func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.R // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -32197,12 +30421,11 @@ func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32229,12 +30452,11 @@ func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32261,12 +30483,11 @@ func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32293,12 +30514,11 @@ func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32315,40 +30535,25 @@ func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Re // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -32367,12 +30572,11 @@ func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) CreateAction(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32399,12 +30603,11 @@ func (siw *ServerInterfaceWrapper) CreateAction(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) ListActionMeta(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32431,12 +30634,11 @@ func (siw *ServerInterfaceWrapper) ListActionMeta(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32445,7 +30647,7 @@ func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *ht // ------------- Path parameter "actionType" ------------- var actionType string - err = runtime.BindStyledParameterWithOptions("simple", "actionType", chi.URLParam(r, "actionType"), &actionType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "actionType", chi.URLParam(r, "actionType"), &actionType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionType", Err: err}) return @@ -32472,12 +30674,11 @@ func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) TestAction(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32504,12 +30705,11 @@ func (siw *ServerInterfaceWrapper) TestAction(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32518,7 +30718,7 @@ func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.R // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -32545,12 +30745,11 @@ func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32559,7 +30758,7 @@ func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -32586,12 +30785,11 @@ func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32600,7 +30798,7 @@ func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.R // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -32627,12 +30825,11 @@ func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32641,7 +30838,7 @@ func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *h // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -32650,7 +30847,7 @@ func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *h // ------------- Path parameter "functionID" ------------- var functionID string - err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) return @@ -32677,12 +30874,11 @@ func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32691,7 +30887,7 @@ func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r * // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -32700,7 +30896,7 @@ func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r * // ------------- Path parameter "functionID" ------------- var functionID string - err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) return @@ -32727,12 +30923,11 @@ func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32749,40 +30944,25 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -32801,12 +30981,11 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32815,7 +30994,7 @@ func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r * // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -32842,12 +31021,11 @@ func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32856,7 +31034,7 @@ func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *htt // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -32883,12 +31061,11 @@ func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32897,7 +31074,7 @@ func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r * // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -32924,12 +31101,11 @@ func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListAuthMethods(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32946,27 +31122,17 @@ func (siw *ServerInterfaceWrapper) ListAuthMethods(w http.ResponseWriter, r *htt // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -32985,12 +31151,11 @@ func (siw *ServerInterfaceWrapper) ListAuthMethods(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) CreateAuthMethod(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33017,12 +31182,11 @@ func (siw *ServerInterfaceWrapper) CreateAuthMethod(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) DeleteAuthMethod(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33031,7 +31195,7 @@ func (siw *ServerInterfaceWrapper) DeleteAuthMethod(w http.ResponseWriter, r *ht // ------------- Path parameter "methodID" ------------- var methodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "methodID", Err: err}) return @@ -33058,12 +31222,11 @@ func (siw *ServerInterfaceWrapper) DeleteAuthMethod(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) GetAuthMethod(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33072,7 +31235,7 @@ func (siw *ServerInterfaceWrapper) GetAuthMethod(w http.ResponseWriter, r *http. // ------------- Path parameter "methodID" ------------- var methodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "methodID", Err: err}) return @@ -33099,12 +31262,11 @@ func (siw *ServerInterfaceWrapper) GetAuthMethod(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) UpdateAuthMethod(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33113,7 +31275,7 @@ func (siw *ServerInterfaceWrapper) UpdateAuthMethod(w http.ResponseWriter, r *ht // ------------- Path parameter "methodID" ------------- var methodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "methodID", Err: err}) return @@ -33140,12 +31302,11 @@ func (siw *ServerInterfaceWrapper) UpdateAuthMethod(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33162,79 +31323,49 @@ func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } // ------------- Optional query parameter "campaign_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "campaign_id", r.URL.Query(), ¶ms.CampaignId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "campaign_id", r.URL.Query(), ¶ms.CampaignId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "campaign_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaign_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaign_id", Err: err}) return } // ------------- Optional query parameter "list_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "list_id", r.URL.Query(), ¶ms.ListId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "list_id", r.URL.Query(), ¶ms.ListId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "list_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "list_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "list_id", Err: err}) return } // ------------- Optional query parameter "state" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "state", r.URL.Query(), ¶ms.State, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "state", r.URL.Query(), ¶ms.State) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "state"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "state", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "state", Err: err}) return } @@ -33253,12 +31384,11 @@ func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) CreateBroadcast(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33285,12 +31415,11 @@ func (siw *ServerInterfaceWrapper) CreateBroadcast(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) CancelBroadcast(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33299,7 +31428,7 @@ func (siw *ServerInterfaceWrapper) CancelBroadcast(w http.ResponseWriter, r *htt // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -33326,12 +31455,11 @@ func (siw *ServerInterfaceWrapper) CancelBroadcast(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33340,7 +31468,7 @@ func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.R // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -33367,12 +31495,11 @@ func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33381,7 +31508,7 @@ func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *htt // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -33408,12 +31535,11 @@ func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) StreamBroadcastProgress(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33422,7 +31548,7 @@ func (siw *ServerInterfaceWrapper) StreamBroadcastProgress(w http.ResponseWriter // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -33449,12 +31575,11 @@ func (siw *ServerInterfaceWrapper) StreamBroadcastProgress(w http.ResponseWriter func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33463,7 +31588,7 @@ func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http. // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -33490,12 +31615,11 @@ func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33504,7 +31628,7 @@ func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *h // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -33521,40 +31645,25 @@ func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -33573,12 +31682,11 @@ func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33595,53 +31703,33 @@ func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } // ------------- Optional query parameter "include_deleted" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_deleted"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) return } @@ -33660,12 +31748,11 @@ func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33692,12 +31779,11 @@ func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33706,7 +31792,7 @@ func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -33733,12 +31819,11 @@ func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33747,7 +31832,7 @@ func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Re // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -33774,12 +31859,11 @@ func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33788,7 +31872,7 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -33815,12 +31899,11 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33829,7 +31912,7 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -33856,12 +31939,11 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33870,7 +31952,7 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -33897,12 +31979,11 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33911,7 +31992,7 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -33920,7 +32001,7 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -33947,12 +32028,11 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33961,7 +32041,7 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -33970,7 +32050,7 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -33997,12 +32077,11 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34011,7 +32090,7 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -34020,7 +32099,7 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -34047,12 +32126,11 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34061,7 +32139,7 @@ func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Reque // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -34070,7 +32148,7 @@ func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Reque // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -34097,12 +32175,11 @@ func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Reque func (siw *ServerInterfaceWrapper) UnarchiveCampaign(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34111,7 +32188,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveCampaign(w http.ResponseWriter, r *h // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -34138,12 +32215,11 @@ func (siw *ServerInterfaceWrapper) UnarchiveCampaign(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34152,7 +32228,7 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -34169,27 +32245,17 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -34208,12 +32274,11 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34230,27 +32295,17 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -34269,12 +32324,11 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34301,12 +32355,11 @@ func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34315,7 +32368,7 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http // ------------- Path parameter "documentID" ------------- var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return @@ -34342,12 +32395,11 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34356,7 +32408,7 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re // ------------- Path parameter "documentID" ------------- var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return @@ -34383,12 +32435,11 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34397,7 +32448,7 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r // ------------- Path parameter "documentID" ------------- var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return @@ -34424,12 +32475,11 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) ListEmailTemplates(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34446,40 +32496,25 @@ func (siw *ServerInterfaceWrapper) ListEmailTemplates(w http.ResponseWriter, r * // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -34498,12 +32533,11 @@ func (siw *ServerInterfaceWrapper) ListEmailTemplates(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListProjectInvites(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34520,105 +32554,65 @@ func (siw *ServerInterfaceWrapper) ListProjectInvites(w http.ResponseWriter, r * // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) return } // ------------- Optional query parameter "role" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "role", r.URL.Query(), ¶ms.Role, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "role", r.URL.Query(), ¶ms.Role) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "role"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "role", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "role", Err: err}) return } // ------------- Optional query parameter "expires_after" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "expires_after", r.URL.Query(), ¶ms.ExpiresAfter, runtime.BindQueryParameterOptions{Type: "string", Format: "date"}) + err = runtime.BindQueryParameter("form", true, false, "expires_after", r.URL.Query(), ¶ms.ExpiresAfter) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "expires_after"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_after", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_after", Err: err}) return } // ------------- Optional query parameter "expires_before" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "expires_before", r.URL.Query(), ¶ms.ExpiresBefore, runtime.BindQueryParameterOptions{Type: "string", Format: "date"}) + err = runtime.BindQueryParameter("form", true, false, "expires_before", r.URL.Query(), ¶ms.ExpiresBefore) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "expires_before"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_before", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_before", Err: err}) return } // ------------- Optional query parameter "inviter_admin_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "inviter_admin_id", r.URL.Query(), ¶ms.InviterAdminId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "inviter_admin_id", r.URL.Query(), ¶ms.InviterAdminId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "inviter_admin_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviter_admin_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviter_admin_id", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -34637,12 +32631,11 @@ func (siw *ServerInterfaceWrapper) ListProjectInvites(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) CreateProjectInvite(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34669,12 +32662,11 @@ func (siw *ServerInterfaceWrapper) CreateProjectInvite(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) RevokeProjectInvite(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34683,7 +32675,7 @@ func (siw *ServerInterfaceWrapper) RevokeProjectInvite(w http.ResponseWriter, r // ------------- Path parameter "inviteID" ------------- var inviteID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviteID", Err: err}) return @@ -34710,12 +32702,11 @@ func (siw *ServerInterfaceWrapper) RevokeProjectInvite(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34732,53 +32723,33 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } // ------------- Optional query parameter "include_deleted" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_deleted"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) return } @@ -34797,12 +32768,11 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34819,14 +32789,9 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. // ------------- Optional query parameter "publish" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "publish", r.URL.Query(), ¶ms.Publish, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "publish", r.URL.Query(), ¶ms.Publish) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "publish"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "publish", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "publish", Err: err}) return } @@ -34845,12 +32810,11 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34859,7 +32823,7 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -34886,12 +32850,11 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34900,7 +32863,7 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -34927,12 +32890,11 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34941,7 +32903,7 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -34968,12 +32930,11 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34982,7 +32943,7 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35009,12 +32970,11 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35023,7 +32983,7 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35050,12 +33010,11 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35064,7 +33023,7 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35091,12 +33050,11 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35105,7 +33063,7 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35132,12 +33090,11 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UnarchiveJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35146,7 +33103,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveJourney(w http.ResponseWriter, r *ht // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35173,12 +33130,11 @@ func (siw *ServerInterfaceWrapper) UnarchiveJourney(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35187,7 +33143,7 @@ func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *h // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35196,7 +33152,7 @@ func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *h // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -35223,12 +33179,11 @@ func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35237,7 +33192,7 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35246,7 +33201,7 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -35273,12 +33228,11 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35287,7 +33241,7 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35296,7 +33250,7 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -35323,12 +33277,11 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35337,7 +33290,7 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35346,7 +33299,7 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -35373,12 +33326,11 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35387,7 +33339,7 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35396,7 +33348,7 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -35423,12 +33375,11 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35437,7 +33388,7 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -35464,12 +33415,11 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35486,53 +33436,33 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } // ------------- Optional query parameter "include_deleted" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_deleted"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) return } @@ -35551,12 +33481,11 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35583,12 +33512,11 @@ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35597,7 +33525,7 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35624,12 +33552,11 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35638,7 +33565,7 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35665,12 +33592,11 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35679,7 +33605,7 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35706,12 +33632,11 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35720,7 +33645,7 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35747,12 +33672,11 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) UnarchiveList(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35761,7 +33685,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveList(w http.ResponseWriter, r *http. // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35788,12 +33712,11 @@ func (siw *ServerInterfaceWrapper) UnarchiveList(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35802,7 +33725,7 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35819,40 +33742,25 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -35871,12 +33779,11 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35885,7 +33792,7 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35902,14 +33809,9 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } @@ -35928,12 +33830,11 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35942,7 +33843,7 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -35969,12 +33870,11 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35991,27 +33891,17 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -36030,12 +33920,11 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36062,12 +33951,11 @@ func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36076,7 +33964,7 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R // ------------- Path parameter "localeID" ------------- var localeID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return @@ -36103,12 +33991,11 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36117,7 +34004,7 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "localeID" ------------- var localeID string - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return @@ -36144,12 +34031,11 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36166,27 +34052,17 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -36205,12 +34081,11 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36237,12 +34112,11 @@ func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36251,7 +34125,7 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -36278,12 +34152,11 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36292,7 +34165,7 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -36301,7 +34174,7 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http // ------------- Path parameter "providerID" ------------- var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return @@ -36328,12 +34201,11 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36342,7 +34214,7 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -36351,7 +34223,7 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re // ------------- Path parameter "providerID" ------------- var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return @@ -36378,12 +34250,11 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36392,7 +34263,7 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -36401,7 +34272,7 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http // ------------- Path parameter "providerID" ------------- var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return @@ -36428,12 +34299,11 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) ListProjectPushProviders(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36460,12 +34330,11 @@ func (siw *ServerInterfaceWrapper) ListProjectPushProviders(w http.ResponseWrite func (siw *ServerInterfaceWrapper) DeleteProjectPushProvider(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36474,7 +34343,7 @@ func (siw *ServerInterfaceWrapper) DeleteProjectPushProvider(w http.ResponseWrit // ------------- Path parameter "platform" ------------- var platform ProjectPushProviderPlatform - err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "platform", Err: err}) return @@ -36501,12 +34370,11 @@ func (siw *ServerInterfaceWrapper) DeleteProjectPushProvider(w http.ResponseWrit func (siw *ServerInterfaceWrapper) UpsertProjectPushProvider(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36515,7 +34383,7 @@ func (siw *ServerInterfaceWrapper) UpsertProjectPushProvider(w http.ResponseWrit // ------------- Path parameter "platform" ------------- var platform ProjectPushProviderPlatform - err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "platform", Err: err}) return @@ -36542,12 +34410,11 @@ func (siw *ServerInterfaceWrapper) UpsertProjectPushProvider(w http.ResponseWrit func (siw *ServerInterfaceWrapper) ListSenderIdentities(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36564,53 +34431,33 @@ func (siw *ServerInterfaceWrapper) ListSenderIdentities(w http.ResponseWriter, r // ------------- Optional query parameter "provider_id" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "provider_id", r.URL.Query(), ¶ms.ProviderId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) + err = runtime.BindQueryParameter("form", true, false, "provider_id", r.URL.Query(), ¶ms.ProviderId) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "provider_id"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "provider_id", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "provider_id", Err: err}) return } // ------------- Optional query parameter "channel" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "channel", r.URL.Query(), ¶ms.Channel) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -36629,12 +34476,11 @@ func (siw *ServerInterfaceWrapper) ListSenderIdentities(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) CreateSenderIdentity(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36661,12 +34507,11 @@ func (siw *ServerInterfaceWrapper) CreateSenderIdentity(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteSenderIdentity(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36675,7 +34520,7 @@ func (siw *ServerInterfaceWrapper) DeleteSenderIdentity(w http.ResponseWriter, r // ------------- Path parameter "senderIdentityID" ------------- var senderIdentityID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "senderIdentityID", Err: err}) return @@ -36702,12 +34547,11 @@ func (siw *ServerInterfaceWrapper) DeleteSenderIdentity(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetSenderIdentity(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36716,7 +34560,7 @@ func (siw *ServerInterfaceWrapper) GetSenderIdentity(w http.ResponseWriter, r *h // ------------- Path parameter "senderIdentityID" ------------- var senderIdentityID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "senderIdentityID", Err: err}) return @@ -36743,12 +34587,11 @@ func (siw *ServerInterfaceWrapper) GetSenderIdentity(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36775,12 +34618,11 @@ func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseW func (siw *ServerInterfaceWrapper) DeleteOrganizationEventSchema(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36789,7 +34631,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationEventSchema(w http.Response // ------------- Path parameter "eventID" ------------- var eventID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "eventID", Err: err}) return @@ -36816,12 +34658,11 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationEventSchema(w http.Response func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36838,40 +34679,25 @@ func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -36890,12 +34716,11 @@ func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36922,12 +34747,11 @@ func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36954,12 +34778,11 @@ func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36986,12 +34809,11 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.Response func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37000,7 +34822,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37027,12 +34849,11 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37041,7 +34862,7 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37068,12 +34889,11 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37082,7 +34902,7 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37109,12 +34929,11 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37123,7 +34942,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37140,40 +34959,25 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -37192,12 +34996,11 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) CreateOrganizationEvent(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37206,7 +35009,7 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationEvent(w http.ResponseWriter // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37233,12 +35036,11 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationEvent(w http.ResponseWriter func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37247,7 +35049,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseW // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37256,7 +35058,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseW // ------------- Path parameter "identifierID" ------------- var identifierID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "identifierID", Err: err}) return @@ -37283,12 +35085,11 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseW func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37297,7 +35098,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseW // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37314,131 +35115,81 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseW // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) return } // ------------- Optional query parameter "channel" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "channel", r.URL.Query(), ¶ms.Channel) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) return } // ------------- Optional query parameter "include_archived" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_archived"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) return } // ------------- Optional query parameter "include_scheduled" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_scheduled"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -37457,12 +35208,11 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseW func (siw *ServerInterfaceWrapper) CreateOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37471,7 +35221,7 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationInboxMessage(w http.Respons // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37498,12 +35248,11 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationInboxMessage(w http.Respons func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37512,7 +35261,7 @@ func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.Respon // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37521,7 +35270,7 @@ func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.Respon // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -37548,12 +35297,11 @@ func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.Respon func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37562,7 +35310,7 @@ func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseW // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37571,7 +35319,7 @@ func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseW // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -37598,12 +35346,11 @@ func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseW func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37612,7 +35359,7 @@ func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.Res // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37621,7 +35368,7 @@ func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.Res // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -37648,12 +35395,11 @@ func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.Res func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37662,7 +35408,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.Resp // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37671,7 +35417,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.Resp // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -37698,12 +35444,11 @@ func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.Resp func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37712,7 +35457,7 @@ func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.Respons // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37721,7 +35466,7 @@ func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.Respons // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -37748,12 +35493,11 @@ func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.Respons func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37762,7 +35506,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWrite // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37779,27 +35523,17 @@ func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWrite // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -37818,12 +35552,11 @@ func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWrite func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37832,7 +35565,7 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37859,12 +35592,11 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduled(w http.ResponseWr func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37873,7 +35605,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37882,7 +35614,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -37909,12 +35641,11 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWr func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37923,7 +35654,7 @@ func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37932,7 +35663,7 @@ func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -37959,12 +35690,11 @@ func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWr func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37973,7 +35703,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -37990,27 +35720,17 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -38029,12 +35749,11 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38043,7 +35762,7 @@ func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -38070,12 +35789,11 @@ func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38084,7 +35802,7 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -38093,7 +35811,7 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38120,12 +35838,11 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38152,12 +35869,11 @@ func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteUserEventSchema(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38166,7 +35882,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserEventSchema(w http.ResponseWriter, // ------------- Path parameter "eventID" ------------- var eventID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "eventID", Err: err}) return @@ -38193,12 +35909,11 @@ func (siw *ServerInterfaceWrapper) DeleteUserEventSchema(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) ListScheduledSchemas(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38225,12 +35940,11 @@ func (siw *ServerInterfaceWrapper) ListScheduledSchemas(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteScheduledSchema(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38239,7 +35953,7 @@ func (siw *ServerInterfaceWrapper) DeleteScheduledSchema(w http.ResponseWriter, // ------------- Path parameter "scheduledID" ------------- var scheduledID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledID", Err: err}) return @@ -38266,12 +35980,11 @@ func (siw *ServerInterfaceWrapper) DeleteScheduledSchema(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) CreateScheduleOffset(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38280,7 +35993,7 @@ func (siw *ServerInterfaceWrapper) CreateScheduleOffset(w http.ResponseWriter, r // ------------- Path parameter "scheduledID" ------------- var scheduledID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledID", Err: err}) return @@ -38307,12 +36020,11 @@ func (siw *ServerInterfaceWrapper) CreateScheduleOffset(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38329,40 +36041,25 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -38381,12 +36078,11 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38413,12 +36109,11 @@ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38445,12 +36140,11 @@ func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38477,12 +36171,11 @@ func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38491,7 +36184,7 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38518,12 +36211,11 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38532,7 +36224,7 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38559,12 +36251,11 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38573,7 +36264,7 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38600,12 +36291,11 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38614,7 +36304,7 @@ func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38641,12 +36331,11 @@ func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) CreateUserDevice(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38655,7 +36344,7 @@ func (siw *ServerInterfaceWrapper) CreateUserDevice(w http.ResponseWriter, r *ht // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38682,12 +36371,11 @@ func (siw *ServerInterfaceWrapper) CreateUserDevice(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38696,7 +36384,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38705,7 +36393,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht // ------------- Path parameter "deviceID" ------------- var deviceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "deviceID", chi.URLParam(r, "deviceID"), &deviceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "deviceID", chi.URLParam(r, "deviceID"), &deviceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "deviceID", Err: err}) return @@ -38732,12 +36420,11 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38746,7 +36433,7 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38763,40 +36450,25 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -38815,12 +36487,11 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) CreateUserEvent(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38829,7 +36500,7 @@ func (siw *ServerInterfaceWrapper) CreateUserEvent(w http.ResponseWriter, r *htt // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38856,12 +36527,11 @@ func (siw *ServerInterfaceWrapper) CreateUserEvent(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38870,7 +36540,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38879,7 +36549,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r // ------------- Path parameter "identifierID" ------------- var identifierID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "identifierID", Err: err}) return @@ -38906,12 +36576,11 @@ func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -38920,7 +36589,7 @@ func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -38937,131 +36606,81 @@ func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) return } // ------------- Optional query parameter "channel" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "channel", r.URL.Query(), ¶ms.Channel) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) return } // ------------- Optional query parameter "include_archived" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_archived"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) return } // ------------- Optional query parameter "include_scheduled" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_scheduled"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -39080,12 +36699,11 @@ func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) CreateUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39094,7 +36712,7 @@ func (siw *ServerInterfaceWrapper) CreateUserInboxMessage(w http.ResponseWriter, // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39121,12 +36739,11 @@ func (siw *ServerInterfaceWrapper) CreateUserInboxMessage(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39135,7 +36752,7 @@ func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39144,7 +36761,7 @@ func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -39171,12 +36788,11 @@ func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39185,7 +36801,7 @@ func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39194,7 +36810,7 @@ func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -39221,12 +36837,11 @@ func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39235,7 +36850,7 @@ func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWri // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39244,7 +36859,7 @@ func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWri // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -39271,12 +36886,11 @@ func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWri func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39285,7 +36899,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWrit // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39294,7 +36908,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWrit // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -39321,12 +36935,11 @@ func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWrit func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39335,7 +36948,7 @@ func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39344,7 +36957,7 @@ func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -39371,12 +36984,11 @@ func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39385,7 +36997,7 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39402,27 +37014,17 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -39441,12 +37043,11 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39455,7 +37056,7 @@ func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *ht // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39472,27 +37073,17 @@ func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *ht // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -39511,12 +37102,11 @@ func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) UpsertUserScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39525,7 +37115,7 @@ func (siw *ServerInterfaceWrapper) UpsertUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39552,12 +37142,11 @@ func (siw *ServerInterfaceWrapper) UpsertUserScheduled(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39566,7 +37155,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39575,7 +37164,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -39602,12 +37191,11 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39616,7 +37204,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39625,7 +37213,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -39652,12 +37240,11 @@ func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39666,7 +37253,7 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39683,40 +37270,25 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -39735,12 +37307,11 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39749,7 +37320,7 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39766,27 +37337,17 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -39805,12 +37366,11 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39819,7 +37379,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -39846,12 +37406,11 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39868,27 +37427,17 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } @@ -39907,12 +37456,11 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39939,12 +37487,11 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39953,7 +37500,7 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt // ------------- Path parameter "subscriptionID" ------------- var subscriptionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) return @@ -39980,12 +37527,11 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -39994,7 +37540,7 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * // ------------- Path parameter "subscriptionID" ------------- var subscriptionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) return @@ -40021,12 +37567,11 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -40043,40 +37588,25 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -40095,12 +37625,11 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -40127,12 +37656,11 @@ func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -40141,7 +37669,7 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "tagID" ------------- var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return @@ -40168,12 +37696,11 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -40182,7 +37709,7 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request // ------------- Path parameter "tagID" ------------- var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return @@ -40209,12 +37736,11 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -40223,7 +37749,7 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "tagID" ------------- var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return @@ -40250,7 +37776,6 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Request) { var err error - _ = err ctx := r.Context() @@ -40263,40 +37788,25 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) + err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) if err != nil { - var requiredError *runtime.RequiredParameterError - if errors.As(err, &requiredError) { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) - } else { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) - } + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) return } @@ -40335,12 +37845,11 @@ func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -40367,12 +37876,11 @@ func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -40399,12 +37907,11 @@ func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Reque func (siw *ServerInterfaceWrapper) UpdateAdmin(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -40451,12 +37958,11 @@ func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request func (siw *ServerInterfaceWrapper) AuthCallback(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "driver" ------------- var driver AuthCallbackParamsDriver - err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "driver", Err: err}) return @@ -40491,12 +37997,11 @@ func (siw *ServerInterfaceWrapper) GetAuthMethods(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) AuthWebhook(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "driver" ------------- var driver AuthWebhookParamsDriver - err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) + err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "driver", Err: err}) return @@ -40537,12 +38042,11 @@ func (siw *ServerInterfaceWrapper) ListMyInvites(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) AcceptProjectInvite(w http.ResponseWriter, r *http.Request) { var err error - _ = err // ------------- Path parameter "inviteID" ------------- var inviteID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) + err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviteID", Err: err}) return diff --git a/internal/http/controllers/v1/management/scheduled.go b/internal/http/controllers/v1/management/scheduled.go index 17c5f436..fb1d85f6 100644 --- a/internal/http/controllers/v1/management/scheduled.go +++ b/internal/http/controllers/v1/management/scheduled.go @@ -364,7 +364,19 @@ func (srv *ScheduledController) UpsertUserScheduled(w http.ResponseWriter, r *ht body.StartAt = &now } - upserted, err := srv.store.UpsertUserSchedule(ctx, userID, scheduleID, body.ScheduledAt, body.StartAt, body.Interval, data) + // A supplied id updates that specific assignment; omitting it creates a new + // one (the store mints an id). Multiple assignments may share the same name. + var assignmentID uuid.UUID + if body.Id != nil { + assignmentID = *body.Id + } + + upserted, err := srv.store.UpsertUserSchedule(ctx, assignmentID, userID, scheduleID, body.ScheduledAt, body.StartAt, body.Interval, data) + if errors.Is(err, subjects.ErrScheduleOwnershipMismatch) { + logger.Warn("scheduled instance id does not match user or schedule", zap.Error(err)) + oapi.WriteProblem(w, problem.ErrBadRequest(problem.Describe("scheduled instance id does not match the user or schedule"))) + return + } if err != nil { logger.Error("failed to upsert user schedule", zap.Error(err)) oapi.WriteProblem(w, err) @@ -643,7 +655,19 @@ func (srv *ScheduledController) UpsertOrganizationScheduled(w http.ResponseWrite body.StartAt = &now } - upserted, err := srv.store.UpsertOrganizationSchedule(ctx, organizationID, scheduleID, body.ScheduledAt, body.StartAt, body.Interval, data) + // A supplied id updates that specific assignment; omitting it creates a new + // one (the store mints an id). Multiple assignments may share the same name. + var assignmentID uuid.UUID + if body.Id != nil { + assignmentID = *body.Id + } + + upserted, err := srv.store.UpsertOrganizationSchedule(ctx, assignmentID, organizationID, scheduleID, body.ScheduledAt, body.StartAt, body.Interval, data) + if errors.Is(err, subjects.ErrScheduleOwnershipMismatch) { + logger.Warn("scheduled instance id does not match organization or schedule", zap.Error(err)) + oapi.WriteProblem(w, problem.ErrBadRequest(problem.Describe("scheduled instance id does not match the organization or schedule"))) + return + } if err != nil { logger.Error("failed to upsert organization schedule", zap.Error(err)) oapi.WriteProblem(w, err) diff --git a/internal/http/controllers/v1/management/scheduled_test.go b/internal/http/controllers/v1/management/scheduled_test.go index e28c7a0a..5767c988 100644 --- a/internal/http/controllers/v1/management/scheduled_test.go +++ b/internal/http/controllers/v1/management/scheduled_test.go @@ -653,8 +653,10 @@ func TestUpsertUserScheduledIdempotent(t *testing.T) { var result1 oapi.UserScheduled require.NoError(t, json.Unmarshal(res1.Body.Bytes(), &result1)) + // Re-upserting with the returned instance id updates that assignment in place. time2 := time.Now().Add(72 * time.Hour).UTC().Truncate(time.Microsecond) body2, _ := json.Marshal(oapi.UpsertUserScheduledRequest{ + Id: &result1.Id, ScheduledId: &sid, ScheduledAt: &time2, Data: &data, @@ -669,10 +671,43 @@ func TestUpsertUserScheduledIdempotent(t *testing.T) { var result2 oapi.UserScheduled require.NoError(t, json.Unmarshal(res2.Body.Bytes(), &result2)) - require.Equal(t, result1.Id, result2.Id, "upsert should return same instance ID") + require.Equal(t, result1.Id, result2.Id, "upsert with id should return same instance ID") require.WithinDuration(t, time2, result2.ScheduledAt, time.Second) } +func TestUpsertUserScheduledCreatesNewInstance(t *testing.T) { + t.Parallel() + + tc := setupScheduledController(t) + + userID := tc.createUser(t) + sid := tc.createSchedule(t, "user_multi", "single") + data := json.RawMessage(`{}`) + + upsert := func(at time.Time) oapi.UserScheduled { + body, _ := json.Marshal(oapi.UpsertUserScheduledRequest{ + ScheduledId: &sid, + ScheduledAt: &at, + Data: &data, + }) + res := httptest.NewRecorder() + req := httptest.NewRequest("PUT", "/", bytes.NewReader(body)) + req = req.WithContext(tc.actorCtx) + tc.controller.UpsertUserScheduled(res, req, tc.projectID, userID) + require.Equal(t, 200, res.Code) + + var result oapi.UserScheduled + require.NoError(t, json.Unmarshal(res.Body.Bytes(), &result)) + return result + } + + // Without an id, each upsert creates a distinct assignment for the same name. + first := upsert(time.Now().Add(24 * time.Hour).UTC().Truncate(time.Microsecond)) + second := upsert(time.Now().Add(48 * time.Hour).UTC().Truncate(time.Microsecond)) + + require.NotEqual(t, first.Id, second.Id) +} + func TestDeleteUserScheduled(t *testing.T) { t.Parallel() @@ -1066,8 +1101,10 @@ func TestUpsertOrganizationScheduledIdempotent(t *testing.T) { var result1 oapi.UserScheduled require.NoError(t, json.Unmarshal(res1.Body.Bytes(), &result1)) + // Re-upserting with the returned instance id updates that assignment in place. time2 := time.Now().Add(72 * time.Hour).UTC().Truncate(time.Microsecond) body2, _ := json.Marshal(oapi.UpsertOrganizationScheduledRequest{ + Id: &result1.Id, ScheduledId: &sid, ScheduledAt: &time2, Data: &data, @@ -1082,7 +1119,7 @@ func TestUpsertOrganizationScheduledIdempotent(t *testing.T) { var result2 oapi.UserScheduled require.NoError(t, json.Unmarshal(res2.Body.Bytes(), &result2)) - require.Equal(t, result1.Id, result2.Id, "upsert should return same instance ID") + require.Equal(t, result1.Id, result2.Id, "upsert with id should return same instance ID") require.WithinDuration(t, time2, result2.ScheduledAt, time.Second) } diff --git a/internal/journeys/schedule.go b/internal/journeys/schedule.go index 2f74244b..e78b12f3 100644 --- a/internal/journeys/schedule.go +++ b/internal/journeys/schedule.go @@ -5,6 +5,7 @@ import ( "fmt" "time" + "github.com/google/uuid" "github.com/lunogram/platform/internal/http/controllers/v1/management/oapi" "github.com/lunogram/platform/internal/render" "github.com/lunogram/platform/internal/store/journey" @@ -12,6 +13,10 @@ import ( "go.uber.org/zap" ) +// scheduleAssignmentNamespace is a fixed namespace for deriving deterministic +// schedule-assignment ids from (user, schedule) in journey steps. +var scheduleAssignmentNamespace = uuid.MustParse("8e0f6a2c-3b4d-5e6f-7a8b-9c0d1e2f3a4b") + func HandleSchedule(ctx HandlerContext, step journey.JourneyVersionStep, state journey.JourneyUserState) (journey.JourneyUserState, journey.JourneyVersionStepChildren, error) { config, err := DecodeStepData[oapi.ScheduleStepData](step.Data) if err != nil { @@ -87,7 +92,14 @@ func HandleSchedule(ctx HandlerContext, step journey.JourneyVersionStep, state j data = json.RawMessage(rendered) } - userSchedule, err := scheduledStore.UpsertUserSchedule(ctx, ctx.UserID, scheduleID, scheduledAt, startAt, interval, data) + // Journey placements stay idempotent per (user, schedule): a deterministic + // assignment id means re-running this step (e.g. on retry or journey + // re-entry) updates the same assignment rather than creating duplicates, + // preserving the behaviour from before assignments became individually + // addressable. + assignmentID := uuid.NewSHA1(scheduleAssignmentNamespace, append(ctx.UserID[:], scheduleID[:]...)) + + userSchedule, err := scheduledStore.UpsertUserSchedule(ctx, assignmentID, ctx.UserID, scheduleID, scheduledAt, startAt, interval, data) if err != nil { return state, nil, fmt.Errorf("failed to upsert user schedule: %w", err) } diff --git a/internal/pubsub/consumer/scheduled.go b/internal/pubsub/consumer/scheduled.go index 2b092beb..7aa8d5c6 100644 --- a/internal/pubsub/consumer/scheduled.go +++ b/internal/pubsub/consumer/scheduled.go @@ -3,6 +3,7 @@ package consumer import ( "context" "encoding/json" + "errors" "fmt" "time" @@ -122,7 +123,11 @@ func ScheduledHandler(logger *zap.Logger, db *sqlx.DB, usrs *subjects.State, pub if err := resolveUserID(ctx, logger, txState, &scheduled); err != nil { return err } - if _, err := txState.UpsertUserSchedule(ctx, scheduled.UserID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { + if _, err := txState.UpsertUserSchedule(ctx, scheduled.AssignmentID, scheduled.UserID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { + if errors.Is(err, subjects.ErrScheduleOwnershipMismatch) { + logger.Error("user schedule assignment id does not match subject/schedule", zap.Error(err)) + return Permanent(err) + } logger.Error("failed to upsert user schedule", zap.Error(err)) return err } @@ -131,7 +136,11 @@ func ScheduledHandler(logger *zap.Logger, db *sqlx.DB, usrs *subjects.State, pub if err := resolveOrganizationID(ctx, logger, txState, &scheduled); err != nil { return err } - if _, err := txState.UpsertOrganizationSchedule(ctx, scheduled.OrganizationID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { + if _, err := txState.UpsertOrganizationSchedule(ctx, scheduled.AssignmentID, scheduled.OrganizationID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { + if errors.Is(err, subjects.ErrScheduleOwnershipMismatch) { + logger.Error("organization schedule assignment id does not match subject/schedule", zap.Error(err)) + return Permanent(err) + } logger.Error("failed to upsert organization schedule", zap.Error(err)) return err } diff --git a/internal/pubsub/schemas/events.go b/internal/pubsub/schemas/events.go index a3a671c1..2b38de06 100644 --- a/internal/pubsub/schemas/events.go +++ b/internal/pubsub/schemas/events.go @@ -686,6 +686,7 @@ type ScheduledMsg struct { ID uuid.UUID `json:"id"` ProjectID uuid.UUID `json:"project_id"` ScheduledID uuid.UUID `json:"scheduled_id"` + AssignmentID uuid.UUID `json:"assignment_id,omitempty"` // the per-subject assignment (user_schedules/organization_schedules) id; zero means create a new assignment Name string `json:"name"` Type string `json:"type"` // "single" or "recurring" SubjectType string `json:"subject_type"` // "user" or "organization" diff --git a/internal/store/subjects/migrations/1784600000_schedule_multi_assignment.down.sql b/internal/store/subjects/migrations/1784600000_schedule_multi_assignment.down.sql new file mode 100644 index 00000000..8db8dcd3 --- /dev/null +++ b/internal/store/subjects/migrations/1784600000_schedule_multi_assignment.down.sql @@ -0,0 +1,9 @@ +-- Restore the single-assignment-per-name constraint. Note: this will fail if any +-- subject already holds multiple assignments for the same schedule definition; +-- such duplicates must be reconciled before rolling back. + +CREATE UNIQUE INDEX IF NOT EXISTS idx_user_schedules_user_schedule_unique + ON user_schedules (user_id, schedule_id); + +CREATE UNIQUE INDEX IF NOT EXISTS idx_organization_schedules_org_schedule_unique + ON organization_schedules (organization_id, schedule_id); diff --git a/internal/store/subjects/migrations/1784600000_schedule_multi_assignment.up.sql b/internal/store/subjects/migrations/1784600000_schedule_multi_assignment.up.sql new file mode 100644 index 00000000..6e841e9e --- /dev/null +++ b/internal/store/subjects/migrations/1784600000_schedule_multi_assignment.up.sql @@ -0,0 +1,10 @@ +-- Allow multiple schedule assignments with the same name per subject. +-- Previously a (user_id, schedule_id) / (organization_id, schedule_id) pair was +-- unique, so a subject could hold at most one assignment per named schedule and a +-- second submit overwrote the first. Assignments are now addressed by their own +-- primary key (id): submitting an existing id upserts that row, while omitting it +-- creates a new instance. The non-unique lookup indexes (idx_user_schedules_user, +-- idx_organization_schedules_org) are retained for query performance. + +DROP INDEX IF EXISTS idx_user_schedules_user_schedule_unique; +DROP INDEX IF EXISTS idx_organization_schedules_org_schedule_unique; diff --git a/internal/store/subjects/scheduled.go b/internal/store/subjects/scheduled.go index 9cd88aaf..48ab3496 100644 --- a/internal/store/subjects/scheduled.go +++ b/internal/store/subjects/scheduled.go @@ -3,6 +3,7 @@ package subjects import ( "context" "encoding/json" + "errors" "fmt" "time" @@ -13,6 +14,13 @@ import ( "go.uber.org/zap" ) +// ErrScheduleOwnershipMismatch is returned when an upsert targets an existing +// schedule-assignment id that belongs to a different subject or schedule +// definition. Assignments are addressed by their own id, but the id must +// resolve to a row for the same (subject, schedule) pair; otherwise the upsert +// is rejected rather than silently rewriting another subject's assignment. +var ErrScheduleOwnershipMismatch = errors.New("schedule assignment id belongs to a different subject or schedule") + func (s *ScheduledStore) ValidateInterval(ctx context.Context, interval string) bool { var positive bool err := s.db.GetContext(ctx, &positive, `SELECT $1::interval > '0 seconds'::interval`, interval) @@ -490,7 +498,13 @@ func (s *ScheduledStore) UpdateUserSchedule(ctx context.Context, id uuid.UUID, s // UpsertUserSchedule inserts a new user schedule or updates the existing one // for the given (userID, scheduleID) pair using ON CONFLICT. After the upsert // it recomputes pending scheduled events. -func (s *ScheduledStore) UpsertUserSchedule(ctx context.Context, userID, scheduleID uuid.UUID, scheduledAt *time.Time, startAt *time.Time, interval *string, data json.RawMessage) (*UserSchedule, error) { +func (s *ScheduledStore) UpsertUserSchedule(ctx context.Context, id, userID, scheduleID uuid.UUID, scheduledAt *time.Time, startAt *time.Time, interval *string, data json.RawMessage) (*UserSchedule, error) { + // A nil id means "create a new assignment"; mint one so the row is + // addressable by the caller afterwards. + if id == uuid.Nil { + id = uuid.New() + } + // For recurring schedules, anchor_at starts equal to start_at. anchorAt := startAt @@ -506,20 +520,28 @@ func (s *ScheduledStore) UpsertUserSchedule(ctx context.Context, userID, schedul occurrence = result.Occurrence } + // Assignments are keyed by their own id: a new id inserts a fresh instance, + // an existing id updates it. The ON CONFLICT guard ensures a supplied id + // cannot be used to overwrite a different subject's or schedule's assignment. stmt := ` - INSERT INTO user_schedules (user_id, schedule_id, scheduled_at, start_at, anchor_at, interval, occurrence, data) - VALUES ($1, $2, $3, $4, $5, $6, $7, $8) - ON CONFLICT (user_id, schedule_id) DO UPDATE SET + INSERT INTO user_schedules (id, user_id, schedule_id, scheduled_at, start_at, anchor_at, interval, occurrence, data) + VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) + ON CONFLICT (id) DO UPDATE SET scheduled_at = COALESCE(EXCLUDED.scheduled_at, user_schedules.scheduled_at), start_at = COALESCE(EXCLUDED.start_at, user_schedules.start_at), anchor_at = COALESCE(EXCLUDED.anchor_at, user_schedules.anchor_at), interval = COALESCE(EXCLUDED.interval, user_schedules.interval), occurrence = COALESCE(EXCLUDED.occurrence, user_schedules.occurrence), data = COALESCE(EXCLUDED.data, user_schedules.data) + WHERE user_schedules.user_id = EXCLUDED.user_id AND user_schedules.schedule_id = EXCLUDED.schedule_id RETURNING id, user_id, schedule_id, scheduled_at, start_at, anchor_at, interval, occurrence, COALESCE(data, '{}'::jsonb) AS data, paused_at, created_at, updated_at` var us UserSchedule - err := s.db.GetContext(ctx, &us, stmt, userID, scheduleID, scheduledAt, startAt, anchorAt, interval, occurrence, data) + err := s.db.GetContext(ctx, &us, stmt, id, userID, scheduleID, scheduledAt, startAt, anchorAt, interval, occurrence, data) + if errors.Is(err, store.ErrNoRows) { + // The id exists but its (user, schedule) did not satisfy the guard. + return nil, ErrScheduleOwnershipMismatch + } if err != nil { return nil, err } @@ -1085,7 +1107,13 @@ func (s *ScheduledStore) UpdateOrganizationSchedule(ctx context.Context, id uuid // UpsertOrganizationSchedule inserts a new organization schedule or updates the // existing one for the given (organizationID, scheduleID) pair using ON CONFLICT. // After the upsert it recomputes pending scheduled events. -func (s *ScheduledStore) UpsertOrganizationSchedule(ctx context.Context, organizationID, scheduleID uuid.UUID, scheduledAt *time.Time, startAt *time.Time, interval *string, data json.RawMessage) (*OrganizationSchedule, error) { +func (s *ScheduledStore) UpsertOrganizationSchedule(ctx context.Context, id, organizationID, scheduleID uuid.UUID, scheduledAt *time.Time, startAt *time.Time, interval *string, data json.RawMessage) (*OrganizationSchedule, error) { + // A nil id means "create a new assignment"; mint one so the row is + // addressable by the caller afterwards. + if id == uuid.Nil { + id = uuid.New() + } + // For recurring schedules, anchor_at starts equal to start_at. anchorAt := startAt @@ -1101,20 +1129,28 @@ func (s *ScheduledStore) UpsertOrganizationSchedule(ctx context.Context, organiz occurrence = result.Occurrence } + // Assignments are keyed by their own id: a new id inserts a fresh instance, + // an existing id updates it. The ON CONFLICT guard ensures a supplied id + // cannot be used to overwrite a different subject's or schedule's assignment. stmt := ` - INSERT INTO organization_schedules (organization_id, schedule_id, scheduled_at, start_at, anchor_at, interval, occurrence, data) - VALUES ($1, $2, $3, $4, $5, $6, $7, $8) - ON CONFLICT (organization_id, schedule_id) DO UPDATE SET + INSERT INTO organization_schedules (id, organization_id, schedule_id, scheduled_at, start_at, anchor_at, interval, occurrence, data) + VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) + ON CONFLICT (id) DO UPDATE SET scheduled_at = COALESCE(EXCLUDED.scheduled_at, organization_schedules.scheduled_at), start_at = COALESCE(EXCLUDED.start_at, organization_schedules.start_at), anchor_at = COALESCE(EXCLUDED.anchor_at, organization_schedules.anchor_at), interval = COALESCE(EXCLUDED.interval, organization_schedules.interval), occurrence = COALESCE(EXCLUDED.occurrence, organization_schedules.occurrence), data = COALESCE(EXCLUDED.data, organization_schedules.data) + WHERE organization_schedules.organization_id = EXCLUDED.organization_id AND organization_schedules.schedule_id = EXCLUDED.schedule_id RETURNING id, organization_id, schedule_id, scheduled_at, start_at, anchor_at, interval, occurrence, COALESCE(data, '{}'::jsonb) AS data, paused_at, created_at, updated_at` var os OrganizationSchedule - err := s.db.GetContext(ctx, &os, stmt, organizationID, scheduleID, scheduledAt, startAt, anchorAt, interval, occurrence, data) + err := s.db.GetContext(ctx, &os, stmt, id, organizationID, scheduleID, scheduledAt, startAt, anchorAt, interval, occurrence, data) + if errors.Is(err, store.ErrNoRows) { + // The id exists but its (organization, schedule) did not satisfy the guard. + return nil, ErrScheduleOwnershipMismatch + } if err != nil { return nil, err } diff --git a/internal/store/subjects/scheduled_test.go b/internal/store/subjects/scheduled_test.go index cbc0dc01..3d636ce6 100644 --- a/internal/store/subjects/scheduled_test.go +++ b/internal/store/subjects/scheduled_test.go @@ -589,18 +589,68 @@ func TestUpsertUserSchedule(t *testing.T) { require.NoError(t, err) time1 := time.Now().Add(24 * time.Hour).UTC().Truncate(time.Microsecond) - us1, err := db.UpsertUserSchedule(ctx, userID, scheduleID, &time1, nil, nil, json.RawMessage(`{"v":1}`)) + us1, err := db.UpsertUserSchedule(ctx, uuid.Nil, userID, scheduleID, &time1, nil, nil, json.RawMessage(`{"v":1}`)) require.NoError(t, err) + // Re-upserting with the same assignment id updates that row in place. time2 := time.Now().Add(48 * time.Hour).UTC().Truncate(time.Microsecond) - us2, err := db.UpsertUserSchedule(ctx, userID, scheduleID, &time2, nil, nil, json.RawMessage(`{"v":2}`)) + us2, err := db.UpsertUserSchedule(ctx, us1.ID, userID, scheduleID, &time2, nil, nil, json.RawMessage(`{"v":2}`)) require.NoError(t, err) - // Same user + schedule = same user_schedule row require.Equal(t, us1.ID, us2.ID) require.WithinDuration(t, time2, *us2.ScheduledAt, time.Second) } +func TestUpsertUserScheduleCreatesDistinctInstances(t *testing.T) { + t.Parallel() + + db := NewContainerStore(t) + projectID := uuid.New() + ctx := context.Background() + + userID := createTestUserForSchedules(t, db, ctx, projectID) + scheduleID, err := db.UpsertSchedule(ctx, projectID, "multi_instance", "single") + require.NoError(t, err) + + // Two upserts without an id create two distinct assignments for the same + // (user, schedule) — the same name can now be scheduled multiple times. + time1 := time.Now().Add(24 * time.Hour).UTC().Truncate(time.Microsecond) + us1, err := db.UpsertUserSchedule(ctx, uuid.Nil, userID, scheduleID, &time1, nil, nil, json.RawMessage(`{"v":1}`)) + require.NoError(t, err) + + time2 := time.Now().Add(48 * time.Hour).UTC().Truncate(time.Microsecond) + us2, err := db.UpsertUserSchedule(ctx, uuid.Nil, userID, scheduleID, &time2, nil, nil, json.RawMessage(`{"v":2}`)) + require.NoError(t, err) + + require.NotEqual(t, us1.ID, us2.ID) + + all, err := db.ListUserSchedulesByScheduleID(ctx, userID, scheduleID) + require.NoError(t, err) + require.Len(t, all, 2) +} + +func TestUpsertUserScheduleOwnershipMismatch(t *testing.T) { + t.Parallel() + + db := NewContainerStore(t) + projectID := uuid.New() + ctx := context.Background() + + userA := createTestUserForSchedules(t, db, ctx, projectID) + userB := createTestUserForSchedules(t, db, ctx, projectID) + scheduleID, err := db.UpsertSchedule(ctx, projectID, "ownership", "single") + require.NoError(t, err) + + at := time.Now().Add(24 * time.Hour).UTC().Truncate(time.Microsecond) + owned, err := db.UpsertUserSchedule(ctx, uuid.Nil, userA, scheduleID, &at, nil, nil, json.RawMessage(`{}`)) + require.NoError(t, err) + + // Re-using userA's assignment id under a different user must be rejected + // rather than silently rewriting userA's row. + _, err = db.UpsertUserSchedule(ctx, owned.ID, userB, scheduleID, &at, nil, nil, json.RawMessage(`{}`)) + require.ErrorIs(t, err, ErrScheduleOwnershipMismatch) +} + func TestListUserSchedules(t *testing.T) { t.Parallel() @@ -1141,14 +1191,14 @@ func TestUpsertOrganizationSchedule(t *testing.T) { require.NoError(t, err) time1 := time.Now().Add(24 * time.Hour).UTC().Truncate(time.Microsecond) - os1, err := db.UpsertOrganizationSchedule(ctx, orgID, scheduleID, &time1, nil, nil, json.RawMessage(`{"v":1}`)) + os1, err := db.UpsertOrganizationSchedule(ctx, uuid.Nil, orgID, scheduleID, &time1, nil, nil, json.RawMessage(`{"v":1}`)) require.NoError(t, err) + // Re-upserting with the same assignment id updates that row in place. time2 := time.Now().Add(48 * time.Hour).UTC().Truncate(time.Microsecond) - os2, err := db.UpsertOrganizationSchedule(ctx, orgID, scheduleID, &time2, nil, nil, json.RawMessage(`{"v":2}`)) + os2, err := db.UpsertOrganizationSchedule(ctx, os1.ID, orgID, scheduleID, &time2, nil, nil, json.RawMessage(`{"v":2}`)) require.NoError(t, err) - // Same org + schedule = same row require.Equal(t, os1.ID, os2.ID) require.WithinDuration(t, time2, *os2.ScheduledAt, time.Second) } @@ -1745,14 +1795,14 @@ func TestUpsertUserScheduleRecurring(t *testing.T) { startAt := time.Now().Add(-14 * 24 * time.Hour).UTC().Truncate(time.Microsecond) interval := "7 days" - us, err := db.UpsertUserSchedule(ctx, userID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{}`)) + us, err := db.UpsertUserSchedule(ctx, uuid.Nil, userID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{}`)) require.NoError(t, err) require.NotNil(t, us.ScheduledAt) require.True(t, us.ScheduledAt.After(time.Now())) require.Greater(t, us.Occurrence, 0) - // Upsert again with different data – same row - us2, err := db.UpsertUserSchedule(ctx, userID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{"updated":true}`)) + // Upsert again with the same id and different data – same row + us2, err := db.UpsertUserSchedule(ctx, us.ID, userID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{"updated":true}`)) require.NoError(t, err) require.Equal(t, us.ID, us2.ID) } @@ -1771,13 +1821,13 @@ func TestUpsertOrganizationScheduleRecurring(t *testing.T) { startAt := time.Now().Add(-14 * 24 * time.Hour).UTC().Truncate(time.Microsecond) interval := "7 days" - os, err := db.UpsertOrganizationSchedule(ctx, orgID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{}`)) + os, err := db.UpsertOrganizationSchedule(ctx, uuid.Nil, orgID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{}`)) require.NoError(t, err) require.NotNil(t, os.ScheduledAt) require.True(t, os.ScheduledAt.After(time.Now())) require.Greater(t, os.Occurrence, 0) - os2, err := db.UpsertOrganizationSchedule(ctx, orgID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{"updated":true}`)) + os2, err := db.UpsertOrganizationSchedule(ctx, os.ID, orgID, scheduleID, nil, &startAt, &interval, json.RawMessage(`{"updated":true}`)) require.NoError(t, err) require.Equal(t, os.ID, os2.ID) } From 802c2de78d8f1df6e7f1442214e3fa061cc62bea Mon Sep 17 00:00:00 2001 From: Jeroen Rinzema Date: Mon, 29 Jun 2026 23:08:28 +0200 Subject: [PATCH 2/5] feat(scheduled): journeys schedule a new instance per entry; client delete-by-id Follow-up to the id-based assignment change: - Journey schedule steps now create a NEW assignment per journey entry (a user's pass through the journey), so re-entering schedules an additional instance. The id is derived from (journey_entry_id, step_id) so a redelivered/retried step message stays idempotent instead of duplicating. - Client API delete now accepts an optional id to remove a single assignment (ownership-checked); without an id it still deletes every assignment by name. name is now optional (either id or name required); regenerated client oapi. --- .../controllers/v1/client/oapi/resources.yml | 21 +++-- .../v1/client/oapi/resources_gen.go | 14 +++- .../http/controllers/v1/client/scheduled.go | 82 +++++++++++++++++-- internal/journeys/schedule.go | 14 ++-- internal/journeys/schedule_test.go | 58 +++++++++++++ 5 files changed, 165 insertions(+), 24 deletions(-) diff --git a/internal/http/controllers/v1/client/oapi/resources.yml b/internal/http/controllers/v1/client/oapi/resources.yml index 117dd0ff..57e64124 100644 --- a/internal/http/controllers/v1/client/oapi/resources.yml +++ b/internal/http/controllers/v1/client/oapi/resources.yml @@ -1732,13 +1732,18 @@ components: DeleteUserScheduledRequest: type: object - required: - - name properties: + id: + type: string + format: uuid + nullable: true + example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" + description: The id of a specific schedule assignment to delete. When provided, only that instance is removed. Either id or name is required. name: type: string + nullable: true example: "renewal_date" - description: The name of the scheduled resource to delete + description: The name of the scheduled resource to delete. When provided (and id is omitted), every assignment with this name for the user is removed. Either id or name is required. identifier: $ref: "#/components/schemas/UserIdentifier" @@ -1773,13 +1778,19 @@ components: DeleteOrganizationScheduledRequest: type: object required: - - name - identifier properties: + id: + type: string + format: uuid + nullable: true + example: "a1b2c3d4-e5f6-7890-abcd-ef1234567890" + description: The id of a specific schedule assignment to delete. When provided, only that instance is removed. Either id or name is required. name: type: string + nullable: true example: "contract_renewal" - description: The name of the scheduled resource to delete + description: The name of the scheduled resource to delete. When provided (and id is omitted), every assignment with this name for the organization is removed. Either id or name is required. identifier: $ref: "#/components/schemas/OrganizationIdentifier" diff --git a/internal/http/controllers/v1/client/oapi/resources_gen.go b/internal/http/controllers/v1/client/oapi/resources_gen.go index bbba0aac..062132f7 100644 --- a/internal/http/controllers/v1/client/oapi/resources_gen.go +++ b/internal/http/controllers/v1/client/oapi/resources_gen.go @@ -69,11 +69,14 @@ type DeleteOrganizationRequest struct { // DeleteOrganizationScheduledRequest defines model for DeleteOrganizationScheduledRequest. type DeleteOrganizationScheduledRequest struct { + // Id The id of a specific schedule assignment to delete. When provided, only that instance is removed. Either id or name is required. + Id *openapi_types.UUID `json:"id"` + // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` - // Name The name of the scheduled resource to delete - Name string `json:"name"` + // Name The name of the scheduled resource to delete. When provided (and id is omitted), every assignment with this name for the organization is removed. Either id or name is required. + Name *string `json:"name"` } // DeleteUserRequest defines model for DeleteUserRequest. @@ -84,11 +87,14 @@ type DeleteUserRequest struct { // DeleteUserScheduledRequest defines model for DeleteUserScheduledRequest. type DeleteUserScheduledRequest struct { + // Id The id of a specific schedule assignment to delete. When provided, only that instance is removed. Either id or name is required. + Id *openapi_types.UUID `json:"id"` + // Identifier One or more external identifiers to identify the user Identifier *UserIdentifier `json:"identifier,omitempty"` - // Name The name of the scheduled resource to delete - Name string `json:"name"` + // Name The name of the scheduled resource to delete. When provided (and id is omitted), every assignment with this name for the user is removed. Either id or name is required. + Name *string `json:"name"` } // DeviceRegistration defines model for DeviceRegistration. diff --git a/internal/http/controllers/v1/client/scheduled.go b/internal/http/controllers/v1/client/scheduled.go index 44b034c3..05e696e9 100644 --- a/internal/http/controllers/v1/client/scheduled.go +++ b/internal/http/controllers/v1/client/scheduled.go @@ -148,7 +148,7 @@ func (srv *ScheduledController) DeleteUserScheduledClient(w http.ResponseWriter, return } - logger := srv.logger.With(zap.Stringer("project_id", projectID), zap.String("scheduled_name", req.Name)) + logger := srv.logger.With(zap.Stringer("project_id", projectID)) logger.Info("deleting user scheduled") userID, err := srv.users.LookupUserID(ctx, projectID, auth.BoundUserIdentifiers(ctx, oapi.ToParams(*req.Identifier))) @@ -163,7 +163,41 @@ func (srv *ScheduledController) DeleteUserScheduledClient(w http.ResponseWriter, return } - schedule, err := srv.users.GetScheduleByName(ctx, projectID, req.Name) + // Delete a single assignment by id when provided (after verifying it belongs + // to the resolved user); otherwise delete every assignment with the given name. + if req.Id != nil { + existing, err := srv.users.GetUserScheduleByID(ctx, *req.Id) + if errors.Is(err, sql.ErrNoRows) { + logger.Info("scheduled instance not found") + oapi.WriteProblem(w, problem.ErrNotFound(problem.Describe("scheduled instance not found"))) + return + } + if err != nil { + logger.Error("failed to get user schedule by id", zap.Error(err)) + oapi.WriteProblem(w, problem.ErrInternal()) + return + } + if existing.UserID != userID { + logger.Warn("scheduled instance does not belong to user") + oapi.WriteProblem(w, problem.ErrNotFound(problem.Describe("scheduled instance not found"))) + return + } + if err := srv.users.DeleteUserSchedule(ctx, *req.Id); err != nil { + logger.Error("failed to delete user schedule", zap.Error(err)) + oapi.WriteProblem(w, problem.ErrInternal()) + return + } + logger.Info("user scheduled instance deleted") + w.WriteHeader(http.StatusOK) + return + } + + if req.Name == nil || *req.Name == "" { + oapi.WriteProblem(w, problem.ErrBadRequest(problem.Describe("either id or name is required"))) + return + } + + schedule, err := srv.users.GetScheduleByName(ctx, projectID, *req.Name) if errors.Is(err, sql.ErrNoRows) { logger.Info("schedule not found") oapi.WriteProblem(w, problem.ErrNotFound(problem.Describe("schedule not found"))) @@ -175,8 +209,7 @@ func (srv *ScheduledController) DeleteUserScheduledClient(w http.ResponseWriter, return } - err = srv.users.DeleteUserScheduleByScheduleID(ctx, userID, schedule.ID) - if err != nil { + if err := srv.users.DeleteUserScheduleByScheduleID(ctx, userID, schedule.ID); err != nil { logger.Error("failed to delete user schedule", zap.Error(err)) oapi.WriteProblem(w, problem.ErrInternal()) return @@ -320,7 +353,7 @@ func (srv *ScheduledController) DeleteOrganizationScheduledClient(w http.Respons return } - logger := srv.logger.With(zap.Stringer("project_id", projectID), zap.String("scheduled_name", req.Name)) + logger := srv.logger.With(zap.Stringer("project_id", projectID)) logger.Info("deleting organization scheduled") orgID, err := srv.users.LookupOrganizationID(ctx, projectID, oapi.ToParams(req.Identifier)) @@ -335,7 +368,41 @@ func (srv *ScheduledController) DeleteOrganizationScheduledClient(w http.Respons return } - schedule, err := srv.users.GetScheduleByName(ctx, projectID, req.Name) + // Delete a single assignment by id when provided (after verifying it belongs + // to the resolved organization); otherwise delete every assignment with the name. + if req.Id != nil { + existing, err := srv.users.GetOrganizationScheduleByID(ctx, *req.Id) + if errors.Is(err, sql.ErrNoRows) { + logger.Info("scheduled instance not found") + oapi.WriteProblem(w, problem.ErrNotFound(problem.Describe("scheduled instance not found"))) + return + } + if err != nil { + logger.Error("failed to get organization schedule by id", zap.Error(err)) + oapi.WriteProblem(w, problem.ErrInternal()) + return + } + if existing.OrganizationID != orgID { + logger.Warn("scheduled instance does not belong to organization") + oapi.WriteProblem(w, problem.ErrNotFound(problem.Describe("scheduled instance not found"))) + return + } + if err := srv.users.DeleteOrganizationSchedule(ctx, *req.Id); err != nil { + logger.Error("failed to delete organization schedule", zap.Error(err)) + oapi.WriteProblem(w, problem.ErrInternal()) + return + } + logger.Info("organization scheduled instance deleted") + w.WriteHeader(http.StatusOK) + return + } + + if req.Name == nil || *req.Name == "" { + oapi.WriteProblem(w, problem.ErrBadRequest(problem.Describe("either id or name is required"))) + return + } + + schedule, err := srv.users.GetScheduleByName(ctx, projectID, *req.Name) if errors.Is(err, sql.ErrNoRows) { logger.Info("schedule not found") oapi.WriteProblem(w, problem.ErrNotFound(problem.Describe("schedule not found"))) @@ -347,8 +414,7 @@ func (srv *ScheduledController) DeleteOrganizationScheduledClient(w http.Respons return } - err = srv.users.DeleteOrganizationScheduleByScheduleID(ctx, orgID, schedule.ID) - if err != nil { + if err := srv.users.DeleteOrganizationScheduleByScheduleID(ctx, orgID, schedule.ID); err != nil { logger.Error("failed to delete organization schedule", zap.Error(err)) oapi.WriteProblem(w, problem.ErrInternal()) return diff --git a/internal/journeys/schedule.go b/internal/journeys/schedule.go index e78b12f3..6cd6e5bb 100644 --- a/internal/journeys/schedule.go +++ b/internal/journeys/schedule.go @@ -14,7 +14,7 @@ import ( ) // scheduleAssignmentNamespace is a fixed namespace for deriving deterministic -// schedule-assignment ids from (user, schedule) in journey steps. +// schedule-assignment ids from (journey entry, step) in journey steps. var scheduleAssignmentNamespace = uuid.MustParse("8e0f6a2c-3b4d-5e6f-7a8b-9c0d1e2f3a4b") func HandleSchedule(ctx HandlerContext, step journey.JourneyVersionStep, state journey.JourneyUserState) (journey.JourneyUserState, journey.JourneyVersionStepChildren, error) { @@ -92,12 +92,12 @@ func HandleSchedule(ctx HandlerContext, step journey.JourneyVersionStep, state j data = json.RawMessage(rendered) } - // Journey placements stay idempotent per (user, schedule): a deterministic - // assignment id means re-running this step (e.g. on retry or journey - // re-entry) updates the same assignment rather than creating duplicates, - // preserving the behaviour from before assignments became individually - // addressable. - assignmentID := uuid.NewSHA1(scheduleAssignmentNamespace, append(ctx.UserID[:], scheduleID[:]...)) + // Each journey entry (one pass of a user through the journey) schedules its + // own instance, so re-entering the journey creates an additional schedule. + // The id is derived deterministically from (journey entry, step) rather than + // minted randomly so that a redelivered/retried step message updates the same + // instance instead of duplicating it. + assignmentID := uuid.NewSHA1(scheduleAssignmentNamespace, append(state.JourneyEntryID[:], step.ID[:]...)) userSchedule, err := scheduledStore.UpsertUserSchedule(ctx, assignmentID, ctx.UserID, scheduleID, scheduledAt, startAt, interval, data) if err != nil { diff --git a/internal/journeys/schedule_test.go b/internal/journeys/schedule_test.go index 339dc2d2..8e43032b 100644 --- a/internal/journeys/schedule_test.go +++ b/internal/journeys/schedule_test.go @@ -231,3 +231,61 @@ func TestHandleSchedule(t *testing.T) { }) } } + +func TestHandleScheduleMultipleEntries(t *testing.T) { + t.Parallel() + + _, usersState, dbConn := setupStore(t) + pub := pubsub.NewNoopPublisher() + ctx := context.Background() + projectID := uuid.New() + + userID, err := usersState.CreateUser(ctx, projectID, nil, nil, json.RawMessage(`{}`), nil, nil, []subjects.ExternalIDParam{ + {Source: "anonymous", ExternalID: "anon_" + uuid.New().String()}, + }) + require.NoError(t, err) + + step := journey.JourneyVersionStep{ + ID: uuid.New(), + Type: ScheduleStepType, + Data: json.RawMessage(`{"schedule_name":"reentry_reminder","scheduled_at":"2030-01-01T00:00:00Z"}`), + Children: []journey.JourneyVersionStepChild{ + {ChildExternalID: "next-step"}, + }, + } + + run := func(entryID uuid.UUID) { + hctx := HandlerContext{ + Context: ctx, + DB: dbConn, + Publisher: pub, + ProjectID: projectID, + UserID: userID, + Data: map[string]any{}, + } + _, _, runErr := HandleSchedule(hctx, step, journey.JourneyUserState{JourneyEntryID: entryID}) + require.NoError(t, runErr) + } + + scheduledStore := subjects.NewScheduledStore(dbConn, zap.NewNop()) + + entry1 := uuid.New() + run(entry1) + // A redelivered/retried step message within the same journey entry must not + // duplicate the assignment. + run(entry1) + + schedule, err := scheduledStore.GetScheduleByName(ctx, projectID, "reentry_reminder") + require.NoError(t, err) + + afterFirst, err := scheduledStore.ListUserSchedulesByScheduleID(ctx, userID, schedule.ID) + require.NoError(t, err) + require.Len(t, afterFirst, 1, "same journey entry must not duplicate the assignment") + + // A second journey entry schedules an additional instance with the same name. + run(uuid.New()) + + afterSecond, err := scheduledStore.ListUserSchedulesByScheduleID(ctx, userID, schedule.ID) + require.NoError(t, err) + require.Len(t, afterSecond, 2, "a new journey entry must create an additional assignment") +} From b50e5b4be8a77c8d834d7b0cd17409000833ecf9 Mon Sep 17 00:00:00 2001 From: Jeroen Rinzema Date: Mon, 29 Jun 2026 23:12:46 +0200 Subject: [PATCH 3/5] fix(scheduled): regenerate oapi with pinned oapi-codegen v2.7.0 The generated files were produced with v2.5.1 locally, which diverges from the CI-pinned v2.7.0 and broke the generate check. Regenerated with v2.7.0; the diff vs main is now scoped to the new schedule id fields only. --- .../v1/client/oapi/resources_gen.go | 1223 ++-- .../v1/management/oapi/resources_gen.go | 6356 ++++++++++++----- 2 files changed, 5187 insertions(+), 2392 deletions(-) diff --git a/internal/http/controllers/v1/client/oapi/resources_gen.go b/internal/http/controllers/v1/client/oapi/resources_gen.go index 062132f7..eb98cdd3 100644 --- a/internal/http/controllers/v1/client/oapi/resources_gen.go +++ b/internal/http/controllers/v1/client/oapi/resources_gen.go @@ -1,12 +1,13 @@ // Package oapi provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT. package oapi import ( "bytes" "context" "encoding/json" + "errors" "fmt" "io" "net/http" @@ -20,7 +21,7 @@ import ( ) const ( - HttpBearerAuthScopes = "HttpBearerAuth.Scopes" + HttpBearerAuthScopes httpBearerAuthContextKey = "HttpBearerAuth.Scopes" ) // Defines values for Channel. @@ -31,6 +32,22 @@ const ( Sms Channel = "sms" ) +// Valid indicates whether the value is a known member of the Channel enum. +func (e Channel) Valid() bool { + switch e { + case Email: + return true + case Inbox: + return true + case Push: + return true + case Sms: + return true + default: + return false + } +} + // Defines values for DeviceRegistrationOs. const ( Android DeviceRegistrationOs = "android" @@ -38,6 +55,20 @@ const ( Web DeviceRegistrationOs = "web" ) +// Valid indicates whether the value is a known member of the DeviceRegistrationOs enum. +func (e DeviceRegistrationOs) Valid() bool { + switch e { + case Android: + return true + case Ios: + return true + case Web: + return true + default: + return false + } +} + // Defines values for GetOrganizationInboxParamsStatus. const ( GetOrganizationInboxParamsStatusArchived GetOrganizationInboxParamsStatus = "archived" @@ -45,6 +76,20 @@ const ( GetOrganizationInboxParamsStatusUnread GetOrganizationInboxParamsStatus = "unread" ) +// Valid indicates whether the value is a known member of the GetOrganizationInboxParamsStatus enum. +func (e GetOrganizationInboxParamsStatus) Valid() bool { + switch e { + case GetOrganizationInboxParamsStatusArchived: + return true + case GetOrganizationInboxParamsStatusRead: + return true + case GetOrganizationInboxParamsStatusUnread: + return true + default: + return false + } +} + // Defines values for GetUserInboxParamsStatus. const ( GetUserInboxParamsStatusArchived GetUserInboxParamsStatus = "archived" @@ -52,6 +97,20 @@ const ( GetUserInboxParamsStatusUnread GetUserInboxParamsStatus = "unread" ) +// Valid indicates whether the value is a known member of the GetUserInboxParamsStatus enum. +func (e GetUserInboxParamsStatus) Valid() bool { + switch e { + case GetUserInboxParamsStatusArchived: + return true + case GetUserInboxParamsStatusRead: + return true + case GetUserInboxParamsStatusUnread: + return true + default: + return false + } +} + // Channel defines model for Channel. type Channel string @@ -70,13 +129,13 @@ type DeleteOrganizationRequest struct { // DeleteOrganizationScheduledRequest defines model for DeleteOrganizationScheduledRequest. type DeleteOrganizationScheduledRequest struct { // Id The id of a specific schedule assignment to delete. When provided, only that instance is removed. Either id or name is required. - Id *openapi_types.UUID `json:"id"` + Id *openapi_types.UUID `json:"id,omitempty"` // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` // Name The name of the scheduled resource to delete. When provided (and id is omitted), every assignment with this name for the organization is removed. Either id or name is required. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` } // DeleteUserRequest defines model for DeleteUserRequest. @@ -88,13 +147,13 @@ type DeleteUserRequest struct { // DeleteUserScheduledRequest defines model for DeleteUserScheduledRequest. type DeleteUserScheduledRequest struct { // Id The id of a specific schedule assignment to delete. When provided, only that instance is removed. Either id or name is required. - Id *openapi_types.UUID `json:"id"` + Id *openapi_types.UUID `json:"id,omitempty"` // Identifier One or more external identifiers to identify the user Identifier *UserIdentifier `json:"identifier,omitempty"` // Name The name of the scheduled resource to delete. When provided (and id is omitted), every assignment with this name for the user is removed. Either id or name is required. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` } // DeviceRegistration defines model for DeviceRegistration. @@ -112,7 +171,7 @@ type DeviceRegistration struct { // Token Device token for FCM or APNs Token *string `json:"token,omitempty"` } `json:"config"` - Data *json.RawMessage `json:"data"` + Data *json.RawMessage `json:"data,omitempty"` DeviceId string `json:"device_id"` // Identifier One or more external identifiers to identify the user @@ -134,7 +193,7 @@ type Event struct { Identifier *UserIdentifier `json:"identifier,omitempty"` // Match JSONB containment filter to match users by their data attributes. Mutually exclusive with identifier. When set, the event is delivered to every user whose data column contains the given key/value pairs. - Match *map[string]any `json:"match"` + Match *map[string]any `json:"match,omitempty"` // Name The name of the event Name string `json:"name"` @@ -146,7 +205,7 @@ type ExternalID struct { ExternalId string `json:"external_id"` // Metadata Optional metadata associated with this identifier - Metadata *map[string]any `json:"metadata"` + Metadata *map[string]any `json:"metadata,omitempty"` // Source Source of the identifier (e.g. "default", "anonymous", or a custom source). Defaults to "default" if not provided. Source *string `json:"source,omitempty"` @@ -157,7 +216,7 @@ type ExternalIDResponse struct { CreatedAt time.Time `json:"created_at"` ExternalId string `json:"external_id"` Id openapi_types.UUID `json:"id"` - Metadata *map[string]any `json:"metadata"` + Metadata *map[string]any `json:"metadata,omitempty"` Source string `json:"source"` UpdatedAt time.Time `json:"updated_at"` } @@ -165,16 +224,16 @@ type ExternalIDResponse struct { // IdentifyRequest defines model for IdentifyRequest. type IdentifyRequest struct { // Data User-specific attributes - Data *map[string]any `json:"data"` - Email *string `json:"email"` + Data *map[string]any `json:"data,omitempty"` + Email *string `json:"email,omitempty"` // Identifier One or more external identifiers to identify the user Identifier UserIdentifier `json:"identifier"` - Locale *string `json:"locale"` + Locale *string `json:"locale,omitempty"` // Phone E.164 formatted phone number - Phone *string `json:"phone"` - Timezone *string `json:"timezone"` + Phone *string `json:"phone,omitempty"` + Timezone *string `json:"timezone,omitempty"` } // InboxCount defines model for InboxCount. @@ -185,26 +244,26 @@ type InboxCount struct { // InboxMessage defines model for InboxMessage. type InboxMessage struct { - ArchivedAt *time.Time `json:"archived_at"` - BroadcastId *openapi_types.UUID `json:"broadcast_id"` - CampaignId *openapi_types.UUID `json:"campaign_id"` + ArchivedAt *time.Time `json:"archived_at,omitempty"` + BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` + CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` Channel Channel `json:"channel"` Content json.RawMessage `json:"content"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` - ExpiresAt *time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at,omitempty"` // ExternalId External identifier for the message, if one was provided at creation time. - ExternalId *string `json:"external_id"` + ExternalId *string `json:"external_id,omitempty"` Id openapi_types.UUID `json:"id"` OrganizationId *openapi_types.UUID `json:"organization_id,omitempty"` Priority int16 `json:"priority"` ProjectId openapi_types.UUID `json:"project_id"` - ReadAt *time.Time `json:"read_at"` + ReadAt *time.Time `json:"read_at,omitempty"` ScheduledAt time.Time `json:"scheduled_at"` - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` - SentAt *time.Time `json:"sent_at"` - Source *string `json:"source"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + SentAt *time.Time `json:"sent_at,omitempty"` + Source *string `json:"source,omitempty"` Tags []string `json:"tags"` UpdatedAt time.Time `json:"updated_at"` UserId *openapi_types.UUID `json:"user_id,omitempty"` @@ -212,23 +271,23 @@ type InboxMessage struct { // InboxMessageCreate defines model for InboxMessageCreate. type InboxMessageCreate struct { - BroadcastId *openapi_types.UUID `json:"broadcast_id"` - CampaignId *openapi_types.UUID `json:"campaign_id"` + BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` + CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` Channel Channel `json:"channel"` // Content Channel-specific payload content. - Content *json.RawMessage `json:"content"` - Data *map[string]any `json:"data"` - ExpiresAt *time.Time `json:"expires_at"` + Content *json.RawMessage `json:"content,omitempty"` + Data *map[string]any `json:"data,omitempty"` + ExpiresAt *time.Time `json:"expires_at,omitempty"` // Identifier An external identifier with source and optional metadata Identifier ExternalID `json:"identifier"` Priority *int16 `json:"priority,omitempty"` - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` // SenderIdentityId Required for email and sms messages. Push uses project push provider settings. - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` - Source *string `json:"source"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + Source *string `json:"source,omitempty"` Tags *[]string `json:"tags,omitempty"` // Target One or more external identifiers to identify the user @@ -260,13 +319,13 @@ type Organization struct { // OrganizationEvent defines model for OrganizationEvent. type OrganizationEvent struct { // Data Event-specific data - Data *map[string]any `json:"data"` + Data *map[string]any `json:"data,omitempty"` // Identifier One or more external identifiers to identify the organization Identifier *OrganizationIdentifier `json:"identifier,omitempty"` // Match JSONB containment filter to match organizations by their data attributes. Mutually exclusive with identifier. When set, the event is delivered to every organization whose data column contains the given key/value pairs. - Match *map[string]any `json:"match"` + Match *map[string]any `json:"match,omitempty"` // Name The name of the event Name string `json:"name"` @@ -277,23 +336,23 @@ type OrganizationIdentifier = []ExternalID // OrganizationInboxMessageCreate defines model for OrganizationInboxMessageCreate. type OrganizationInboxMessageCreate struct { - BroadcastId *openapi_types.UUID `json:"broadcast_id"` - CampaignId *openapi_types.UUID `json:"campaign_id"` + BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` + CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` Channel Channel `json:"channel"` // Content Channel-specific payload content. - Content *json.RawMessage `json:"content"` - Data *map[string]any `json:"data"` - ExpiresAt *time.Time `json:"expires_at"` + Content *json.RawMessage `json:"content,omitempty"` + Data *map[string]any `json:"data,omitempty"` + ExpiresAt *time.Time `json:"expires_at,omitempty"` // Identifier An external identifier with source and optional metadata Identifier ExternalID `json:"identifier"` Priority *int16 `json:"priority,omitempty"` - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` // SenderIdentityId Required for email and sms messages. Push uses project push provider settings. - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` - Source *string `json:"source"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + Source *string `json:"source,omitempty"` Tags *[]string `json:"tags,omitempty"` // Target One or more external identifiers to identify the organization @@ -313,17 +372,17 @@ type OrganizationInboxMessageRef struct { // OrganizationRequest defines model for OrganizationRequest. type OrganizationRequest struct { - Data *map[string]any `json:"data"` + Data *map[string]any `json:"data,omitempty"` // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` - Name *string `json:"name"` + Name *string `json:"name,omitempty"` } // OrganizationUserRequest defines model for OrganizationUserRequest. type OrganizationUserRequest struct { // Data Organization-specific data for this user - Data *map[string]any `json:"data"` + Data *map[string]any `json:"data,omitempty"` Organization struct { // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` @@ -370,7 +429,7 @@ type RemoveOrganizationUserRequest struct { // ScheduledAccepted defines model for ScheduledAccepted. type ScheduledAccepted struct { // Data Scheduled resource data - Data *map[string]any `json:"data"` + Data *map[string]any `json:"data,omitempty"` // Id The unique identifier for the scheduled instance Id openapi_types.UUID `json:"id"` @@ -393,49 +452,49 @@ type SessionToken struct { // UpsertOrganizationScheduledRequest defines model for UpsertOrganizationScheduledRequest. type UpsertOrganizationScheduledRequest struct { // Data Scheduled resource data - Data *map[string]any `json:"data"` + Data *map[string]any `json:"data,omitempty"` // Id The id of the schedule assignment. Omit to create a new assignment (multiple assignments may share the same name per organization); supply an existing id to update that assignment in place. The id is returned in the response. - Id *openapi_types.UUID `json:"id"` + Id *openapi_types.UUID `json:"id,omitempty"` // Identifier One or more external identifiers to identify the organization Identifier OrganizationIdentifier `json:"identifier"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval"` + Interval *string `json:"interval,omitempty"` // Name The name of the scheduled resource Name string `json:"name"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at"` + StartAt *time.Time `json:"start_at,omitempty"` } // UpsertUserScheduledRequest defines model for UpsertUserScheduledRequest. type UpsertUserScheduledRequest struct { // Data Scheduled resource data - Data *map[string]any `json:"data"` + Data *map[string]any `json:"data,omitempty"` // Id The id of the schedule assignment. Omit to create a new assignment (multiple assignments may share the same name per user); supply an existing id to update that assignment in place. The id is returned in the response. - Id *openapi_types.UUID `json:"id"` + Id *openapi_types.UUID `json:"id,omitempty"` // Identifier One or more external identifiers to identify the user Identifier *UserIdentifier `json:"identifier,omitempty"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval"` + Interval *string `json:"interval,omitempty"` // Name The name of the scheduled resource Name string `json:"name"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at"` + StartAt *time.Time `json:"start_at,omitempty"` } // User defines model for User. @@ -490,6 +549,9 @@ type ProjectID = openapi_types.UUID // Error defines model for Error. type Error = Problem +// httpBearerAuthContextKey is the context key for HttpBearerAuth security scheme +type httpBearerAuthContextKey string + // GetOrganizationInboxParams defines parameters for GetOrganizationInbox. type GetOrganizationInboxParams struct { Source string `form:"source" json:"source"` @@ -1428,14 +1490,14 @@ func NewCreateSessionRequestWithBody(server string, projectID ProjectID, authMet var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "authMethodID", runtime.ParamLocationPath, authMethodID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "authMethodID", authMethodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1455,7 +1517,7 @@ func NewCreateSessionRequestWithBody(server string, projectID ProjectID, authMet return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -1482,7 +1544,7 @@ func NewDeleteOrganizationClientRequestWithBody(server string, projectID Project var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1502,7 +1564,7 @@ func NewDeleteOrganizationClientRequestWithBody(server string, projectID Project return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -1529,7 +1591,7 @@ func NewUpsertOrganizationClientRequestWithBody(server string, projectID Project var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1549,7 +1611,7 @@ func NewUpsertOrganizationClientRequestWithBody(server string, projectID Project return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -1576,7 +1638,7 @@ func NewPostOrganizationEventsClientRequestWithBody(server string, projectID Pro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1596,7 +1658,7 @@ func NewPostOrganizationEventsClientRequestWithBody(server string, projectID Pro return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -1612,7 +1674,7 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1633,43 +1695,37 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -1677,15 +1733,11 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -1693,15 +1745,11 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -1709,43 +1757,31 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -1753,24 +1789,23 @@ func NewGetOrganizationInboxRequest(server string, projectID ProjectID, params * if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -1795,7 +1830,7 @@ func NewPostOrganizationInboxMessagesRequestWithBody(server string, projectID Pr var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1815,7 +1850,7 @@ func NewPostOrganizationInboxMessagesRequestWithBody(server string, projectID Pr return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -1842,7 +1877,7 @@ func NewPostOrganizationInboxArchivedRequestWithBody(server string, projectID Pr var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1862,7 +1897,7 @@ func NewPostOrganizationInboxArchivedRequestWithBody(server string, projectID Pr return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -1878,7 +1913,7 @@ func NewGetOrganizationInboxCountRequest(server string, projectID ProjectID, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1899,48 +1934,45 @@ func NewGetOrganizationInboxCountRequest(server string, projectID ProjectID, par } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -1965,7 +1997,7 @@ func NewPostOrganizationInboxReadRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -1985,7 +2017,7 @@ func NewPostOrganizationInboxReadRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2012,7 +2044,7 @@ func NewDeleteOrganizationScheduledClientRequestWithBody(server string, projectI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2032,7 +2064,7 @@ func NewDeleteOrganizationScheduledClientRequestWithBody(server string, projectI return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -2059,7 +2091,7 @@ func NewUpsertOrganizationScheduledClientRequestWithBody(server string, projectI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2079,7 +2111,7 @@ func NewUpsertOrganizationScheduledClientRequestWithBody(server string, projectI return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2106,7 +2138,7 @@ func NewRemoveOrganizationUserClientRequestWithBody(server string, projectID Pro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2126,7 +2158,7 @@ func NewRemoveOrganizationUserClientRequestWithBody(server string, projectID Pro return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -2153,7 +2185,7 @@ func NewAddOrganizationUserClientRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2173,7 +2205,7 @@ func NewAddOrganizationUserClientRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2189,7 +2221,7 @@ func NewGetVapidPublicKeyRequest(server string, projectID ProjectID) (*http.Requ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2209,7 +2241,7 @@ func NewGetVapidPublicKeyRequest(server string, projectID ProjectID) (*http.Requ return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2234,7 +2266,7 @@ func NewDeleteUserClientRequestWithBody(server string, projectID ProjectID, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2254,7 +2286,7 @@ func NewDeleteUserClientRequestWithBody(server string, projectID ProjectID, cont return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -2281,7 +2313,7 @@ func NewUpsertUserClientRequestWithBody(server string, projectID ProjectID, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2301,7 +2333,7 @@ func NewUpsertUserClientRequestWithBody(server string, projectID ProjectID, cont return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2328,7 +2360,7 @@ func NewRegisterDeviceRequestWithBody(server string, projectID ProjectID, conten var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2348,7 +2380,7 @@ func NewRegisterDeviceRequestWithBody(server string, projectID ProjectID, conten return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2375,7 +2407,7 @@ func NewPostUserEventsRequestWithBody(server string, projectID ProjectID, conten var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2395,7 +2427,7 @@ func NewPostUserEventsRequestWithBody(server string, projectID ProjectID, conten return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2411,7 +2443,7 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2432,43 +2464,37 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2476,15 +2502,11 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2492,15 +2514,11 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2508,43 +2526,31 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -2552,24 +2558,23 @@ func NewGetUserInboxRequest(server string, projectID ProjectID, params *GetUserI if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2594,7 +2599,7 @@ func NewPostUserInboxMessagesRequestWithBody(server string, projectID ProjectID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2614,7 +2619,7 @@ func NewPostUserInboxMessagesRequestWithBody(server string, projectID ProjectID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2641,7 +2646,7 @@ func NewPostUserInboxArchivedRequestWithBody(server string, projectID ProjectID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2661,7 +2666,7 @@ func NewPostUserInboxArchivedRequestWithBody(server string, projectID ProjectID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2677,7 +2682,7 @@ func NewGetUserInboxCountRequest(server string, projectID ProjectID, params *Get var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2698,48 +2703,45 @@ func NewGetUserInboxCountRequest(server string, projectID ProjectID, params *Get } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "source", runtime.ParamLocationQuery, params.Source); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "source", params.Source, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "external_id", runtime.ParamLocationQuery, params.ExternalId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "external_id", params.ExternalId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, params.Channel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2764,7 +2766,7 @@ func NewPostUserInboxReadRequestWithBody(server string, projectID ProjectID, con var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2784,7 +2786,7 @@ func NewPostUserInboxReadRequestWithBody(server string, projectID ProjectID, con return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2811,7 +2813,7 @@ func NewDeleteUserScheduledClientRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2831,7 +2833,7 @@ func NewDeleteUserScheduledClientRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), body) if err != nil { return nil, err } @@ -2858,7 +2860,7 @@ func NewUpsertUserScheduledClientRequestWithBody(server string, projectID Projec var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2878,7 +2880,7 @@ func NewUpsertUserScheduledClientRequestWithBody(server string, projectID Projec return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -2894,14 +2896,14 @@ func NewGetPreferencesPageRequest(server string, projectID openapi_types.UUID, u var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2921,7 +2923,7 @@ func NewGetPreferencesPageRequest(server string, projectID openapi_types.UUID, u return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -2946,14 +2948,14 @@ func NewUpdatePreferencesRequestWithBody(server string, projectID openapi_types. var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -2973,7 +2975,7 @@ func NewUpdatePreferencesRequestWithBody(server string, projectID openapi_types. return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -3003,24 +3005,29 @@ func NewEmailUnsubscribeRequest(server string, params *EmailUnsubscribeParams) ( } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "link", runtime.ParamLocationQuery, params.Link); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "link", params.Link, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -3221,6 +3228,14 @@ func (r CreateSessionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateSessionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteOrganizationClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3243,6 +3258,14 @@ func (r DeleteOrganizationClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteOrganizationClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertOrganizationClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3266,6 +3289,14 @@ func (r UpsertOrganizationClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertOrganizationClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostOrganizationEventsClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3288,6 +3319,14 @@ func (r PostOrganizationEventsClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostOrganizationEventsClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetOrganizationInboxResponse struct { Body []byte HTTPResponse *http.Response @@ -3311,6 +3350,14 @@ func (r GetOrganizationInboxResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOrganizationInboxResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostOrganizationInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -3333,6 +3380,14 @@ func (r PostOrganizationInboxMessagesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostOrganizationInboxMessagesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostOrganizationInboxArchivedResponse struct { Body []byte HTTPResponse *http.Response @@ -3355,6 +3410,14 @@ func (r PostOrganizationInboxArchivedResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostOrganizationInboxArchivedResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetOrganizationInboxCountResponse struct { Body []byte HTTPResponse *http.Response @@ -3378,6 +3441,14 @@ func (r GetOrganizationInboxCountResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOrganizationInboxCountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostOrganizationInboxReadResponse struct { Body []byte HTTPResponse *http.Response @@ -3400,6 +3471,14 @@ func (r PostOrganizationInboxReadResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostOrganizationInboxReadResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteOrganizationScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3422,6 +3501,14 @@ func (r DeleteOrganizationScheduledClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteOrganizationScheduledClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertOrganizationScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3445,6 +3532,14 @@ func (r UpsertOrganizationScheduledClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertOrganizationScheduledClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RemoveOrganizationUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3467,6 +3562,14 @@ func (r RemoveOrganizationUserClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RemoveOrganizationUserClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type AddOrganizationUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3489,6 +3592,14 @@ func (r AddOrganizationUserClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AddOrganizationUserClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetVapidPublicKeyResponse struct { Body []byte HTTPResponse *http.Response @@ -3512,6 +3623,14 @@ func (r GetVapidPublicKeyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetVapidPublicKeyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3534,6 +3653,14 @@ func (r DeleteUserClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteUserClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertUserClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3557,6 +3684,14 @@ func (r UpsertUserClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertUserClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RegisterDeviceResponse struct { Body []byte HTTPResponse *http.Response @@ -3579,6 +3714,14 @@ func (r RegisterDeviceResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RegisterDeviceResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostUserEventsResponse struct { Body []byte HTTPResponse *http.Response @@ -3601,6 +3744,14 @@ func (r PostUserEventsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostUserEventsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserInboxResponse struct { Body []byte HTTPResponse *http.Response @@ -3624,6 +3775,14 @@ func (r GetUserInboxResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserInboxResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostUserInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -3646,6 +3805,14 @@ func (r PostUserInboxMessagesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostUserInboxMessagesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostUserInboxArchivedResponse struct { Body []byte HTTPResponse *http.Response @@ -3668,6 +3835,14 @@ func (r PostUserInboxArchivedResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostUserInboxArchivedResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserInboxCountResponse struct { Body []byte HTTPResponse *http.Response @@ -3691,6 +3866,14 @@ func (r GetUserInboxCountResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserInboxCountResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PostUserInboxReadResponse struct { Body []byte HTTPResponse *http.Response @@ -3713,6 +3896,14 @@ func (r PostUserInboxReadResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostUserInboxReadResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteUserScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3735,6 +3926,14 @@ func (r DeleteUserScheduledClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteUserScheduledClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertUserScheduledClientResponse struct { Body []byte HTTPResponse *http.Response @@ -3758,6 +3957,14 @@ func (r UpsertUserScheduledClientResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertUserScheduledClientResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetPreferencesPageResponse struct { Body []byte HTTPResponse *http.Response @@ -3779,6 +3986,14 @@ func (r GetPreferencesPageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetPreferencesPageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdatePreferencesResponse struct { Body []byte HTTPResponse *http.Response @@ -3800,6 +4015,14 @@ func (r UpdatePreferencesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdatePreferencesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type EmailUnsubscribeResponse struct { Body []byte HTTPResponse *http.Response @@ -3821,6 +4044,14 @@ func (r EmailUnsubscribeResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r EmailUnsubscribeResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + // CreateSessionWithBodyWithResponse request with arbitrary body returning *CreateSessionResponse func (c *ClientWithResponses) CreateSessionWithBodyWithResponse(ctx context.Context, projectID ProjectID, authMethodID openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error) { rsp, err := c.CreateSessionWithBody(ctx, projectID, authMethodID, contentType, body, reqEditors...) @@ -5282,11 +5513,12 @@ type MiddlewareFunc func(http.Handler) http.Handler func (siw *ServerInterfaceWrapper) CreateSession(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5295,7 +5527,7 @@ func (siw *ServerInterfaceWrapper) CreateSession(w http.ResponseWriter, r *http. // ------------- Path parameter "authMethodID" ------------- var authMethodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "authMethodID", chi.URLParam(r, "authMethodID"), &authMethodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "authMethodID", chi.URLParam(r, "authMethodID"), &authMethodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "authMethodID", Err: err}) return @@ -5322,11 +5554,12 @@ func (siw *ServerInterfaceWrapper) CreateSession(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DeleteOrganizationClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5353,11 +5586,12 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationClient(w http.ResponseWrite func (siw *ServerInterfaceWrapper) UpsertOrganizationClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5384,11 +5618,12 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationClient(w http.ResponseWrite func (siw *ServerInterfaceWrapper) PostOrganizationEventsClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5415,11 +5650,12 @@ func (siw *ServerInterfaceWrapper) PostOrganizationEventsClient(w http.ResponseW func (siw *ServerInterfaceWrapper) GetOrganizationInbox(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5436,94 +5672,118 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInbox(w http.ResponseWriter, r // ------------- Required query parameter "source" ------------- - if paramValue := r.URL.Query().Get("source"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) + err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + } return } // ------------- Required query parameter "external_id" ------------- - if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) + err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + } return } // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) + err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + } return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) + err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + } return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) + err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + } return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) + err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + } return } // ------------- Required query parameter "channel" ------------- - if paramValue := r.URL.Query().Get("channel"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) + err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + } return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -5542,11 +5802,12 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInbox(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) PostOrganizationInboxMessages(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5573,11 +5834,12 @@ func (siw *ServerInterfaceWrapper) PostOrganizationInboxMessages(w http.Response func (siw *ServerInterfaceWrapper) PostOrganizationInboxArchived(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5604,11 +5866,12 @@ func (siw *ServerInterfaceWrapper) PostOrganizationInboxArchived(w http.Response func (siw *ServerInterfaceWrapper) GetOrganizationInboxCount(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5625,46 +5888,40 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxCount(w http.ResponseWrit // ------------- Required query parameter "source" ------------- - if paramValue := r.URL.Query().Get("source"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) + err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + } return } // ------------- Required query parameter "external_id" ------------- - if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) + err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + } return } // ------------- Required query parameter "channel" ------------- - if paramValue := r.URL.Query().Get("channel"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) + err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + } return } @@ -5683,11 +5940,12 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxCount(w http.ResponseWrit func (siw *ServerInterfaceWrapper) PostOrganizationInboxRead(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5714,11 +5972,12 @@ func (siw *ServerInterfaceWrapper) PostOrganizationInboxRead(w http.ResponseWrit func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduledClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5745,11 +6004,12 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduledClient(w http.Resp func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduledClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5776,11 +6036,12 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduledClient(w http.Resp func (siw *ServerInterfaceWrapper) RemoveOrganizationUserClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5807,11 +6068,12 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationUserClient(w http.ResponseW func (siw *ServerInterfaceWrapper) AddOrganizationUserClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5838,11 +6100,12 @@ func (siw *ServerInterfaceWrapper) AddOrganizationUserClient(w http.ResponseWrit func (siw *ServerInterfaceWrapper) GetVapidPublicKey(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5869,11 +6132,12 @@ func (siw *ServerInterfaceWrapper) GetVapidPublicKey(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) DeleteUserClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5900,11 +6164,12 @@ func (siw *ServerInterfaceWrapper) DeleteUserClient(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) UpsertUserClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5931,11 +6196,12 @@ func (siw *ServerInterfaceWrapper) UpsertUserClient(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) RegisterDevice(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5962,11 +6228,12 @@ func (siw *ServerInterfaceWrapper) RegisterDevice(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) PostUserEvents(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -5993,11 +6260,12 @@ func (siw *ServerInterfaceWrapper) PostUserEvents(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetUserInbox(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6014,94 +6282,118 @@ func (siw *ServerInterfaceWrapper) GetUserInbox(w http.ResponseWriter, r *http.R // ------------- Required query parameter "source" ------------- - if paramValue := r.URL.Query().Get("source"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) + err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + } return } // ------------- Required query parameter "external_id" ------------- - if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) + err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + } return } // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) + err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + } return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) + err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + } return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) + err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + } return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) + err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + } return } // ------------- Required query parameter "channel" ------------- - if paramValue := r.URL.Query().Get("channel"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) + err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + } return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -6120,11 +6412,12 @@ func (siw *ServerInterfaceWrapper) GetUserInbox(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) PostUserInboxMessages(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6151,11 +6444,12 @@ func (siw *ServerInterfaceWrapper) PostUserInboxMessages(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) PostUserInboxArchived(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6182,11 +6476,12 @@ func (siw *ServerInterfaceWrapper) PostUserInboxArchived(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) GetUserInboxCount(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6203,46 +6498,40 @@ func (siw *ServerInterfaceWrapper) GetUserInboxCount(w http.ResponseWriter, r *h // ------------- Required query parameter "source" ------------- - if paramValue := r.URL.Query().Get("source"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "source", r.URL.Query(), ¶ms.Source) + err = runtime.BindQueryParameterWithOptions("form", true, true, "source", r.URL.Query(), ¶ms.Source, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "source", Err: err}) + } return } // ------------- Required query parameter "external_id" ------------- - if paramValue := r.URL.Query().Get("external_id"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId) + err = runtime.BindQueryParameterWithOptions("form", true, true, "external_id", r.URL.Query(), ¶ms.ExternalId, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "external_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "external_id", Err: err}) + } return } // ------------- Required query parameter "channel" ------------- - if paramValue := r.URL.Query().Get("channel"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "channel", r.URL.Query(), ¶ms.Channel) + err = runtime.BindQueryParameterWithOptions("form", true, true, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + } return } @@ -6261,11 +6550,12 @@ func (siw *ServerInterfaceWrapper) GetUserInboxCount(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) PostUserInboxRead(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6292,11 +6582,12 @@ func (siw *ServerInterfaceWrapper) PostUserInboxRead(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) DeleteUserScheduledClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6323,11 +6614,12 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduledClient(w http.ResponseWrit func (siw *ServerInterfaceWrapper) UpsertUserScheduledClient(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID ProjectID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6354,11 +6646,12 @@ func (siw *ServerInterfaceWrapper) UpsertUserScheduledClient(w http.ResponseWrit func (siw *ServerInterfaceWrapper) GetPreferencesPage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6367,7 +6660,7 @@ func (siw *ServerInterfaceWrapper) GetPreferencesPage(w http.ResponseWriter, r * // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -6388,11 +6681,12 @@ func (siw *ServerInterfaceWrapper) GetPreferencesPage(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) UpdatePreferences(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -6401,7 +6695,7 @@ func (siw *ServerInterfaceWrapper) UpdatePreferences(w http.ResponseWriter, r *h // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -6422,22 +6716,21 @@ func (siw *ServerInterfaceWrapper) UpdatePreferences(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) EmailUnsubscribe(w http.ResponseWriter, r *http.Request) { var err error + _ = err // Parameter object where we will unmarshal all parameters from the context var params EmailUnsubscribeParams // ------------- Required query parameter "link" ------------- - if paramValue := r.URL.Query().Get("link"); paramValue != "" { - - } else { - siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "link"}) - return - } - - err = runtime.BindQueryParameter("form", true, true, "link", r.URL.Query(), ¶ms.Link) + err = runtime.BindQueryParameterWithOptions("form", true, true, "link", r.URL.Query(), ¶ms.Link, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "link", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "link"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "link", Err: err}) + } return } diff --git a/internal/http/controllers/v1/management/oapi/resources_gen.go b/internal/http/controllers/v1/management/oapi/resources_gen.go index 2284928e..36f6c92c 100644 --- a/internal/http/controllers/v1/management/oapi/resources_gen.go +++ b/internal/http/controllers/v1/management/oapi/resources_gen.go @@ -1,12 +1,13 @@ // Package oapi provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT. package oapi import ( "bytes" "context" "encoding/json" + "errors" "fmt" "io" "net/http" @@ -21,7 +22,7 @@ import ( ) const ( - HttpBearerAuthScopes = "HttpBearerAuth.Scopes" + HttpBearerAuthScopes httpBearerAuthContextKey = "HttpBearerAuth.Scopes" ) // Defines values for AuthMethodType. @@ -31,6 +32,20 @@ const ( AuthMethodTypeTrustedIssuer AuthMethodType = "trusted_issuer" ) +// Valid indicates whether the value is a known member of the AuthMethodType enum. +func (e AuthMethodType) Valid() bool { + switch e { + case AuthMethodTypeApiKey: + return true + case AuthMethodTypeSession: + return true + case AuthMethodTypeTrustedIssuer: + return true + default: + return false + } +} + // Defines values for BroadcastState. const ( BroadcastStateCancelled BroadcastState = "cancelled" @@ -41,6 +56,26 @@ const ( BroadcastStateSending BroadcastState = "sending" ) +// Valid indicates whether the value is a known member of the BroadcastState enum. +func (e BroadcastState) Valid() bool { + switch e { + case BroadcastStateCancelled: + return true + case BroadcastStateCompleted: + return true + case BroadcastStateFailed: + return true + case BroadcastStatePending: + return true + case BroadcastStateScheduled: + return true + case BroadcastStateSending: + return true + default: + return false + } +} + // Defines values for CampaignUserStatus. const ( CampaignUserStatusAborted CampaignUserStatus = "aborted" @@ -51,6 +86,26 @@ const ( CampaignUserStatusThrottled CampaignUserStatus = "throttled" ) +// Valid indicates whether the value is a known member of the CampaignUserStatus enum. +func (e CampaignUserStatus) Valid() bool { + switch e { + case CampaignUserStatusAborted: + return true + case CampaignUserStatusFailed: + return true + case CampaignUserStatusOpened: + return true + case CampaignUserStatusPending: + return true + case CampaignUserStatusSent: + return true + case CampaignUserStatusThrottled: + return true + default: + return false + } +} + // Defines values for Channel. const ( ChannelEmail Channel = "email" @@ -59,12 +114,40 @@ const ( ChannelSms Channel = "sms" ) +// Valid indicates whether the value is a known member of the Channel enum. +func (e Channel) Valid() bool { + switch e { + case ChannelEmail: + return true + case ChannelInbox: + return true + case ChannelPush: + return true + case ChannelSms: + return true + default: + return false + } +} + // Defines values for CreateListType. const ( CreateListTypeDynamic CreateListType = "dynamic" CreateListTypeStatic CreateListType = "static" ) +// Valid indicates whether the value is a known member of the CreateListType enum. +func (e CreateListType) Valid() bool { + switch e { + case CreateListTypeDynamic: + return true + case CreateListTypeStatic: + return true + default: + return false + } +} + // Defines values for CreateProjectInviteRole. const ( CreateProjectInviteRoleAdmin CreateProjectInviteRole = "admin" @@ -73,18 +156,58 @@ const ( CreateProjectInviteRoleSupport CreateProjectInviteRole = "support" ) +// Valid indicates whether the value is a known member of the CreateProjectInviteRole enum. +func (e CreateProjectInviteRole) Valid() bool { + switch e { + case CreateProjectInviteRoleAdmin: + return true + case CreateProjectInviteRoleClient: + return true + case CreateProjectInviteRoleEditor: + return true + case CreateProjectInviteRoleSupport: + return true + default: + return false + } +} + // Defines values for CreateScheduleOffsetRequestDirection. const ( CreateScheduleOffsetRequestDirectionAfter CreateScheduleOffsetRequestDirection = "after" CreateScheduleOffsetRequestDirectionBefore CreateScheduleOffsetRequestDirection = "before" ) +// Valid indicates whether the value is a known member of the CreateScheduleOffsetRequestDirection enum. +func (e CreateScheduleOffsetRequestDirection) Valid() bool { + switch e { + case CreateScheduleOffsetRequestDirectionAfter: + return true + case CreateScheduleOffsetRequestDirectionBefore: + return true + default: + return false + } +} + // Defines values for CreateSenderIdentityChannel. const ( CreateSenderIdentityChannelEmail CreateSenderIdentityChannel = "email" CreateSenderIdentityChannelSms CreateSenderIdentityChannel = "sms" ) +// Valid indicates whether the value is a known member of the CreateSenderIdentityChannel enum. +func (e CreateSenderIdentityChannel) Valid() bool { + switch e { + case CreateSenderIdentityChannelEmail: + return true + case CreateSenderIdentityChannelSms: + return true + default: + return false + } +} + // Defines values for CreateUserDeviceOs. const ( CreateUserDeviceOsAndroid CreateUserDeviceOs = "android" @@ -92,6 +215,20 @@ const ( CreateUserDeviceOsWeb CreateUserDeviceOs = "web" ) +// Valid indicates whether the value is a known member of the CreateUserDeviceOs enum. +func (e CreateUserDeviceOs) Valid() bool { + switch e { + case CreateUserDeviceOsAndroid: + return true + case CreateUserDeviceOsIos: + return true + case CreateUserDeviceOsWeb: + return true + default: + return false + } +} + // Defines values for JourneyStatus. const ( JourneyStatusArchived JourneyStatus = "archived" @@ -99,6 +236,20 @@ const ( JourneyStatusPublished JourneyStatus = "published" ) +// Valid indicates whether the value is a known member of the JourneyStatus enum. +func (e JourneyStatus) Valid() bool { + switch e { + case JourneyStatusArchived: + return true + case JourneyStatusDraft: + return true + case JourneyStatusPublished: + return true + default: + return false + } +} + // Defines values for JourneyStepType. const ( JourneyStepTypeAction JourneyStepType = "action" @@ -115,6 +266,38 @@ const ( JourneyStepTypeUpdate JourneyStepType = "update" ) +// Valid indicates whether the value is a known member of the JourneyStepType enum. +func (e JourneyStepType) Valid() bool { + switch e { + case JourneyStepTypeAction: + return true + case JourneyStepTypeBalancer: + return true + case JourneyStepTypeCampaign: + return true + case JourneyStepTypeDelay: + return true + case JourneyStepTypeEntrance: + return true + case JourneyStepTypeEvent: + return true + case JourneyStepTypeExit: + return true + case JourneyStepTypeExperiment: + return true + case JourneyStepTypeGate: + return true + case JourneyStepTypeSchedule: + return true + case JourneyStepTypeSticky: + return true + case JourneyStepTypeUpdate: + return true + default: + return false + } +} + // Defines values for ListState. const ( ListStateDraft ListState = "draft" @@ -122,12 +305,38 @@ const ( ListStateReady ListState = "ready" ) +// Valid indicates whether the value is a known member of the ListState enum. +func (e ListState) Valid() bool { + switch e { + case ListStateDraft: + return true + case ListStateLoading: + return true + case ListStateReady: + return true + default: + return false + } +} + // Defines values for ListType. const ( ListTypeDynamic ListType = "dynamic" ListTypeStatic ListType = "static" ) +// Valid indicates whether the value is a known member of the ListType enum. +func (e ListType) Valid() bool { + switch e { + case ListTypeDynamic: + return true + case ListTypeStatic: + return true + default: + return false + } +} + // Defines values for OrganizationRole. const ( OrganizationRoleAdmin OrganizationRole = "admin" @@ -135,6 +344,20 @@ const ( OrganizationRoleOwner OrganizationRole = "owner" ) +// Valid indicates whether the value is a known member of the OrganizationRole enum. +func (e OrganizationRole) Valid() bool { + switch e { + case OrganizationRoleAdmin: + return true + case OrganizationRoleMember: + return true + case OrganizationRoleOwner: + return true + default: + return false + } +} + // Defines values for PermissionGrantVerb. const ( PermissionGrantVerbCreate PermissionGrantVerb = "create" @@ -143,6 +366,22 @@ const ( PermissionGrantVerbUpdate PermissionGrantVerb = "update" ) +// Valid indicates whether the value is a known member of the PermissionGrantVerb enum. +func (e PermissionGrantVerb) Valid() bool { + switch e { + case PermissionGrantVerbCreate: + return true + case PermissionGrantVerbDelete: + return true + case PermissionGrantVerbRead: + return true + case PermissionGrantVerbUpdate: + return true + default: + return false + } +} + // Defines values for ProjectInviteRole. const ( ProjectInviteRoleAdmin ProjectInviteRole = "admin" @@ -151,6 +390,22 @@ const ( ProjectInviteRoleSupport ProjectInviteRole = "support" ) +// Valid indicates whether the value is a known member of the ProjectInviteRole enum. +func (e ProjectInviteRole) Valid() bool { + switch e { + case ProjectInviteRoleAdmin: + return true + case ProjectInviteRoleClient: + return true + case ProjectInviteRoleEditor: + return true + case ProjectInviteRoleSupport: + return true + default: + return false + } +} + // Defines values for ProjectPushProviderPlatform. const ( ProjectPushProviderPlatformAndroid ProjectPushProviderPlatform = "android" @@ -159,6 +414,22 @@ const ( ProjectPushProviderPlatformWeb ProjectPushProviderPlatform = "web" ) +// Valid indicates whether the value is a known member of the ProjectPushProviderPlatform enum. +func (e ProjectPushProviderPlatform) Valid() bool { + switch e { + case ProjectPushProviderPlatformAndroid: + return true + case ProjectPushProviderPlatformIos: + return true + case ProjectPushProviderPlatformMail: + return true + case ProjectPushProviderPlatformWeb: + return true + default: + return false + } +} + // Defines values for ProjectRole. const ( ProjectRoleAdmin ProjectRole = "admin" @@ -167,54 +438,166 @@ const ( ProjectRoleSupport ProjectRole = "support" ) +// Valid indicates whether the value is a known member of the ProjectRole enum. +func (e ProjectRole) Valid() bool { + switch e { + case ProjectRoleAdmin: + return true + case ProjectRoleClient: + return true + case ProjectRoleEditor: + return true + case ProjectRoleSupport: + return true + default: + return false + } +} + // Defines values for ScheduleOffsetDirection. const ( ScheduleOffsetDirectionAfter ScheduleOffsetDirection = "after" ScheduleOffsetDirectionBefore ScheduleOffsetDirection = "before" ) +// Valid indicates whether the value is a known member of the ScheduleOffsetDirection enum. +func (e ScheduleOffsetDirection) Valid() bool { + switch e { + case ScheduleOffsetDirectionAfter: + return true + case ScheduleOffsetDirectionBefore: + return true + default: + return false + } +} + // Defines values for SenderIdentityChannel. const ( SenderIdentityChannelEmail SenderIdentityChannel = "email" SenderIdentityChannelSms SenderIdentityChannel = "sms" ) +// Valid indicates whether the value is a known member of the SenderIdentityChannel enum. +func (e SenderIdentityChannel) Valid() bool { + switch e { + case SenderIdentityChannelEmail: + return true + case SenderIdentityChannelSms: + return true + default: + return false + } +} + // Defines values for SubjectScope. const ( All SubjectScope = "all" Own SubjectScope = "own" ) +// Valid indicates whether the value is a known member of the SubjectScope enum. +func (e SubjectScope) Valid() bool { + switch e { + case All: + return true + case Own: + return true + default: + return false + } +} + // Defines values for SubscriptionState. const ( Subscribed SubscriptionState = "subscribed" Unsubscribed SubscriptionState = "unsubscribed" ) +// Valid indicates whether the value is a known member of the SubscriptionState enum. +func (e SubscriptionState) Valid() bool { + switch e { + case Subscribed: + return true + case Unsubscribed: + return true + default: + return false + } +} + // Defines values for UpdateOrganizationScheduledRequestPause. const ( UpdateOrganizationScheduledRequestPauseAfterNextInterval UpdateOrganizationScheduledRequestPause = "after_next_interval" UpdateOrganizationScheduledRequestPauseImmediately UpdateOrganizationScheduledRequestPause = "immediately" ) +// Valid indicates whether the value is a known member of the UpdateOrganizationScheduledRequestPause enum. +func (e UpdateOrganizationScheduledRequestPause) Valid() bool { + switch e { + case UpdateOrganizationScheduledRequestPauseAfterNextInterval: + return true + case UpdateOrganizationScheduledRequestPauseImmediately: + return true + default: + return false + } +} + // Defines values for UpdateOrganizationScheduledRequestResume. const ( UpdateOrganizationScheduledRequestResumeAtNextInterval UpdateOrganizationScheduledRequestResume = "at_next_interval" UpdateOrganizationScheduledRequestResumeImmediately UpdateOrganizationScheduledRequestResume = "immediately" ) +// Valid indicates whether the value is a known member of the UpdateOrganizationScheduledRequestResume enum. +func (e UpdateOrganizationScheduledRequestResume) Valid() bool { + switch e { + case UpdateOrganizationScheduledRequestResumeAtNextInterval: + return true + case UpdateOrganizationScheduledRequestResumeImmediately: + return true + default: + return false + } +} + // Defines values for UpdateUserScheduledRequestPause. const ( UpdateUserScheduledRequestPauseAfterNextInterval UpdateUserScheduledRequestPause = "after_next_interval" UpdateUserScheduledRequestPauseImmediately UpdateUserScheduledRequestPause = "immediately" ) +// Valid indicates whether the value is a known member of the UpdateUserScheduledRequestPause enum. +func (e UpdateUserScheduledRequestPause) Valid() bool { + switch e { + case UpdateUserScheduledRequestPauseAfterNextInterval: + return true + case UpdateUserScheduledRequestPauseImmediately: + return true + default: + return false + } +} + // Defines values for UpdateUserScheduledRequestResume. const ( UpdateUserScheduledRequestResumeAtNextInterval UpdateUserScheduledRequestResume = "at_next_interval" UpdateUserScheduledRequestResumeImmediately UpdateUserScheduledRequestResume = "immediately" ) +// Valid indicates whether the value is a known member of the UpdateUserScheduledRequestResume enum. +func (e UpdateUserScheduledRequestResume) Valid() bool { + switch e { + case UpdateUserScheduledRequestResumeAtNextInterval: + return true + case UpdateUserScheduledRequestResumeImmediately: + return true + default: + return false + } +} + // Defines values for ListProjectInvitesParamsStatus. const ( Accepted ListProjectInvitesParamsStatus = "accepted" @@ -223,6 +606,22 @@ const ( Revoked ListProjectInvitesParamsStatus = "revoked" ) +// Valid indicates whether the value is a known member of the ListProjectInvitesParamsStatus enum. +func (e ListProjectInvitesParamsStatus) Valid() bool { + switch e { + case Accepted: + return true + case Expired: + return true + case Pending: + return true + case Revoked: + return true + default: + return false + } +} + // Defines values for ListProjectInvitesParamsRole. const ( ListProjectInvitesParamsRoleAdmin ListProjectInvitesParamsRole = "admin" @@ -231,12 +630,40 @@ const ( ListProjectInvitesParamsRoleSupport ListProjectInvitesParamsRole = "support" ) +// Valid indicates whether the value is a known member of the ListProjectInvitesParamsRole enum. +func (e ListProjectInvitesParamsRole) Valid() bool { + switch e { + case ListProjectInvitesParamsRoleAdmin: + return true + case ListProjectInvitesParamsRoleClient: + return true + case ListProjectInvitesParamsRoleEditor: + return true + case ListProjectInvitesParamsRoleSupport: + return true + default: + return false + } +} + // Defines values for ListSenderIdentitiesParamsChannel. const ( ListSenderIdentitiesParamsChannelEmail ListSenderIdentitiesParamsChannel = "email" ListSenderIdentitiesParamsChannelSms ListSenderIdentitiesParamsChannel = "sms" ) +// Valid indicates whether the value is a known member of the ListSenderIdentitiesParamsChannel enum. +func (e ListSenderIdentitiesParamsChannel) Valid() bool { + switch e { + case ListSenderIdentitiesParamsChannelEmail: + return true + case ListSenderIdentitiesParamsChannelSms: + return true + default: + return false + } +} + // Defines values for GetOrganizationInboxMessagesParamsStatus. const ( GetOrganizationInboxMessagesParamsStatusArchived GetOrganizationInboxMessagesParamsStatus = "archived" @@ -244,6 +671,20 @@ const ( GetOrganizationInboxMessagesParamsStatusUnread GetOrganizationInboxMessagesParamsStatus = "unread" ) +// Valid indicates whether the value is a known member of the GetOrganizationInboxMessagesParamsStatus enum. +func (e GetOrganizationInboxMessagesParamsStatus) Valid() bool { + switch e { + case GetOrganizationInboxMessagesParamsStatusArchived: + return true + case GetOrganizationInboxMessagesParamsStatusRead: + return true + case GetOrganizationInboxMessagesParamsStatusUnread: + return true + default: + return false + } +} + // Defines values for GetUserInboxMessagesParamsStatus. const ( GetUserInboxMessagesParamsStatusArchived GetUserInboxMessagesParamsStatus = "archived" @@ -251,17 +692,53 @@ const ( GetUserInboxMessagesParamsStatusUnread GetUserInboxMessagesParamsStatus = "unread" ) +// Valid indicates whether the value is a known member of the GetUserInboxMessagesParamsStatus enum. +func (e GetUserInboxMessagesParamsStatus) Valid() bool { + switch e { + case GetUserInboxMessagesParamsStatusArchived: + return true + case GetUserInboxMessagesParamsStatusRead: + return true + case GetUserInboxMessagesParamsStatusUnread: + return true + default: + return false + } +} + // Defines values for AuthCallbackParamsDriver. const ( AuthCallbackParamsDriverBasic AuthCallbackParamsDriver = "basic" AuthCallbackParamsDriverClerk AuthCallbackParamsDriver = "clerk" ) +// Valid indicates whether the value is a known member of the AuthCallbackParamsDriver enum. +func (e AuthCallbackParamsDriver) Valid() bool { + switch e { + case AuthCallbackParamsDriverBasic: + return true + case AuthCallbackParamsDriverClerk: + return true + default: + return false + } +} + // Defines values for AuthWebhookParamsDriver. const ( AuthWebhookParamsDriverClerk AuthWebhookParamsDriver = "clerk" ) +// Valid indicates whether the value is a known member of the AuthWebhookParamsDriver enum. +func (e AuthWebhookParamsDriver) Valid() bool { + switch e { + case AuthWebhookParamsDriverClerk: + return true + default: + return false + } +} + // Action defines model for Action. type Action struct { // Config Action configuration (varies by type) @@ -587,25 +1064,25 @@ type CreateCampaign struct { // CreateInboxMessageRequest defines model for CreateInboxMessageRequest. type CreateInboxMessageRequest struct { - BroadcastId *openapi_types.UUID `json:"broadcast_id"` - CampaignId *openapi_types.UUID `json:"campaign_id"` + BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` + CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` // Channel Communication channel type Channel Channel `json:"channel"` // Content Channel-specific payload content. - Content *json.RawMessage `json:"content"` - Data *map[string]any `json:"data"` - ExpiresAt *time.Time `json:"expires_at"` + Content *json.RawMessage `json:"content,omitempty"` + Data *map[string]any `json:"data,omitempty"` + ExpiresAt *time.Time `json:"expires_at,omitempty"` // Identifier An external identifier with source and optional metadata Identifier *ExternalID `json:"identifier,omitempty"` Priority *int16 `json:"priority,omitempty"` - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` // SenderIdentityId Required for email and sms messages. Push uses project push provider settings. - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` - Source *string `json:"source"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + Source *string `json:"source,omitempty"` Tags *[]string `json:"tags,omitempty"` } @@ -721,19 +1198,19 @@ type CreateTag struct { // CreateTemplate defines model for CreateTemplate. type CreateTemplate struct { // Data Template-specific data based on type. Structure varies by template type. - Data *json.RawMessage `json:"data"` + Data *json.RawMessage `json:"data,omitempty"` // Locale The locale/language code for the template Locale string `json:"locale"` // SenderIdentityId The ID of the sender identity to use for this template - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` } // CreateUserDevice defines model for CreateUserDevice. type CreateUserDevice struct { - AppBuild *string `json:"app_build"` - AppVersion *string `json:"app_version"` + AppBuild *string `json:"app_build,omitempty"` + AppVersion *string `json:"app_version,omitempty"` Config struct { // Endpoint Web Push subscription endpoint URL Endpoint *string `json:"endpoint,omitempty"` @@ -746,11 +1223,11 @@ type CreateUserDevice struct { // Token Device token for FCM or APNs Token *string `json:"token,omitempty"` } `json:"config"` - Data *json.RawMessage `json:"data"` + Data *json.RawMessage `json:"data,omitempty"` DeviceId string `json:"device_id"` - Model *string `json:"model"` + Model *string `json:"model,omitempty"` Os CreateUserDeviceOs `json:"os"` - OsVersion *string `json:"os_version"` + OsVersion *string `json:"os_version,omitempty"` } // CreateUserDeviceOs defines model for CreateUserDevice.Os. @@ -881,7 +1358,7 @@ type ExternalID struct { ExternalId string `json:"external_id"` // Metadata Optional metadata associated with this identifier - Metadata *map[string]any `json:"metadata"` + Metadata *map[string]any `json:"metadata,omitempty"` // Source Source of the identifier (e.g. "default", "anonymous", or a custom source). Defaults to "default" if not provided. Source *string `json:"source,omitempty"` @@ -892,7 +1369,7 @@ type ExternalIDResponse struct { CreatedAt time.Time `json:"created_at"` ExternalId string `json:"external_id"` Id openapi_types.UUID `json:"id"` - Metadata *map[string]any `json:"metadata"` + Metadata *map[string]any `json:"metadata,omitempty"` Source string `json:"source"` UpdatedAt time.Time `json:"updated_at"` } @@ -916,28 +1393,28 @@ type IdentifyUser struct { // InboxMessage defines model for InboxMessage. type InboxMessage struct { - ArchivedAt *time.Time `json:"archived_at"` - BroadcastId *openapi_types.UUID `json:"broadcast_id"` - CampaignId *openapi_types.UUID `json:"campaign_id"` + ArchivedAt *time.Time `json:"archived_at,omitempty"` + BroadcastId *openapi_types.UUID `json:"broadcast_id,omitempty"` + CampaignId *openapi_types.UUID `json:"campaign_id,omitempty"` // Channel Communication channel type Channel Channel `json:"channel"` Content json.RawMessage `json:"content"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` - ExpiresAt *time.Time `json:"expires_at"` + ExpiresAt *time.Time `json:"expires_at,omitempty"` // ExternalId External identifier for the message, if one was provided at creation time. - ExternalId *string `json:"external_id"` + ExternalId *string `json:"external_id,omitempty"` Id openapi_types.UUID `json:"id"` OrganizationId *openapi_types.UUID `json:"organization_id,omitempty"` Priority int16 `json:"priority"` ProjectId openapi_types.UUID `json:"project_id"` - ReadAt *time.Time `json:"read_at"` + ReadAt *time.Time `json:"read_at,omitempty"` ScheduledAt time.Time `json:"scheduled_at"` - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` - SentAt *time.Time `json:"sent_at"` - Source *string `json:"source"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` + SentAt *time.Time `json:"sent_at,omitempty"` + Source *string `json:"source,omitempty"` Tags []string `json:"tags"` UpdatedAt time.Time `json:"updated_at"` UserId *openapi_types.UUID `json:"user_id,omitempty"` @@ -1010,7 +1487,7 @@ type JourneyStep struct { // JourneyStepChild defines model for JourneyStepChild. type JourneyStepChild struct { // Data Child-specific configuration data (structure varies by parent step type) - Data *json.RawMessage `json:"data"` + Data *json.RawMessage `json:"data,omitempty"` // ExternalId External ID of the child step ExternalId string `json:"external_id"` @@ -1169,16 +1646,16 @@ type OrganizationScheduled struct { Id openapi_types.UUID `json:"id"` // Interval Interval for recurring schedules - Interval *string `json:"interval"` + Interval *string `json:"interval,omitempty"` OrganizationId openapi_types.UUID `json:"organization_id"` // PausedAt When set, the schedule is paused and the scheduler will not advance it - PausedAt *time.Time `json:"paused_at"` + PausedAt *time.Time `json:"paused_at,omitempty"` ScheduledAt time.Time `json:"scheduled_at"` ScheduledId openapi_types.UUID `json:"scheduled_id"` // StartAt Start time of the recurring schedule interval - StartAt *time.Time `json:"start_at"` + StartAt *time.Time `json:"start_at,omitempty"` UpdatedAt time.Time `json:"updated_at"` } @@ -1210,7 +1687,7 @@ type PaginatedResponse struct { // PermissionGrant A single (resource, verb) entry in a custom permission set. type PermissionGrant struct { // Instances Optional allow-list of named instances this grant is scoped to. For a create grant the method may only create instances with these names (e.g. event names); omitted/empty = unrestricted. Only meaningful for create today. - Instances *[]string `json:"instances"` + Instances *[]string `json:"instances,omitempty"` Resource string `json:"resource"` Verb PermissionGrantVerb `json:"verb"` } @@ -1277,21 +1754,21 @@ type ProjectAdminList struct { // ProjectInvite defines model for ProjectInvite. type ProjectInvite struct { - AcceptedAt *time.Time `json:"accepted_at"` + AcceptedAt *time.Time `json:"accepted_at,omitempty"` CreatedAt *time.Time `json:"created_at,omitempty"` ExpiresAt *time.Time `json:"expires_at,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` // InviteeAdminId Id of the existing admin that owns the invitee email, if any - InviteeAdminId *openapi_types.UUID `json:"invitee_admin_id"` + InviteeAdminId *openapi_types.UUID `json:"invitee_admin_id,omitempty"` InviteeEmail *openapi_types.Email `json:"invitee_email,omitempty"` - InviterAdminEmail *string `json:"inviter_admin_email"` - InviterAdminId *openapi_types.UUID `json:"inviter_admin_id"` + InviterAdminEmail *string `json:"inviter_admin_email,omitempty"` + InviterAdminId *openapi_types.UUID `json:"inviter_admin_id,omitempty"` ProjectId *openapi_types.UUID `json:"project_id,omitempty"` // ProjectName Name of the project the invite grants access to ProjectName *string `json:"project_name,omitempty"` - RevokedAt *time.Time `json:"revoked_at"` + RevokedAt *time.Time `json:"revoked_at,omitempty"` Role *ProjectInviteRole `json:"role,omitempty"` } @@ -1542,7 +2019,7 @@ type Template struct { ProjectId openapi_types.UUID `json:"project_id"` // SenderIdentityId The ID of the sender identity to use for this template - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` // Type Communication channel type Type Channel `json:"type"` @@ -1631,7 +2108,7 @@ type UpdateAuthMethod struct { // UpdateBroadcast defines model for UpdateBroadcast. type UpdateBroadcast struct { // ScheduledAt Set or update the scheduled send time. Pass null to remove the schedule and revert to pending. Only allowed when the broadcast is in 'pending' or 'scheduled' state. - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` } // UpdateCampaign defines model for UpdateCampaign. @@ -1722,10 +2199,10 @@ type UpdateTag struct { // UpdateTemplate defines model for UpdateTemplate. type UpdateTemplate struct { // Data Template-specific data based on type. Structure varies by template type. - Data *json.RawMessage `json:"data"` + Data *json.RawMessage `json:"data,omitempty"` // SenderIdentityId The ID of the sender identity to use for this template - SenderIdentityId *openapi_types.UUID `json:"sender_identity_id"` + SenderIdentityId *openapi_types.UUID `json:"sender_identity_id,omitempty"` } // UpdateUser defines model for UpdateUser. @@ -1776,16 +2253,16 @@ type UpsertOrganization struct { // UpsertOrganizationScheduledRequest defines model for UpsertOrganizationScheduledRequest. type UpsertOrganizationScheduledRequest struct { // Data Scheduled resource data - Data *json.RawMessage `json:"data"` + Data *json.RawMessage `json:"data,omitempty"` // Id The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per organization); supply an existing id to update that assignment in place. Id *openapi_types.UUID `json:"id,omitempty"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval"` + Interval *string `json:"interval,omitempty"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` // ScheduledId The scheduled definition ID. Either scheduled_id or scheduled_name must be provided. ScheduledId *openapi_types.UUID `json:"scheduled_id,omitempty"` @@ -1794,7 +2271,7 @@ type UpsertOrganizationScheduledRequest struct { ScheduledName *string `json:"scheduled_name,omitempty"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at"` + StartAt *time.Time `json:"start_at,omitempty"` } // UpsertProjectPushProvider defines model for UpsertProjectPushProvider. @@ -1806,16 +2283,16 @@ type UpsertProjectPushProvider struct { // UpsertUserScheduledRequest defines model for UpsertUserScheduledRequest. type UpsertUserScheduledRequest struct { // Data Scheduled resource data - Data *json.RawMessage `json:"data"` + Data *json.RawMessage `json:"data,omitempty"` // Id The schedule assignment instance id. Omit to create a new assignment (multiple assignments may share the same name per user); supply an existing id to update that assignment in place. Id *openapi_types.UUID `json:"id,omitempty"` // Interval Interval for recurring schedules. When set, the schedule type is automatically set to recurring. - Interval *string `json:"interval"` + Interval *string `json:"interval,omitempty"` // ScheduledAt The time at which the scheduled resource is set to trigger. Required for single schedules. - ScheduledAt *time.Time `json:"scheduled_at"` + ScheduledAt *time.Time `json:"scheduled_at,omitempty"` // ScheduledId The scheduled definition ID. Either scheduled_id or scheduled_name must be provided. ScheduledId *openapi_types.UUID `json:"scheduled_id,omitempty"` @@ -1824,7 +2301,7 @@ type UpsertUserScheduledRequest struct { ScheduledName *string `json:"scheduled_name,omitempty"` // StartAt Start time for recurring schedules. If omitted for recurring schedules, defaults to now. - StartAt *time.Time `json:"start_at"` + StartAt *time.Time `json:"start_at,omitempty"` } // User defines model for User. @@ -1849,15 +2326,15 @@ type User struct { // UserDevice defines model for UserDevice. type UserDevice struct { - AppBuild *string `json:"app_build"` - AppVersion *string `json:"app_version"` + AppBuild *string `json:"app_build,omitempty"` + AppVersion *string `json:"app_version,omitempty"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` DeviceId string `json:"device_id"` Id openapi_types.UUID `json:"id"` - Model *string `json:"model"` - Os *string `json:"os"` - OsVersion *string `json:"os_version"` + Model *string `json:"model,omitempty"` + Os *string `json:"os,omitempty"` + OsVersion *string `json:"os_version,omitempty"` UpdatedAt time.Time `json:"updated_at"` } @@ -1929,7 +2406,7 @@ type UserList struct { // UserScheduled defines model for UserScheduled. type UserScheduled struct { // AnchorAt Anchor time used as the base for occurrence calculations. Rebased when scheduled_at is explicitly set. - AnchorAt *time.Time `json:"anchor_at"` + AnchorAt *time.Time `json:"anchor_at,omitempty"` CreatedAt time.Time `json:"created_at"` Data json.RawMessage `json:"data"` @@ -1938,15 +2415,15 @@ type UserScheduled struct { Id openapi_types.UUID `json:"id"` // Interval Interval for recurring schedules - Interval *string `json:"interval"` + Interval *string `json:"interval,omitempty"` // PausedAt When set, the schedule is paused and the scheduler will not advance it - PausedAt *time.Time `json:"paused_at"` + PausedAt *time.Time `json:"paused_at,omitempty"` ScheduledAt time.Time `json:"scheduled_at"` ScheduledId openapi_types.UUID `json:"scheduled_id"` // StartAt Start time of the recurring schedule interval - StartAt *time.Time `json:"start_at"` + StartAt *time.Time `json:"start_at,omitempty"` UpdatedAt time.Time `json:"updated_at"` UserId openapi_types.UUID `json:"user_id"` } @@ -2169,6 +2646,9 @@ type TagListResponse struct { Total int `json:"total"` } +// httpBearerAuthContextKey is the context key for HttpBearerAuth security scheme +type httpBearerAuthContextKey string + // ListProjectsParams defines parameters for ListProjects. type ListProjectsParams struct { // Limit Maximum number of items to return @@ -6369,7 +6849,7 @@ func NewSetActiveOrganizationRequestWithBody(server string, contentType string, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6398,7 +6878,7 @@ func NewListMyOrganizationsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6425,7 +6905,7 @@ func NewGetProfileRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6453,19 +6933,21 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -6473,15 +6955,11 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -6489,24 +6967,23 @@ func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Re if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6544,7 +7021,7 @@ func NewCreateProjectRequestWithBody(server string, contentType string, body io. return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6560,7 +7037,7 @@ func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6580,7 +7057,7 @@ func NewDeleteProjectRequest(server string, projectID openapi_types.UUID) (*http return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -6594,7 +7071,7 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6614,7 +7091,7 @@ func NewGetProjectRequest(server string, projectID openapi_types.UUID) (*http.Re return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6639,7 +7116,7 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6659,7 +7136,7 @@ func NewUpdateProjectRequestWithBody(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -6675,7 +7152,7 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6696,19 +7173,21 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -6716,15 +7195,11 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -6732,24 +7207,23 @@ func NewListActionsRequest(server string, projectID openapi_types.UUID, params * if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6774,7 +7248,7 @@ func NewCreateActionRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6794,7 +7268,7 @@ func NewCreateActionRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6810,7 +7284,7 @@ func NewListActionMetaRequest(server string, projectID openapi_types.UUID) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6830,7 +7304,7 @@ func NewListActionMetaRequest(server string, projectID openapi_types.UUID) (*htt return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6844,14 +7318,14 @@ func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, act var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionType", runtime.ParamLocationPath, actionType) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionType", actionType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -6871,7 +7345,7 @@ func NewGetActionPreviewRequest(server string, projectID openapi_types.UUID, act return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -6896,7 +7370,7 @@ func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, c var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6916,7 +7390,7 @@ func NewTestActionRequestWithBody(server string, projectID openapi_types.UUID, c return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -6932,14 +7406,14 @@ func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -6959,7 +7433,7 @@ func NewDeleteActionRequest(server string, projectID openapi_types.UUID, actionI return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -6973,14 +7447,14 @@ func NewGetActionRequest(server string, projectID openapi_types.UUID, actionID o var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7000,7 +7474,7 @@ func NewGetActionRequest(server string, projectID openapi_types.UUID, actionID o return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7025,14 +7499,14 @@ func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7052,7 +7526,7 @@ func NewUpdateActionRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -7068,21 +7542,21 @@ func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, ac var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "functionID", functionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7102,7 +7576,7 @@ func NewListActionSchemasRequest(server string, projectID openapi_types.UUID, ac return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7127,21 +7601,21 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "actionID", runtime.ParamLocationPath, actionID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "actionID", actionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "functionID", runtime.ParamLocationPath, functionID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "functionID", functionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -7161,7 +7635,7 @@ func NewTestActionFunctionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -7177,7 +7651,7 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7198,19 +7672,21 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7218,15 +7694,11 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7234,24 +7706,23 @@ func NewListProjectAdminsRequest(server string, projectID openapi_types.UUID, pa if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7265,14 +7736,14 @@ func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, a var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7292,7 +7763,7 @@ func NewDeleteProjectAdminRequest(server string, projectID openapi_types.UUID, a return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -7306,14 +7777,14 @@ func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, admi var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7333,7 +7804,7 @@ func NewGetProjectAdminRequest(server string, projectID openapi_types.UUID, admi return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7358,14 +7829,14 @@ func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7385,7 +7856,7 @@ func NewUpdateProjectAdminRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -7401,7 +7872,7 @@ func NewListAuthMethodsRequest(server string, projectID openapi_types.UUID, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7422,19 +7893,21 @@ func NewListAuthMethodsRequest(server string, projectID openapi_types.UUID, para } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7442,24 +7915,23 @@ func NewListAuthMethodsRequest(server string, projectID openapi_types.UUID, para if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7484,7 +7956,7 @@ func NewCreateAuthMethodRequestWithBody(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7504,7 +7976,7 @@ func NewCreateAuthMethodRequestWithBody(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -7520,14 +7992,14 @@ func NewDeleteAuthMethodRequest(server string, projectID openapi_types.UUID, met var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "methodID", runtime.ParamLocationPath, methodID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "methodID", methodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7547,7 +8019,7 @@ func NewDeleteAuthMethodRequest(server string, projectID openapi_types.UUID, met return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -7561,14 +8033,14 @@ func NewGetAuthMethodRequest(server string, projectID openapi_types.UUID, method var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "methodID", runtime.ParamLocationPath, methodID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "methodID", methodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7588,7 +8060,7 @@ func NewGetAuthMethodRequest(server string, projectID openapi_types.UUID, method return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7613,14 +8085,14 @@ func NewUpdateAuthMethodRequestWithBody(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "methodID", runtime.ParamLocationPath, methodID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "methodID", methodID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7640,7 +8112,7 @@ func NewUpdateAuthMethodRequestWithBody(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -7656,7 +8128,7 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7677,19 +8149,21 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7697,15 +8171,11 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7713,15 +8183,11 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7729,15 +8195,11 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.CampaignId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "campaign_id", runtime.ParamLocationQuery, *params.CampaignId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "campaign_id", *params.CampaignId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7745,15 +8207,11 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.ListId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "list_id", runtime.ParamLocationQuery, *params.ListId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "list_id", *params.ListId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -7761,24 +8219,23 @@ func NewListBroadcastsRequest(server string, projectID openapi_types.UUID, param if params.State != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "state", runtime.ParamLocationQuery, *params.State); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "state", *params.State, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7803,7 +8260,7 @@ func NewCreateBroadcastRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7823,7 +8280,7 @@ func NewCreateBroadcastRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -7839,14 +8296,14 @@ func NewCancelBroadcastRequest(server string, projectID openapi_types.UUID, broa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7866,7 +8323,7 @@ func NewCancelBroadcastRequest(server string, projectID openapi_types.UUID, broa return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -7880,14 +8337,14 @@ func NewGetBroadcastRequest(server string, projectID openapi_types.UUID, broadca var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7907,7 +8364,7 @@ func NewGetBroadcastRequest(server string, projectID openapi_types.UUID, broadca return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -7932,14 +8389,14 @@ func NewUpdateBroadcastRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -7959,7 +8416,7 @@ func NewUpdateBroadcastRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -7975,14 +8432,14 @@ func NewStreamBroadcastProgressRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8002,7 +8459,7 @@ func NewStreamBroadcastProgressRequest(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8016,14 +8473,14 @@ func NewSendBroadcastRequest(server string, projectID openapi_types.UUID, broadc var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8043,7 +8500,7 @@ func NewSendBroadcastRequest(server string, projectID openapi_types.UUID, broadc return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -8057,14 +8514,14 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "broadcastID", runtime.ParamLocationPath, broadcastID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "broadcastID", broadcastID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8085,19 +8542,21 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -8105,15 +8564,11 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -8121,24 +8576,23 @@ func NewGetBroadcastUsersRequest(server string, projectID openapi_types.UUID, br if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8152,7 +8606,7 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8173,19 +8627,21 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -8193,15 +8649,11 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -8209,15 +8661,11 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -8225,24 +8673,23 @@ func NewListCampaignsRequest(server string, projectID openapi_types.UUID, params if params.IncludeDeleted != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_deleted", runtime.ParamLocationQuery, *params.IncludeDeleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_deleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8267,7 +8714,7 @@ func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8287,7 +8734,7 @@ func NewCreateCampaignRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8303,14 +8750,14 @@ func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8330,7 +8777,7 @@ func NewDeleteCampaignRequest(server string, projectID openapi_types.UUID, campa return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -8344,14 +8791,14 @@ func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaign var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8371,7 +8818,7 @@ func NewGetCampaignRequest(server string, projectID openapi_types.UUID, campaign return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8396,14 +8843,14 @@ func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8423,7 +8870,7 @@ func NewUpdateCampaignRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -8439,14 +8886,14 @@ func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, ca var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8466,7 +8913,7 @@ func NewDuplicateCampaignRequest(server string, projectID openapi_types.UUID, ca return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -8491,14 +8938,14 @@ func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8518,7 +8965,7 @@ func NewCreateTemplateRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8534,21 +8981,21 @@ func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8568,7 +9015,7 @@ func NewDeleteTemplateRequest(server string, projectID openapi_types.UUID, campa return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -8582,21 +9029,21 @@ func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaign var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8616,7 +9063,7 @@ func NewGetTemplateRequest(server string, projectID openapi_types.UUID, campaign return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8641,21 +9088,21 @@ func NewUpdateTemplateRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8675,7 +9122,7 @@ func NewUpdateTemplateRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -8702,21 +9149,21 @@ func NewSendTestRequestWithBody(server string, projectID openapi_types.UUID, cam var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "templateID", runtime.ParamLocationPath, templateID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "templateID", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8736,7 +9183,7 @@ func NewSendTestRequestWithBody(server string, projectID openapi_types.UUID, cam return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8752,14 +9199,14 @@ func NewUnarchiveCampaignRequest(server string, projectID openapi_types.UUID, ca var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8779,7 +9226,7 @@ func NewUnarchiveCampaignRequest(server string, projectID openapi_types.UUID, ca return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -8793,14 +9240,14 @@ func NewGetCampaignUsersRequest(server string, projectID openapi_types.UUID, cam var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "campaignID", runtime.ParamLocationPath, campaignID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "campaignID", campaignID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8821,19 +9268,21 @@ func NewGetCampaignUsersRequest(server string, projectID openapi_types.UUID, cam } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -8841,24 +9290,23 @@ func NewGetCampaignUsersRequest(server string, projectID openapi_types.UUID, cam if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8872,7 +9320,7 @@ func NewListDocumentsRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8893,19 +9341,21 @@ func NewListDocumentsRequest(server string, projectID openapi_types.UUID, params } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -8913,24 +9363,23 @@ func NewListDocumentsRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -8944,7 +9393,7 @@ func NewUploadDocumentsRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -8964,7 +9413,7 @@ func NewUploadDocumentsRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -8980,14 +9429,14 @@ func NewDeleteDocumentRequest(server string, projectID openapi_types.UUID, docum var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "documentID", runtime.ParamLocationPath, documentID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "documentID", documentID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9007,7 +9456,7 @@ func NewDeleteDocumentRequest(server string, projectID openapi_types.UUID, docum return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -9021,14 +9470,14 @@ func NewGetDocumentRequest(server string, projectID openapi_types.UUID, document var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "documentID", runtime.ParamLocationPath, documentID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "documentID", documentID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9048,7 +9497,7 @@ func NewGetDocumentRequest(server string, projectID openapi_types.UUID, document return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9062,14 +9511,14 @@ func NewGetDocumentMetadataRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "documentID", runtime.ParamLocationPath, documentID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "documentID", documentID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9089,7 +9538,7 @@ func NewGetDocumentMetadataRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9103,7 +9552,7 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9124,19 +9573,21 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9144,15 +9595,11 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9160,24 +9607,23 @@ func NewListEmailTemplatesRequest(server string, projectID openapi_types.UUID, p if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9191,7 +9637,7 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9212,19 +9658,21 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9232,15 +9680,11 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Role != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "role", runtime.ParamLocationQuery, *params.Role); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "role", *params.Role, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9248,15 +9692,11 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.ExpiresAfter != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires_after", runtime.ParamLocationQuery, *params.ExpiresAfter); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expires_after", *params.ExpiresAfter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9264,15 +9704,11 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.ExpiresBefore != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "expires_before", runtime.ParamLocationQuery, *params.ExpiresBefore); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "expires_before", *params.ExpiresBefore, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9280,15 +9716,11 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.InviterAdminId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "inviter_admin_id", runtime.ParamLocationQuery, *params.InviterAdminId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "inviter_admin_id", *params.InviterAdminId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9296,15 +9728,11 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9312,15 +9740,11 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9328,24 +9752,23 @@ func NewListProjectInvitesRequest(server string, projectID openapi_types.UUID, p if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9370,7 +9793,7 @@ func NewCreateProjectInviteRequestWithBody(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9390,7 +9813,7 @@ func NewCreateProjectInviteRequestWithBody(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -9406,14 +9829,14 @@ func NewRevokeProjectInviteRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "inviteID", runtime.ParamLocationPath, inviteID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "inviteID", inviteID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9433,7 +9856,7 @@ func NewRevokeProjectInviteRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -9447,7 +9870,7 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9468,19 +9891,21 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9488,15 +9913,11 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9504,15 +9925,11 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -9520,24 +9937,23 @@ func NewListJourneysRequest(server string, projectID openapi_types.UUID, params if params.IncludeDeleted != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_deleted", runtime.ParamLocationQuery, *params.IncludeDeleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_deleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9562,7 +9978,7 @@ func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9583,28 +9999,33 @@ func NewCreateJourneyRequestWithBody(server string, projectID openapi_types.UUID } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Publish != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "publish", runtime.ParamLocationQuery, *params.Publish); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "publish", *params.Publish, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -9620,14 +10041,14 @@ func NewDeleteJourneyRequest(server string, projectID openapi_types.UUID, journe var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9647,7 +10068,7 @@ func NewDeleteJourneyRequest(server string, projectID openapi_types.UUID, journe return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -9661,14 +10082,14 @@ func NewGetJourneyRequest(server string, projectID openapi_types.UUID, journeyID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9688,7 +10109,7 @@ func NewGetJourneyRequest(server string, projectID openapi_types.UUID, journeyID return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9713,14 +10134,14 @@ func NewUpdateJourneyRequestWithBody(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9740,7 +10161,7 @@ func NewUpdateJourneyRequestWithBody(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -9756,14 +10177,14 @@ func NewDuplicateJourneyRequest(server string, projectID openapi_types.UUID, jou var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9783,7 +10204,7 @@ func NewDuplicateJourneyRequest(server string, projectID openapi_types.UUID, jou return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -9797,14 +10218,14 @@ func NewPublishJourneyRequest(server string, projectID openapi_types.UUID, journ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9824,7 +10245,7 @@ func NewPublishJourneyRequest(server string, projectID openapi_types.UUID, journ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -9838,14 +10259,14 @@ func NewGetJourneyStepsRequest(server string, projectID openapi_types.UUID, jour var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9865,7 +10286,7 @@ func NewGetJourneyStepsRequest(server string, projectID openapi_types.UUID, jour return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -9890,14 +10311,14 @@ func NewSetJourneyStepsRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9917,7 +10338,7 @@ func NewSetJourneyStepsRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -9933,14 +10354,14 @@ func NewUnarchiveJourneyRequest(server string, projectID openapi_types.UUID, jou var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -9960,7 +10381,7 @@ func NewUnarchiveJourneyRequest(server string, projectID openapi_types.UUID, jou return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -9974,21 +10395,21 @@ func NewCancelUserJourneyRequest(server string, projectID openapi_types.UUID, jo var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10008,7 +10429,7 @@ func NewCancelUserJourneyRequest(server string, projectID openapi_types.UUID, jo return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -10022,21 +10443,21 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10056,7 +10477,7 @@ func NewStreamUserJourneyStepsRequest(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10081,21 +10502,21 @@ func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10115,7 +10536,7 @@ func NewTriggerUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10142,21 +10563,21 @@ func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10176,7 +10597,7 @@ func NewAdvanceUserStepRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -10192,21 +10613,21 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10226,7 +10647,7 @@ func NewGetUserJourneyStateRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10240,14 +10661,14 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "journeyID", runtime.ParamLocationPath, journeyID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "journeyID", journeyID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10267,7 +10688,7 @@ func NewVersionJourneyRequest(server string, projectID openapi_types.UUID, journ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10281,7 +10702,7 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10302,19 +10723,21 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -10322,15 +10745,11 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -10338,15 +10757,11 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -10354,24 +10769,23 @@ func NewListListsRequest(server string, projectID openapi_types.UUID, params *Li if params.IncludeDeleted != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_deleted", runtime.ParamLocationQuery, *params.IncludeDeleted); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_deleted", *params.IncludeDeleted, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10396,7 +10810,7 @@ func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, c var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10416,7 +10830,7 @@ func NewCreateListRequestWithBody(server string, projectID openapi_types.UUID, c return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10432,14 +10846,14 @@ func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID op var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10459,7 +10873,7 @@ func NewDeleteListRequest(server string, projectID openapi_types.UUID, listID op return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -10473,14 +10887,14 @@ func NewGetListRequest(server string, projectID openapi_types.UUID, listID opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10500,7 +10914,7 @@ func NewGetListRequest(server string, projectID openapi_types.UUID, listID opena return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10525,14 +10939,14 @@ func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, l var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10552,7 +10966,7 @@ func NewUpdateListRequestWithBody(server string, projectID openapi_types.UUID, l return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -10568,14 +10982,14 @@ func NewDuplicateListRequest(server string, projectID openapi_types.UUID, listID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10595,7 +11009,7 @@ func NewDuplicateListRequest(server string, projectID openapi_types.UUID, listID return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10609,14 +11023,14 @@ func NewUnarchiveListRequest(server string, projectID openapi_types.UUID, listID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10636,7 +11050,7 @@ func NewUnarchiveListRequest(server string, projectID openapi_types.UUID, listID return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -10650,14 +11064,14 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10678,19 +11092,21 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -10698,15 +11114,11 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -10714,24 +11126,23 @@ func NewGetListUsersRequest(server string, projectID openapi_types.UUID, listID if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10745,14 +11156,14 @@ func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, lis var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10773,28 +11184,33 @@ func NewPreviewListUsersRequest(server string, projectID openapi_types.UUID, lis } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10808,14 +11224,14 @@ func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "listID", runtime.ParamLocationPath, listID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "listID", listID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10835,7 +11251,7 @@ func NewImportListUsersRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10851,7 +11267,7 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10872,19 +11288,21 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -10892,24 +11310,23 @@ func NewListLocalesRequest(server string, projectID openapi_types.UUID, params * if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -10934,7 +11351,7 @@ func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10954,7 +11371,7 @@ func NewCreateLocaleRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -10970,14 +11387,14 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "localeID", localeID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -10997,7 +11414,7 @@ func NewDeleteLocaleRequest(server string, projectID openapi_types.UUID, localeI return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -11011,14 +11428,14 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "localeID", runtime.ParamLocationPath, localeID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "localeID", localeID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11038,7 +11455,7 @@ func NewGetLocaleRequest(server string, projectID openapi_types.UUID, localeID s return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11052,7 +11469,7 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11073,19 +11490,21 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11093,24 +11512,23 @@ func NewListProvidersRequest(server string, projectID openapi_types.UUID, params if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11124,7 +11542,7 @@ func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*h var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11144,7 +11562,7 @@ func NewListProviderMetaRequest(server string, projectID openapi_types.UUID) (*h return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11169,14 +11587,14 @@ func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11196,7 +11614,7 @@ func NewCreateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -11212,21 +11630,21 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, pType var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "providerID", providerID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11246,7 +11664,7 @@ func NewDeleteProviderRequest(server string, projectID openapi_types.UUID, pType return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -11260,21 +11678,21 @@ func NewGetProviderRequest(server string, projectID openapi_types.UUID, pType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "providerID", providerID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11294,7 +11712,7 @@ func NewGetProviderRequest(server string, projectID openapi_types.UUID, pType st return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11319,21 +11737,21 @@ func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "type", runtime.ParamLocationPath, pType) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "type", pType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "providerID", runtime.ParamLocationPath, providerID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "providerID", providerID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11353,7 +11771,7 @@ func NewUpdateProviderRequestWithBody(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -11369,7 +11787,7 @@ func NewListProjectPushProvidersRequest(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11389,7 +11807,7 @@ func NewListProjectPushProvidersRequest(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11403,14 +11821,14 @@ func NewDeleteProjectPushProviderRequest(server string, projectID openapi_types. var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "platform", runtime.ParamLocationPath, platform) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "platform", platform, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11430,7 +11848,7 @@ func NewDeleteProjectPushProviderRequest(server string, projectID openapi_types. return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -11455,14 +11873,14 @@ func NewUpsertProjectPushProviderRequestWithBody(server string, projectID openap var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "platform", runtime.ParamLocationPath, platform) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "platform", platform, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11482,7 +11900,7 @@ func NewUpsertProjectPushProviderRequestWithBody(server string, projectID openap return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -11498,7 +11916,7 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11519,19 +11937,21 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.ProviderId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "provider_id", runtime.ParamLocationQuery, *params.ProviderId); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "provider_id", *params.ProviderId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11539,15 +11959,11 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, if params.Channel != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, *params.Channel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11555,15 +11971,11 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11571,24 +11983,23 @@ func NewListSenderIdentitiesRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11613,7 +12024,7 @@ func NewCreateSenderIdentityRequestWithBody(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11633,7 +12044,7 @@ func NewCreateSenderIdentityRequestWithBody(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -11649,14 +12060,14 @@ func NewDeleteSenderIdentityRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "senderIdentityID", runtime.ParamLocationPath, senderIdentityID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "senderIdentityID", senderIdentityID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11676,7 +12087,7 @@ func NewDeleteSenderIdentityRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -11690,14 +12101,14 @@ func NewGetSenderIdentityRequest(server string, projectID openapi_types.UUID, se var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "senderIdentityID", runtime.ParamLocationPath, senderIdentityID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "senderIdentityID", senderIdentityID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11717,7 +12128,7 @@ func NewGetSenderIdentityRequest(server string, projectID openapi_types.UUID, se return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11731,7 +12142,7 @@ func NewListOrganizationEventSchemasRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11751,7 +12162,7 @@ func NewListOrganizationEventSchemasRequest(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11765,14 +12176,14 @@ func NewDeleteOrganizationEventSchemaRequest(server string, projectID openapi_ty var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "eventID", runtime.ParamLocationPath, eventID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "eventID", eventID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11792,7 +12203,7 @@ func NewDeleteOrganizationEventSchemaRequest(server string, projectID openapi_ty return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -11806,7 +12217,7 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11827,19 +12238,21 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11847,15 +12260,11 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -11863,24 +12272,23 @@ func NewListOrganizationsRequest(server string, projectID openapi_types.UUID, pa if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11905,7 +12313,7 @@ func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11925,7 +12333,7 @@ func NewUpsertOrganizationRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -11941,7 +12349,7 @@ func NewListOrganizationSchemasRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11961,7 +12369,7 @@ func NewListOrganizationSchemasRequest(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -11975,7 +12383,7 @@ func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_ty var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11995,7 +12403,7 @@ func NewListOrganizationMemberSchemasRequest(server string, projectID openapi_ty return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -12009,14 +12417,14 @@ func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, o var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12036,7 +12444,7 @@ func NewDeleteOrganizationRequest(server string, projectID openapi_types.UUID, o return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -12050,14 +12458,14 @@ func NewGetOrganizationRequest(server string, projectID openapi_types.UUID, orga var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12077,7 +12485,7 @@ func NewGetOrganizationRequest(server string, projectID openapi_types.UUID, orga return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -12102,14 +12510,14 @@ func NewUpdateOrganizationRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12129,7 +12537,7 @@ func NewUpdateOrganizationRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -12145,14 +12553,14 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12173,19 +12581,21 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12193,15 +12603,11 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12209,24 +12615,23 @@ func NewGetOrganizationEventsRequest(server string, projectID openapi_types.UUID if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -12251,14 +12656,14 @@ func NewCreateOrganizationEventRequestWithBody(server string, projectID openapi_ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12278,7 +12683,7 @@ func NewCreateOrganizationEventRequestWithBody(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -12294,21 +12699,21 @@ func NewDeleteOrganizationExternalIDRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "identifierID", runtime.ParamLocationPath, identifierID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "identifierID", identifierID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12328,7 +12733,7 @@ func NewDeleteOrganizationExternalIDRequest(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -12342,14 +12747,14 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12370,19 +12775,21 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12390,15 +12797,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12406,15 +12809,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12422,15 +12821,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12438,15 +12833,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Channel != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, *params.Channel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12454,15 +12845,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.IncludeArchived != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_archived", runtime.ParamLocationQuery, *params.IncludeArchived); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_archived", *params.IncludeArchived, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12470,15 +12857,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.IncludeScheduled != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_scheduled", runtime.ParamLocationQuery, *params.IncludeScheduled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_scheduled", *params.IncludeScheduled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12486,15 +12869,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12502,15 +12881,11 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12518,24 +12893,23 @@ func NewGetOrganizationInboxMessagesRequest(server string, projectID openapi_typ if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -12560,14 +12934,14 @@ func NewCreateOrganizationInboxMessageRequestWithBody(server string, projectID o var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12587,7 +12961,7 @@ func NewCreateOrganizationInboxMessageRequestWithBody(server string, projectID o return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -12603,21 +12977,21 @@ func NewArchiveOrganizationInboxMessageRequest(server string, projectID openapi_ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12637,7 +13011,7 @@ func NewArchiveOrganizationInboxMessageRequest(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -12651,21 +13025,21 @@ func NewReadOrganizationInboxMessageRequest(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12685,7 +13059,7 @@ func NewReadOrganizationInboxMessageRequest(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -12710,21 +13084,21 @@ func NewRescheduleOrganizationInboxMessageRequestWithBody(server string, project var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12744,7 +13118,7 @@ func NewRescheduleOrganizationInboxMessageRequestWithBody(server string, project return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -12760,21 +13134,21 @@ func NewUnarchiveOrganizationInboxMessageRequest(server string, projectID openap var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12794,7 +13168,7 @@ func NewUnarchiveOrganizationInboxMessageRequest(server string, projectID openap return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -12808,21 +13182,21 @@ func NewUnreadOrganizationInboxMessageRequest(server string, projectID openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12842,7 +13216,7 @@ func NewUnreadOrganizationInboxMessageRequest(server string, projectID openapi_t return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -12856,14 +13230,14 @@ func NewGetOrganizationScheduledRequest(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12884,19 +13258,21 @@ func NewGetOrganizationScheduledRequest(server string, projectID openapi_types.U } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -12904,24 +13280,23 @@ func NewGetOrganizationScheduledRequest(server string, projectID openapi_types.U if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -12946,14 +13321,14 @@ func NewUpsertOrganizationScheduledRequestWithBody(server string, projectID open var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -12973,7 +13348,7 @@ func NewUpsertOrganizationScheduledRequestWithBody(server string, projectID open return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -12989,21 +13364,21 @@ func NewDeleteOrganizationScheduledRequest(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13023,7 +13398,7 @@ func NewDeleteOrganizationScheduledRequest(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -13048,21 +13423,21 @@ func NewUpdateOrganizationScheduledRequestWithBody(server string, projectID open var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13082,7 +13457,7 @@ func NewUpdateOrganizationScheduledRequestWithBody(server string, projectID open return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -13098,14 +13473,14 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13126,19 +13501,21 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -13146,24 +13523,23 @@ func NewListOrganizationMembersRequest(server string, projectID openapi_types.UU if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -13188,14 +13564,14 @@ func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_ty var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13215,7 +13591,7 @@ func NewAddOrganizationMemberRequestWithBody(server string, projectID openapi_ty return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -13231,21 +13607,21 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationID", runtime.ParamLocationPath, organizationID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "organizationID", organizationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13265,7 +13641,7 @@ func NewRemoveOrganizationMemberRequest(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -13279,7 +13655,7 @@ func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13299,7 +13675,7 @@ func NewListUserEventSchemasRequest(server string, projectID openapi_types.UUID) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -13313,14 +13689,14 @@ func NewDeleteUserEventSchemaRequest(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "eventID", runtime.ParamLocationPath, eventID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "eventID", eventID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13340,7 +13716,7 @@ func NewDeleteUserEventSchemaRequest(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -13354,7 +13730,7 @@ func NewListScheduledSchemasRequest(server string, projectID openapi_types.UUID) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13374,7 +13750,7 @@ func NewListScheduledSchemasRequest(server string, projectID openapi_types.UUID) return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -13388,14 +13764,14 @@ func NewDeleteScheduledSchemaRequest(server string, projectID openapi_types.UUID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "scheduledID", runtime.ParamLocationPath, scheduledID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "scheduledID", scheduledID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13415,7 +13791,7 @@ func NewDeleteScheduledSchemaRequest(server string, projectID openapi_types.UUID return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -13440,14 +13816,14 @@ func NewCreateScheduleOffsetRequestWithBody(server string, projectID openapi_typ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "scheduledID", runtime.ParamLocationPath, scheduledID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "scheduledID", scheduledID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13467,7 +13843,7 @@ func NewCreateScheduleOffsetRequestWithBody(server string, projectID openapi_typ return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -13483,7 +13859,7 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13504,19 +13880,21 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -13524,15 +13902,11 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -13540,24 +13914,23 @@ func NewListUsersRequest(server string, projectID openapi_types.UUID, params *Li if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -13582,7 +13955,7 @@ func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13602,7 +13975,7 @@ func NewIdentifyUserRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -13618,7 +13991,7 @@ func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13638,7 +14011,7 @@ func NewImportUsersRequestWithBody(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -13654,7 +14027,7 @@ func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*ht var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13674,7 +14047,7 @@ func NewListUserSchemasRequest(server string, projectID openapi_types.UUID) (*ht return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -13688,14 +14061,14 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13715,7 +14088,7 @@ func NewDeleteUserRequest(server string, projectID openapi_types.UUID, userID op return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -13729,14 +14102,14 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13756,7 +14129,7 @@ func NewGetUserRequest(server string, projectID openapi_types.UUID, userID opena return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -13781,14 +14154,14 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13808,7 +14181,7 @@ func NewUpdateUserRequestWithBody(server string, projectID openapi_types.UUID, u return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -13824,14 +14197,14 @@ func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13851,7 +14224,7 @@ func NewGetUserDevicesRequest(server string, projectID openapi_types.UUID, userI return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -13876,14 +14249,14 @@ func NewCreateUserDeviceRequestWithBody(server string, projectID openapi_types.U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13903,7 +14276,7 @@ func NewCreateUserDeviceRequestWithBody(server string, projectID openapi_types.U return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -13919,21 +14292,21 @@ func NewDeleteUserDeviceRequest(server string, projectID openapi_types.UUID, use var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "deviceID", runtime.ParamLocationPath, deviceID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "deviceID", deviceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13953,7 +14326,7 @@ func NewDeleteUserDeviceRequest(server string, projectID openapi_types.UUID, use return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -13967,14 +14340,14 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -13995,19 +14368,21 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14015,15 +14390,11 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14031,24 +14402,23 @@ func NewGetUserEventsRequest(server string, projectID openapi_types.UUID, userID if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -14073,14 +14443,14 @@ func NewCreateUserEventRequestWithBody(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14100,7 +14470,7 @@ func NewCreateUserEventRequestWithBody(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -14116,21 +14486,21 @@ func NewDeleteUserExternalIDRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "identifierID", runtime.ParamLocationPath, identifierID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "identifierID", identifierID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14150,7 +14520,7 @@ func NewDeleteUserExternalIDRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -14164,14 +14534,14 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14192,19 +14562,21 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14212,15 +14584,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Tags != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "tags", *params.Tags, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14228,15 +14596,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.MessageSource != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "message_source", runtime.ParamLocationQuery, *params.MessageSource); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "message_source", *params.MessageSource, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14244,15 +14608,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Priority != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "priority", runtime.ParamLocationQuery, *params.Priority); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "priority", *params.Priority, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14260,15 +14620,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Channel != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "channel", runtime.ParamLocationQuery, *params.Channel); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channel", *params.Channel, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14276,15 +14632,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.IncludeArchived != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_archived", runtime.ParamLocationQuery, *params.IncludeArchived); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_archived", *params.IncludeArchived, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14292,15 +14644,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.IncludeScheduled != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "include_scheduled", runtime.ParamLocationQuery, *params.IncludeScheduled); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "include_scheduled", *params.IncludeScheduled, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14308,15 +14656,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14324,15 +14668,11 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14340,24 +14680,23 @@ func NewGetUserInboxMessagesRequest(server string, projectID openapi_types.UUID, if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -14382,14 +14721,14 @@ func NewCreateUserInboxMessageRequestWithBody(server string, projectID openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14409,7 +14748,7 @@ func NewCreateUserInboxMessageRequestWithBody(server string, projectID openapi_t return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -14425,21 +14764,21 @@ func NewArchiveUserInboxMessageRequest(server string, projectID openapi_types.UU var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14459,7 +14798,7 @@ func NewArchiveUserInboxMessageRequest(server string, projectID openapi_types.UU return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -14473,21 +14812,21 @@ func NewReadUserInboxMessageRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14507,7 +14846,7 @@ func NewReadUserInboxMessageRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -14532,21 +14871,21 @@ func NewRescheduleUserInboxMessageRequestWithBody(server string, projectID opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14566,7 +14905,7 @@ func NewRescheduleUserInboxMessageRequestWithBody(server string, projectID opena return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -14582,21 +14921,21 @@ func NewUnarchiveUserInboxMessageRequest(server string, projectID openapi_types. var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14616,7 +14955,7 @@ func NewUnarchiveUserInboxMessageRequest(server string, projectID openapi_types. return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -14630,21 +14969,21 @@ func NewUnreadUserInboxMessageRequest(server string, projectID openapi_types.UUI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "messageID", runtime.ParamLocationPath, messageID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "messageID", messageID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14664,7 +15003,7 @@ func NewUnreadUserInboxMessageRequest(server string, projectID openapi_types.UUI return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -14678,14 +15017,14 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14706,19 +15045,21 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14726,24 +15067,23 @@ func NewGetUserJourneysRequest(server string, projectID openapi_types.UUID, user if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -14757,14 +15097,14 @@ func NewGetUserScheduledRequest(server string, projectID openapi_types.UUID, use var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14785,19 +15125,21 @@ func NewGetUserScheduledRequest(server string, projectID openapi_types.UUID, use } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -14805,24 +15147,23 @@ func NewGetUserScheduledRequest(server string, projectID openapi_types.UUID, use if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -14847,14 +15188,14 @@ func NewUpsertUserScheduledRequestWithBody(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14874,7 +15215,7 @@ func NewUpsertUserScheduledRequestWithBody(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest("PUT", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -14890,21 +15231,21 @@ func NewDeleteUserScheduledRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14924,7 +15265,7 @@ func NewDeleteUserScheduledRequest(server string, projectID openapi_types.UUID, return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -14949,21 +15290,21 @@ func NewUpdateUserScheduledRequestWithBody(server string, projectID openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "scheduledInstanceID", runtime.ParamLocationPath, scheduledInstanceID) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "scheduledInstanceID", scheduledInstanceID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14983,7 +15324,7 @@ func NewUpdateUserScheduledRequestWithBody(server string, projectID openapi_type return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -14999,14 +15340,14 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15027,19 +15368,21 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15047,15 +15390,11 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15063,24 +15402,23 @@ func NewGetUserOrganizationsRequest(server string, projectID openapi_types.UUID, if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15094,14 +15432,14 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15122,19 +15460,21 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15142,24 +15482,23 @@ func NewGetUserSubscriptionsRequest(server string, projectID openapi_types.UUID, if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15184,14 +15523,14 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userID", runtime.ParamLocationPath, userID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userID", userID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15211,7 +15550,7 @@ func NewUpdateUserSubscriptionsRequestWithBody(server string, projectID openapi_ return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -15227,7 +15566,7 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15248,19 +15587,21 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15268,24 +15609,23 @@ func NewListSubscriptionsRequest(server string, projectID openapi_types.UUID, pa if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15310,7 +15650,7 @@ func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15330,7 +15670,7 @@ func NewCreateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -15346,14 +15686,14 @@ func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subs var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subscriptionID", subscriptionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15373,7 +15713,7 @@ func NewGetSubscriptionRequest(server string, projectID openapi_types.UUID, subs return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15398,14 +15738,14 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "subscriptionID", runtime.ParamLocationPath, subscriptionID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "subscriptionID", subscriptionID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15425,7 +15765,7 @@ func NewUpdateSubscriptionRequestWithBody(server string, projectID openapi_types return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -15441,7 +15781,7 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15462,19 +15802,21 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15482,15 +15824,11 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15498,24 +15836,23 @@ func NewListTagsRequest(server string, projectID openapi_types.UUID, params *Lis if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15540,7 +15877,7 @@ func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, co var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15560,7 +15897,7 @@ func NewCreateTagRequestWithBody(server string, projectID openapi_types.UUID, co return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -15576,14 +15913,14 @@ func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID open var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tagID", tagID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15603,7 +15940,7 @@ func NewDeleteTagRequest(server string, projectID openapi_types.UUID, tagID open return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -15617,14 +15954,14 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tagID", tagID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15644,7 +15981,7 @@ func NewGetTagRequest(server string, projectID openapi_types.UUID, tagID openapi return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15669,14 +16006,14 @@ func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, ta var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "projectID", runtime.ParamLocationPath, projectID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "projectID", projectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagID", runtime.ParamLocationPath, tagID) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "tagID", tagID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15696,7 +16033,7 @@ func NewUpdateTagRequestWithBody(server string, projectID openapi_types.UUID, ta return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -15726,19 +16063,21 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques } if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15746,15 +16085,11 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } @@ -15762,24 +16097,23 @@ func NewListAdminsRequest(server string, params *ListAdminsParams) (*http.Reques if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { - return nil, err - } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "search", *params.Search, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { - for k, v := range parsed { - for _, v2 := range v { - queryValues.Add(k, v2) - } + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) } } } - queryURL.RawQuery = queryValues.Encode() + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15817,7 +16151,7 @@ func NewCreateAdminRequestWithBody(server string, contentType string, body io.Re return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -15833,7 +16167,7 @@ func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15853,7 +16187,7 @@ func NewDeleteAdminRequest(server string, adminID openapi_types.UUID) (*http.Req return nil, err } - req, err := http.NewRequest("DELETE", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -15867,7 +16201,7 @@ func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Reques var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15887,7 +16221,7 @@ func NewGetAdminRequest(server string, adminID openapi_types.UUID) (*http.Reques return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15912,7 +16246,7 @@ func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, co var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "adminID", runtime.ParamLocationPath, adminID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "adminID", adminID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -15932,7 +16266,7 @@ func NewUpdateAdminRequestWithBody(server string, adminID openapi_types.UUID, co return nil, err } - req, err := http.NewRequest("PATCH", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } @@ -15961,7 +16295,7 @@ func NewWhoamiRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -15986,7 +16320,7 @@ func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriv var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "driver", driver, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16006,7 +16340,7 @@ func NewAuthCallbackRequestWithBody(server string, driver AuthCallbackParamsDriv return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), body) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } @@ -16035,7 +16369,7 @@ func NewGetAuthMethodsRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -16049,7 +16383,7 @@ func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "driver", runtime.ParamLocationPath, driver) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "driver", driver, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16069,7 +16403,7 @@ func NewAuthWebhookRequest(server string, driver AuthWebhookParamsDriver) (*http return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -16096,7 +16430,7 @@ func NewListMyInvitesRequest(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest("GET", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -16110,7 +16444,7 @@ func NewAcceptProjectInviteRequest(server string, inviteID openapi_types.UUID) ( var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "inviteID", runtime.ParamLocationPath, inviteID) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "inviteID", inviteID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -16130,7 +16464,7 @@ func NewAcceptProjectInviteRequest(server string, inviteID openapi_types.UUID) ( return nil, err } - req, err := http.NewRequest("POST", queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -16851,6 +17185,14 @@ func (r SetActiveOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r SetActiveOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListMyOrganizationsResponse struct { Body []byte HTTPResponse *http.Response @@ -16876,6 +17218,14 @@ func (r ListMyOrganizationsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListMyOrganizationsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetProfileResponse struct { Body []byte HTTPResponse *http.Response @@ -16899,6 +17249,14 @@ func (r GetProfileResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProfileResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListProjectsResponse struct { Body []byte HTTPResponse *http.Response @@ -16922,6 +17280,14 @@ func (r ListProjectsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListProjectsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -16945,6 +17311,14 @@ func (r CreateProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -16967,6 +17341,14 @@ func (r DeleteProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -16990,6 +17372,14 @@ func (r GetProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateProjectResponse struct { Body []byte HTTPResponse *http.Response @@ -17013,6 +17403,14 @@ func (r UpdateProjectResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateProjectResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListActionsResponse struct { Body []byte HTTPResponse *http.Response @@ -17036,6 +17434,14 @@ func (r ListActionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListActionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17059,6 +17465,14 @@ func (r CreateActionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateActionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListActionMetaResponse struct { Body []byte HTTPResponse *http.Response @@ -17082,6 +17496,14 @@ func (r ListActionMetaResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListActionMetaResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetActionPreviewResponse struct { Body []byte HTTPResponse *http.Response @@ -17104,6 +17526,14 @@ func (r GetActionPreviewResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetActionPreviewResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type TestActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17127,6 +17557,14 @@ func (r TestActionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r TestActionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17149,6 +17587,14 @@ func (r DeleteActionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteActionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17172,6 +17618,14 @@ func (r GetActionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetActionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateActionResponse struct { Body []byte HTTPResponse *http.Response @@ -17195,6 +17649,14 @@ func (r UpdateActionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateActionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListActionSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -17218,6 +17680,14 @@ func (r ListActionSchemasResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListActionSchemasResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type TestActionFunctionResponse struct { Body []byte HTTPResponse *http.Response @@ -17241,6 +17711,14 @@ func (r TestActionFunctionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r TestActionFunctionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListProjectAdminsResponse struct { Body []byte HTTPResponse *http.Response @@ -17264,6 +17742,14 @@ func (r ListProjectAdminsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListProjectAdminsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteProjectAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -17286,6 +17772,14 @@ func (r DeleteProjectAdminResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteProjectAdminResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetProjectAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -17309,6 +17803,14 @@ func (r GetProjectAdminResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProjectAdminResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateProjectAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -17332,6 +17834,14 @@ func (r UpdateProjectAdminResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateProjectAdminResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListAuthMethodsResponse struct { Body []byte HTTPResponse *http.Response @@ -17355,6 +17865,14 @@ func (r ListAuthMethodsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListAuthMethodsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17378,6 +17896,14 @@ func (r CreateAuthMethodResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateAuthMethodResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17400,6 +17926,14 @@ func (r DeleteAuthMethodResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteAuthMethodResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17423,6 +17957,14 @@ func (r GetAuthMethodResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAuthMethodResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateAuthMethodResponse struct { Body []byte HTTPResponse *http.Response @@ -17446,6 +17988,14 @@ func (r UpdateAuthMethodResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateAuthMethodResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListBroadcastsResponse struct { Body []byte HTTPResponse *http.Response @@ -17469,6 +18019,14 @@ func (r ListBroadcastsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListBroadcastsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -17492,6 +18050,14 @@ func (r CreateBroadcastResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateBroadcastResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CancelBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -17515,6 +18081,14 @@ func (r CancelBroadcastResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CancelBroadcastResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -17538,6 +18112,14 @@ func (r GetBroadcastResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetBroadcastResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -17561,6 +18143,14 @@ func (r UpdateBroadcastResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateBroadcastResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type StreamBroadcastProgressResponse struct { Body []byte HTTPResponse *http.Response @@ -17583,6 +18173,14 @@ func (r StreamBroadcastProgressResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r StreamBroadcastProgressResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type SendBroadcastResponse struct { Body []byte HTTPResponse *http.Response @@ -17606,6 +18204,14 @@ func (r SendBroadcastResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r SendBroadcastResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetBroadcastUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -17642,6 +18248,14 @@ func (r GetBroadcastUsersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetBroadcastUsersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListCampaignsResponse struct { Body []byte HTTPResponse *http.Response @@ -17665,6 +18279,14 @@ func (r ListCampaignsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListCampaignsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -17688,6 +18310,14 @@ func (r CreateCampaignResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateCampaignResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -17710,6 +18340,14 @@ func (r DeleteCampaignResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteCampaignResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -17735,6 +18373,14 @@ func (r GetCampaignResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetCampaignResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -17758,6 +18404,14 @@ func (r UpdateCampaignResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateCampaignResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DuplicateCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -17781,6 +18435,14 @@ func (r DuplicateCampaignResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DuplicateCampaignResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -17804,6 +18466,14 @@ func (r CreateTemplateResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateTemplateResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -17826,6 +18496,14 @@ func (r DeleteTemplateResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteTemplateResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -17851,6 +18529,14 @@ func (r GetTemplateResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetTemplateResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateTemplateResponse struct { Body []byte HTTPResponse *http.Response @@ -17874,6 +18560,14 @@ func (r UpdateTemplateResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateTemplateResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type SendTestResponse struct { Body []byte HTTPResponse *http.Response @@ -17896,6 +18590,14 @@ func (r SendTestResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r SendTestResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UnarchiveCampaignResponse struct { Body []byte HTTPResponse *http.Response @@ -17918,6 +18620,14 @@ func (r UnarchiveCampaignResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UnarchiveCampaignResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetCampaignUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -17946,6 +18656,14 @@ func (r GetCampaignUsersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetCampaignUsersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListDocumentsResponse struct { Body []byte HTTPResponse *http.Response @@ -17969,6 +18687,14 @@ func (r ListDocumentsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListDocumentsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UploadDocumentsResponse struct { Body []byte HTTPResponse *http.Response @@ -17995,6 +18721,14 @@ func (r UploadDocumentsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UploadDocumentsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteDocumentResponse struct { Body []byte HTTPResponse *http.Response @@ -18017,6 +18751,14 @@ func (r DeleteDocumentResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteDocumentResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetDocumentResponse struct { Body []byte HTTPResponse *http.Response @@ -18039,6 +18781,14 @@ func (r GetDocumentResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetDocumentResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetDocumentMetadataResponse struct { Body []byte HTTPResponse *http.Response @@ -18062,6 +18812,14 @@ func (r GetDocumentMetadataResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetDocumentMetadataResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListEmailTemplatesResponse struct { Body []byte HTTPResponse *http.Response @@ -18085,6 +18843,14 @@ func (r ListEmailTemplatesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListEmailTemplatesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListProjectInvitesResponse struct { Body []byte HTTPResponse *http.Response @@ -18108,6 +18874,14 @@ func (r ListProjectInvitesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListProjectInvitesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateProjectInviteResponse struct { Body []byte HTTPResponse *http.Response @@ -18131,6 +18905,14 @@ func (r CreateProjectInviteResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateProjectInviteResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RevokeProjectInviteResponse struct { Body []byte HTTPResponse *http.Response @@ -18153,6 +18935,14 @@ func (r RevokeProjectInviteResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RevokeProjectInviteResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListJourneysResponse struct { Body []byte HTTPResponse *http.Response @@ -18176,6 +18966,14 @@ func (r ListJourneysResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListJourneysResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18199,6 +18997,14 @@ func (r CreateJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18221,6 +19027,14 @@ func (r DeleteJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18244,6 +19058,14 @@ func (r GetJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18267,6 +19089,14 @@ func (r UpdateJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DuplicateJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18290,6 +19120,14 @@ func (r DuplicateJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DuplicateJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PublishJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18313,6 +19151,14 @@ func (r PublishJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PublishJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response @@ -18336,6 +19182,14 @@ func (r GetJourneyStepsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetJourneyStepsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type SetJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response @@ -18359,6 +19213,14 @@ func (r SetJourneyStepsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r SetJourneyStepsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UnarchiveJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18381,6 +19243,14 @@ func (r UnarchiveJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UnarchiveJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CancelUserJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18403,6 +19273,14 @@ func (r CancelUserJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CancelUserJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type StreamUserJourneyStepsResponse struct { Body []byte HTTPResponse *http.Response @@ -18425,6 +19303,14 @@ func (r StreamUserJourneyStepsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r StreamUserJourneyStepsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type TriggerUserResponse struct { Body []byte HTTPResponse *http.Response @@ -18447,6 +19333,14 @@ func (r TriggerUserResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r TriggerUserResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type AdvanceUserStepResponse struct { Body []byte HTTPResponse *http.Response @@ -18469,6 +19363,14 @@ func (r AdvanceUserStepResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AdvanceUserStepResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserJourneyStateResponse struct { Body []byte HTTPResponse *http.Response @@ -18496,6 +19398,14 @@ func (r GetUserJourneyStateResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserJourneyStateResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type VersionJourneyResponse struct { Body []byte HTTPResponse *http.Response @@ -18519,6 +19429,14 @@ func (r VersionJourneyResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r VersionJourneyResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListListsResponse struct { Body []byte HTTPResponse *http.Response @@ -18542,6 +19460,14 @@ func (r ListListsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListListsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateListResponse struct { Body []byte HTTPResponse *http.Response @@ -18565,6 +19491,14 @@ func (r CreateListResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateListResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteListResponse struct { Body []byte HTTPResponse *http.Response @@ -18587,6 +19521,14 @@ func (r DeleteListResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteListResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetListResponse struct { Body []byte HTTPResponse *http.Response @@ -18610,6 +19552,14 @@ func (r GetListResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetListResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateListResponse struct { Body []byte HTTPResponse *http.Response @@ -18633,6 +19583,14 @@ func (r UpdateListResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateListResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DuplicateListResponse struct { Body []byte HTTPResponse *http.Response @@ -18656,6 +19614,14 @@ func (r DuplicateListResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DuplicateListResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UnarchiveListResponse struct { Body []byte HTTPResponse *http.Response @@ -18678,6 +19644,14 @@ func (r UnarchiveListResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UnarchiveListResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -18701,6 +19675,14 @@ func (r GetListUsersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetListUsersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type PreviewListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -18724,6 +19706,14 @@ func (r PreviewListUsersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PreviewListUsersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ImportListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -18746,6 +19736,14 @@ func (r ImportListUsersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ImportListUsersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListLocalesResponse struct { Body []byte HTTPResponse *http.Response @@ -18779,6 +19777,14 @@ func (r ListLocalesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListLocalesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateLocaleResponse struct { Body []byte HTTPResponse *http.Response @@ -18802,6 +19808,14 @@ func (r CreateLocaleResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateLocaleResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteLocaleResponse struct { Body []byte HTTPResponse *http.Response @@ -18824,6 +19838,14 @@ func (r DeleteLocaleResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteLocaleResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetLocaleResponse struct { Body []byte HTTPResponse *http.Response @@ -18847,6 +19869,14 @@ func (r GetLocaleResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetLocaleResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListProvidersResponse struct { Body []byte HTTPResponse *http.Response @@ -18870,6 +19900,14 @@ func (r ListProvidersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListProvidersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListProviderMetaResponse struct { Body []byte HTTPResponse *http.Response @@ -18893,6 +19931,14 @@ func (r ListProviderMetaResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListProviderMetaResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -18916,6 +19962,14 @@ func (r CreateProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -18938,6 +19992,14 @@ func (r DeleteProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -18961,6 +20023,14 @@ func (r GetProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -18984,6 +20054,14 @@ func (r UpdateProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListProjectPushProvidersResponse struct { Body []byte HTTPResponse *http.Response @@ -19009,6 +20087,14 @@ func (r ListProjectPushProvidersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListProjectPushProvidersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteProjectPushProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -19031,6 +20117,14 @@ func (r DeleteProjectPushProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteProjectPushProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertProjectPushProviderResponse struct { Body []byte HTTPResponse *http.Response @@ -19054,6 +20148,14 @@ func (r UpsertProjectPushProviderResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertProjectPushProviderResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListSenderIdentitiesResponse struct { Body []byte HTTPResponse *http.Response @@ -19087,6 +20189,14 @@ func (r ListSenderIdentitiesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListSenderIdentitiesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateSenderIdentityResponse struct { Body []byte HTTPResponse *http.Response @@ -19110,6 +20220,14 @@ func (r CreateSenderIdentityResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateSenderIdentityResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteSenderIdentityResponse struct { Body []byte HTTPResponse *http.Response @@ -19132,6 +20250,14 @@ func (r DeleteSenderIdentityResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteSenderIdentityResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetSenderIdentityResponse struct { Body []byte HTTPResponse *http.Response @@ -19155,6 +20281,14 @@ func (r GetSenderIdentityResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetSenderIdentityResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListOrganizationEventSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -19178,6 +20312,14 @@ func (r ListOrganizationEventSchemasResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListOrganizationEventSchemasResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteOrganizationEventSchemaResponse struct { Body []byte HTTPResponse *http.Response @@ -19200,6 +20342,14 @@ func (r DeleteOrganizationEventSchemaResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteOrganizationEventSchemaResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListOrganizationsResponse struct { Body []byte HTTPResponse *http.Response @@ -19223,6 +20373,14 @@ func (r ListOrganizationsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListOrganizationsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -19246,6 +20404,14 @@ func (r UpsertOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListOrganizationSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -19271,6 +20437,14 @@ func (r ListOrganizationSchemasResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListOrganizationSchemasResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListOrganizationMemberSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -19296,6 +20470,14 @@ func (r ListOrganizationMemberSchemasResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListOrganizationMemberSchemasResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -19318,6 +20500,14 @@ func (r DeleteOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -19341,6 +20531,14 @@ func (r GetOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateOrganizationResponse struct { Body []byte HTTPResponse *http.Response @@ -19364,6 +20562,14 @@ func (r UpdateOrganizationResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateOrganizationResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetOrganizationEventsResponse struct { Body []byte HTTPResponse *http.Response @@ -19387,6 +20593,14 @@ func (r GetOrganizationEventsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOrganizationEventsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateOrganizationEventResponse struct { Body []byte HTTPResponse *http.Response @@ -19409,6 +20623,14 @@ func (r CreateOrganizationEventResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateOrganizationEventResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteOrganizationExternalIDResponse struct { Body []byte HTTPResponse *http.Response @@ -19431,6 +20653,14 @@ func (r DeleteOrganizationExternalIDResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteOrganizationExternalIDResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetOrganizationInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -19454,6 +20684,14 @@ func (r GetOrganizationInboxMessagesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOrganizationInboxMessagesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -19477,6 +20715,14 @@ func (r CreateOrganizationInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateOrganizationInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ArchiveOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -19500,6 +20746,14 @@ func (r ArchiveOrganizationInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ArchiveOrganizationInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ReadOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -19523,6 +20777,14 @@ func (r ReadOrganizationInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ReadOrganizationInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RescheduleOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -19546,6 +20808,14 @@ func (r RescheduleOrganizationInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RescheduleOrganizationInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UnarchiveOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -19569,6 +20839,14 @@ func (r UnarchiveOrganizationInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UnarchiveOrganizationInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UnreadOrganizationInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -19592,6 +20870,14 @@ func (r UnreadOrganizationInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UnreadOrganizationInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -19615,6 +20901,14 @@ func (r GetOrganizationScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetOrganizationScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -19638,6 +20932,14 @@ func (r UpsertOrganizationScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertOrganizationScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -19660,6 +20962,14 @@ func (r DeleteOrganizationScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteOrganizationScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateOrganizationScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -19683,6 +20993,14 @@ func (r UpdateOrganizationScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateOrganizationScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListOrganizationMembersResponse struct { Body []byte HTTPResponse *http.Response @@ -19706,6 +21024,14 @@ func (r ListOrganizationMembersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListOrganizationMembersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type AddOrganizationMemberResponse struct { Body []byte HTTPResponse *http.Response @@ -19728,6 +21054,14 @@ func (r AddOrganizationMemberResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AddOrganizationMemberResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RemoveOrganizationMemberResponse struct { Body []byte HTTPResponse *http.Response @@ -19750,6 +21084,14 @@ func (r RemoveOrganizationMemberResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RemoveOrganizationMemberResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListUserEventSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -19773,6 +21115,14 @@ func (r ListUserEventSchemasResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListUserEventSchemasResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteUserEventSchemaResponse struct { Body []byte HTTPResponse *http.Response @@ -19795,6 +21145,14 @@ func (r DeleteUserEventSchemaResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteUserEventSchemaResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListScheduledSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -19818,6 +21176,14 @@ func (r ListScheduledSchemasResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListScheduledSchemasResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteScheduledSchemaResponse struct { Body []byte HTTPResponse *http.Response @@ -19840,6 +21206,14 @@ func (r DeleteScheduledSchemaResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteScheduledSchemaResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateScheduleOffsetResponse struct { Body []byte HTTPResponse *http.Response @@ -19863,6 +21237,14 @@ func (r CreateScheduleOffsetResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateScheduleOffsetResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -19886,6 +21268,14 @@ func (r ListUsersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListUsersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type IdentifyUserResponse struct { Body []byte HTTPResponse *http.Response @@ -19909,6 +21299,14 @@ func (r IdentifyUserResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r IdentifyUserResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ImportUsersResponse struct { Body []byte HTTPResponse *http.Response @@ -19931,6 +21329,14 @@ func (r ImportUsersResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ImportUsersResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListUserSchemasResponse struct { Body []byte HTTPResponse *http.Response @@ -19956,6 +21362,14 @@ func (r ListUserSchemasResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListUserSchemasResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteUserResponse struct { Body []byte HTTPResponse *http.Response @@ -19978,6 +21392,14 @@ func (r DeleteUserResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteUserResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserResponse struct { Body []byte HTTPResponse *http.Response @@ -20001,6 +21423,14 @@ func (r GetUserResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateUserResponse struct { Body []byte HTTPResponse *http.Response @@ -20024,6 +21454,14 @@ func (r UpdateUserResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateUserResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserDevicesResponse struct { Body []byte HTTPResponse *http.Response @@ -20047,6 +21485,14 @@ func (r GetUserDevicesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserDevicesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateUserDeviceResponse struct { Body []byte HTTPResponse *http.Response @@ -20069,6 +21515,14 @@ func (r CreateUserDeviceResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateUserDeviceResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteUserDeviceResponse struct { Body []byte HTTPResponse *http.Response @@ -20091,6 +21545,14 @@ func (r DeleteUserDeviceResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteUserDeviceResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserEventsResponse struct { Body []byte HTTPResponse *http.Response @@ -20114,6 +21576,14 @@ func (r GetUserEventsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserEventsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateUserEventResponse struct { Body []byte HTTPResponse *http.Response @@ -20136,6 +21606,14 @@ func (r CreateUserEventResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateUserEventResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteUserExternalIDResponse struct { Body []byte HTTPResponse *http.Response @@ -20158,6 +21636,14 @@ func (r DeleteUserExternalIDResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteUserExternalIDResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserInboxMessagesResponse struct { Body []byte HTTPResponse *http.Response @@ -20181,6 +21667,14 @@ func (r GetUserInboxMessagesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserInboxMessagesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20204,6 +21698,14 @@ func (r CreateUserInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateUserInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ArchiveUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20227,6 +21729,14 @@ func (r ArchiveUserInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ArchiveUserInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ReadUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20250,6 +21760,14 @@ func (r ReadUserInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ReadUserInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type RescheduleUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20273,6 +21791,14 @@ func (r RescheduleUserInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r RescheduleUserInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UnarchiveUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20296,6 +21822,14 @@ func (r UnarchiveUserInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UnarchiveUserInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UnreadUserInboxMessageResponse struct { Body []byte HTTPResponse *http.Response @@ -20319,6 +21853,14 @@ func (r UnreadUserInboxMessageResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UnreadUserInboxMessageResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserJourneysResponse struct { Body []byte HTTPResponse *http.Response @@ -20342,6 +21884,14 @@ func (r GetUserJourneysResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserJourneysResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20365,6 +21915,14 @@ func (r GetUserScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpsertUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20388,6 +21946,14 @@ func (r UpsertUserScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpsertUserScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20410,6 +21976,14 @@ func (r DeleteUserScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteUserScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateUserScheduledResponse struct { Body []byte HTTPResponse *http.Response @@ -20433,6 +22007,14 @@ func (r UpdateUserScheduledResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateUserScheduledResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserOrganizationsResponse struct { Body []byte HTTPResponse *http.Response @@ -20461,6 +22043,14 @@ func (r GetUserOrganizationsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserOrganizationsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetUserSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -20484,6 +22074,14 @@ func (r GetUserSubscriptionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetUserSubscriptionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateUserSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -20507,6 +22105,14 @@ func (r UpdateUserSubscriptionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateUserSubscriptionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListSubscriptionsResponse struct { Body []byte HTTPResponse *http.Response @@ -20530,6 +22136,14 @@ func (r ListSubscriptionsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListSubscriptionsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response @@ -20553,6 +22167,14 @@ func (r CreateSubscriptionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateSubscriptionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetSubscriptionResponse struct { Body []byte HTTPResponse *http.Response @@ -20576,6 +22198,14 @@ func (r GetSubscriptionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetSubscriptionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateSubscriptionResponse struct { Body []byte HTTPResponse *http.Response @@ -20599,6 +22229,14 @@ func (r UpdateSubscriptionResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateSubscriptionResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListTagsResponse struct { Body []byte HTTPResponse *http.Response @@ -20622,6 +22260,14 @@ func (r ListTagsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListTagsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateTagResponse struct { Body []byte HTTPResponse *http.Response @@ -20645,6 +22291,14 @@ func (r CreateTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteTagResponse struct { Body []byte HTTPResponse *http.Response @@ -20667,6 +22321,14 @@ func (r DeleteTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetTagResponse struct { Body []byte HTTPResponse *http.Response @@ -20690,6 +22352,14 @@ func (r GetTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateTagResponse struct { Body []byte HTTPResponse *http.Response @@ -20713,6 +22383,14 @@ func (r UpdateTagResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateTagResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListAdminsResponse struct { Body []byte HTTPResponse *http.Response @@ -20736,6 +22414,14 @@ func (r ListAdminsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListAdminsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type CreateAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -20759,6 +22445,14 @@ func (r CreateAdminResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r CreateAdminResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type DeleteAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -20781,6 +22475,14 @@ func (r DeleteAdminResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r DeleteAdminResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -20804,6 +22506,14 @@ func (r GetAdminResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAdminResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type UpdateAdminResponse struct { Body []byte HTTPResponse *http.Response @@ -20827,6 +22537,14 @@ func (r UpdateAdminResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r UpdateAdminResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type WhoamiResponse struct { Body []byte HTTPResponse *http.Response @@ -20850,6 +22568,14 @@ func (r WhoamiResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r WhoamiResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type AuthCallbackResponse struct { Body []byte HTTPResponse *http.Response @@ -20872,6 +22598,14 @@ func (r AuthCallbackResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthCallbackResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type GetAuthMethodsResponse struct { Body []byte HTTPResponse *http.Response @@ -20895,6 +22629,14 @@ func (r GetAuthMethodsResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetAuthMethodsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type AuthWebhookResponse struct { Body []byte HTTPResponse *http.Response @@ -20917,6 +22659,14 @@ func (r AuthWebhookResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AuthWebhookResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type ListMyInvitesResponse struct { Body []byte HTTPResponse *http.Response @@ -20942,6 +22692,14 @@ func (r ListMyInvitesResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ListMyInvitesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + type AcceptProjectInviteResponse struct { Body []byte HTTPResponse *http.Response @@ -20965,6 +22723,14 @@ func (r AcceptProjectInviteResponse) StatusCode() int { return 0 } +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r AcceptProjectInviteResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + // SetActiveOrganizationWithBodyWithResponse request with arbitrary body returning *SetActiveOrganizationResponse func (c *ClientWithResponses) SetActiveOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetActiveOrganizationResponse, error) { rsp, err := c.SetActiveOrganizationWithBody(ctx, contentType, body, reqEditors...) @@ -30352,6 +32118,7 @@ func (siw *ServerInterfaceWrapper) GetProfile(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.Request) { var err error + _ = err ctx := r.Context() @@ -30364,25 +32131,40 @@ func (siw *ServerInterfaceWrapper) ListProjects(w http.ResponseWriter, r *http.R // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -30421,11 +32203,12 @@ func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30452,11 +32235,12 @@ func (siw *ServerInterfaceWrapper) DeleteProject(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30483,11 +32267,12 @@ func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30514,11 +32299,12 @@ func (siw *ServerInterfaceWrapper) UpdateProject(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30535,25 +32321,40 @@ func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Re // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -30572,11 +32373,12 @@ func (siw *ServerInterfaceWrapper) ListActions(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) CreateAction(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30603,11 +32405,12 @@ func (siw *ServerInterfaceWrapper) CreateAction(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) ListActionMeta(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30634,11 +32437,12 @@ func (siw *ServerInterfaceWrapper) ListActionMeta(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30647,7 +32451,7 @@ func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *ht // ------------- Path parameter "actionType" ------------- var actionType string - err = runtime.BindStyledParameterWithOptions("simple", "actionType", chi.URLParam(r, "actionType"), &actionType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "actionType", chi.URLParam(r, "actionType"), &actionType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionType", Err: err}) return @@ -30674,11 +32478,12 @@ func (siw *ServerInterfaceWrapper) GetActionPreview(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) TestAction(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30705,11 +32510,12 @@ func (siw *ServerInterfaceWrapper) TestAction(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30718,7 +32524,7 @@ func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.R // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -30745,11 +32551,12 @@ func (siw *ServerInterfaceWrapper) DeleteAction(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30758,7 +32565,7 @@ func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -30785,11 +32592,12 @@ func (siw *ServerInterfaceWrapper) GetAction(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30798,7 +32606,7 @@ func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.R // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -30825,11 +32633,12 @@ func (siw *ServerInterfaceWrapper) UpdateAction(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30838,7 +32647,7 @@ func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *h // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -30847,7 +32656,7 @@ func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *h // ------------- Path parameter "functionID" ------------- var functionID string - err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) return @@ -30874,11 +32683,12 @@ func (siw *ServerInterfaceWrapper) ListActionSchemas(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30887,7 +32697,7 @@ func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r * // ------------- Path parameter "actionID" ------------- var actionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "actionID", chi.URLParam(r, "actionID"), &actionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "actionID", Err: err}) return @@ -30896,7 +32706,7 @@ func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r * // ------------- Path parameter "functionID" ------------- var functionID string - err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "functionID", chi.URLParam(r, "functionID"), &functionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "functionID", Err: err}) return @@ -30923,11 +32733,12 @@ func (siw *ServerInterfaceWrapper) TestActionFunction(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30944,25 +32755,40 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -30981,11 +32807,12 @@ func (siw *ServerInterfaceWrapper) ListProjectAdmins(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -30994,7 +32821,7 @@ func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r * // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -31021,11 +32848,12 @@ func (siw *ServerInterfaceWrapper) DeleteProjectAdmin(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31034,7 +32862,7 @@ func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *htt // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -31061,11 +32889,12 @@ func (siw *ServerInterfaceWrapper) GetProjectAdmin(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31074,7 +32903,7 @@ func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r * // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -31101,11 +32930,12 @@ func (siw *ServerInterfaceWrapper) UpdateProjectAdmin(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListAuthMethods(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31122,17 +32952,27 @@ func (siw *ServerInterfaceWrapper) ListAuthMethods(w http.ResponseWriter, r *htt // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -31151,11 +32991,12 @@ func (siw *ServerInterfaceWrapper) ListAuthMethods(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) CreateAuthMethod(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31182,11 +33023,12 @@ func (siw *ServerInterfaceWrapper) CreateAuthMethod(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) DeleteAuthMethod(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31195,7 +33037,7 @@ func (siw *ServerInterfaceWrapper) DeleteAuthMethod(w http.ResponseWriter, r *ht // ------------- Path parameter "methodID" ------------- var methodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "methodID", Err: err}) return @@ -31222,11 +33064,12 @@ func (siw *ServerInterfaceWrapper) DeleteAuthMethod(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) GetAuthMethod(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31235,7 +33078,7 @@ func (siw *ServerInterfaceWrapper) GetAuthMethod(w http.ResponseWriter, r *http. // ------------- Path parameter "methodID" ------------- var methodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "methodID", Err: err}) return @@ -31262,11 +33105,12 @@ func (siw *ServerInterfaceWrapper) GetAuthMethod(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) UpdateAuthMethod(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31275,7 +33119,7 @@ func (siw *ServerInterfaceWrapper) UpdateAuthMethod(w http.ResponseWriter, r *ht // ------------- Path parameter "methodID" ------------- var methodID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "methodID", chi.URLParam(r, "methodID"), &methodID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "methodID", Err: err}) return @@ -31302,11 +33146,12 @@ func (siw *ServerInterfaceWrapper) UpdateAuthMethod(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31323,49 +33168,79 @@ func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } // ------------- Optional query parameter "campaign_id" ------------- - err = runtime.BindQueryParameter("form", true, false, "campaign_id", r.URL.Query(), ¶ms.CampaignId) + err = runtime.BindQueryParameterWithOptions("form", true, false, "campaign_id", r.URL.Query(), ¶ms.CampaignId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaign_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "campaign_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaign_id", Err: err}) + } return } // ------------- Optional query parameter "list_id" ------------- - err = runtime.BindQueryParameter("form", true, false, "list_id", r.URL.Query(), ¶ms.ListId) + err = runtime.BindQueryParameterWithOptions("form", true, false, "list_id", r.URL.Query(), ¶ms.ListId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "list_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "list_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "list_id", Err: err}) + } return } // ------------- Optional query parameter "state" ------------- - err = runtime.BindQueryParameter("form", true, false, "state", r.URL.Query(), ¶ms.State) + err = runtime.BindQueryParameterWithOptions("form", true, false, "state", r.URL.Query(), ¶ms.State, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "state", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "state"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "state", Err: err}) + } return } @@ -31384,11 +33259,12 @@ func (siw *ServerInterfaceWrapper) ListBroadcasts(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) CreateBroadcast(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31415,11 +33291,12 @@ func (siw *ServerInterfaceWrapper) CreateBroadcast(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) CancelBroadcast(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31428,7 +33305,7 @@ func (siw *ServerInterfaceWrapper) CancelBroadcast(w http.ResponseWriter, r *htt // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -31455,11 +33332,12 @@ func (siw *ServerInterfaceWrapper) CancelBroadcast(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31468,7 +33346,7 @@ func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.R // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -31495,11 +33373,12 @@ func (siw *ServerInterfaceWrapper) GetBroadcast(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31508,7 +33387,7 @@ func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *htt // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -31535,11 +33414,12 @@ func (siw *ServerInterfaceWrapper) UpdateBroadcast(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) StreamBroadcastProgress(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31548,7 +33428,7 @@ func (siw *ServerInterfaceWrapper) StreamBroadcastProgress(w http.ResponseWriter // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -31575,11 +33455,12 @@ func (siw *ServerInterfaceWrapper) StreamBroadcastProgress(w http.ResponseWriter func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31588,7 +33469,7 @@ func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http. // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -31615,11 +33496,12 @@ func (siw *ServerInterfaceWrapper) SendBroadcast(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31628,7 +33510,7 @@ func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *h // ------------- Path parameter "broadcastID" ------------- var broadcastID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "broadcastID", chi.URLParam(r, "broadcastID"), &broadcastID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "broadcastID", Err: err}) return @@ -31645,25 +33527,40 @@ func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -31682,11 +33579,12 @@ func (siw *ServerInterfaceWrapper) GetBroadcastUsers(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31703,33 +33601,53 @@ func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } // ------------- Optional query parameter "include_deleted" ------------- - err = runtime.BindQueryParameter("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted) + err = runtime.BindQueryParameterWithOptions("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_deleted"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) + } return } @@ -31748,11 +33666,12 @@ func (siw *ServerInterfaceWrapper) ListCampaigns(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31779,11 +33698,12 @@ func (siw *ServerInterfaceWrapper) CreateCampaign(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31792,7 +33712,7 @@ func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -31819,11 +33739,12 @@ func (siw *ServerInterfaceWrapper) DeleteCampaign(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31832,7 +33753,7 @@ func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Re // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -31859,11 +33780,12 @@ func (siw *ServerInterfaceWrapper) GetCampaign(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31872,7 +33794,7 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -31899,11 +33821,12 @@ func (siw *ServerInterfaceWrapper) UpdateCampaign(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31912,7 +33835,7 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -31939,11 +33862,12 @@ func (siw *ServerInterfaceWrapper) DuplicateCampaign(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31952,7 +33876,7 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -31979,11 +33903,12 @@ func (siw *ServerInterfaceWrapper) CreateTemplate(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -31992,7 +33917,7 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -32001,7 +33926,7 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -32028,11 +33953,12 @@ func (siw *ServerInterfaceWrapper) DeleteTemplate(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32041,7 +33967,7 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -32050,7 +33976,7 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -32077,11 +34003,12 @@ func (siw *ServerInterfaceWrapper) GetTemplate(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32090,7 +34017,7 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -32099,7 +34026,7 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -32126,11 +34053,12 @@ func (siw *ServerInterfaceWrapper) UpdateTemplate(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32139,7 +34067,7 @@ func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Reque // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -32148,7 +34076,7 @@ func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Reque // ------------- Path parameter "templateID" ------------- var templateID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "templateID", chi.URLParam(r, "templateID"), &templateID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "templateID", Err: err}) return @@ -32175,11 +34103,12 @@ func (siw *ServerInterfaceWrapper) SendTest(w http.ResponseWriter, r *http.Reque func (siw *ServerInterfaceWrapper) UnarchiveCampaign(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32188,7 +34117,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveCampaign(w http.ResponseWriter, r *h // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -32215,11 +34144,12 @@ func (siw *ServerInterfaceWrapper) UnarchiveCampaign(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32228,7 +34158,7 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht // ------------- Path parameter "campaignID" ------------- var campaignID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "campaignID", chi.URLParam(r, "campaignID"), &campaignID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "campaignID", Err: err}) return @@ -32245,17 +34175,27 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -32274,11 +34214,12 @@ func (siw *ServerInterfaceWrapper) GetCampaignUsers(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32295,17 +34236,27 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -32324,11 +34275,12 @@ func (siw *ServerInterfaceWrapper) ListDocuments(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32355,11 +34307,12 @@ func (siw *ServerInterfaceWrapper) UploadDocuments(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32368,7 +34321,7 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http // ------------- Path parameter "documentID" ------------- var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return @@ -32395,11 +34348,12 @@ func (siw *ServerInterfaceWrapper) DeleteDocument(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32408,7 +34362,7 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re // ------------- Path parameter "documentID" ------------- var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return @@ -32435,11 +34389,12 @@ func (siw *ServerInterfaceWrapper) GetDocument(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32448,7 +34403,7 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r // ------------- Path parameter "documentID" ------------- var documentID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "documentID", chi.URLParam(r, "documentID"), &documentID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "documentID", Err: err}) return @@ -32475,11 +34430,12 @@ func (siw *ServerInterfaceWrapper) GetDocumentMetadata(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) ListEmailTemplates(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32496,25 +34452,40 @@ func (siw *ServerInterfaceWrapper) ListEmailTemplates(w http.ResponseWriter, r * // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -32533,11 +34504,12 @@ func (siw *ServerInterfaceWrapper) ListEmailTemplates(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListProjectInvites(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32554,65 +34526,105 @@ func (siw *ServerInterfaceWrapper) ListProjectInvites(w http.ResponseWriter, r * // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) + err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + } return } // ------------- Optional query parameter "role" ------------- - err = runtime.BindQueryParameter("form", true, false, "role", r.URL.Query(), ¶ms.Role) + err = runtime.BindQueryParameterWithOptions("form", true, false, "role", r.URL.Query(), ¶ms.Role, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "role", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "role"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "role", Err: err}) + } return } // ------------- Optional query parameter "expires_after" ------------- - err = runtime.BindQueryParameter("form", true, false, "expires_after", r.URL.Query(), ¶ms.ExpiresAfter) + err = runtime.BindQueryParameterWithOptions("form", true, false, "expires_after", r.URL.Query(), ¶ms.ExpiresAfter, runtime.BindQueryParameterOptions{Type: "string", Format: "date"}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_after", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "expires_after"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_after", Err: err}) + } return } // ------------- Optional query parameter "expires_before" ------------- - err = runtime.BindQueryParameter("form", true, false, "expires_before", r.URL.Query(), ¶ms.ExpiresBefore) + err = runtime.BindQueryParameterWithOptions("form", true, false, "expires_before", r.URL.Query(), ¶ms.ExpiresBefore, runtime.BindQueryParameterOptions{Type: "string", Format: "date"}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_before", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "expires_before"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "expires_before", Err: err}) + } return } // ------------- Optional query parameter "inviter_admin_id" ------------- - err = runtime.BindQueryParameter("form", true, false, "inviter_admin_id", r.URL.Query(), ¶ms.InviterAdminId) + err = runtime.BindQueryParameterWithOptions("form", true, false, "inviter_admin_id", r.URL.Query(), ¶ms.InviterAdminId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviter_admin_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "inviter_admin_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviter_admin_id", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -32631,11 +34643,12 @@ func (siw *ServerInterfaceWrapper) ListProjectInvites(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) CreateProjectInvite(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32662,11 +34675,12 @@ func (siw *ServerInterfaceWrapper) CreateProjectInvite(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) RevokeProjectInvite(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32675,7 +34689,7 @@ func (siw *ServerInterfaceWrapper) RevokeProjectInvite(w http.ResponseWriter, r // ------------- Path parameter "inviteID" ------------- var inviteID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviteID", Err: err}) return @@ -32702,11 +34716,12 @@ func (siw *ServerInterfaceWrapper) RevokeProjectInvite(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32723,33 +34738,53 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } // ------------- Optional query parameter "include_deleted" ------------- - err = runtime.BindQueryParameter("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted) + err = runtime.BindQueryParameterWithOptions("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_deleted"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) + } return } @@ -32768,11 +34803,12 @@ func (siw *ServerInterfaceWrapper) ListJourneys(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32789,9 +34825,14 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. // ------------- Optional query parameter "publish" ------------- - err = runtime.BindQueryParameter("form", true, false, "publish", r.URL.Query(), ¶ms.Publish) + err = runtime.BindQueryParameterWithOptions("form", true, false, "publish", r.URL.Query(), ¶ms.Publish, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "publish", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "publish"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "publish", Err: err}) + } return } @@ -32810,11 +34851,12 @@ func (siw *ServerInterfaceWrapper) CreateJourney(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32823,7 +34865,7 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -32850,11 +34892,12 @@ func (siw *ServerInterfaceWrapper) DeleteJourney(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32863,7 +34906,7 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -32890,11 +34933,12 @@ func (siw *ServerInterfaceWrapper) GetJourney(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32903,7 +34947,7 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -32930,11 +34974,12 @@ func (siw *ServerInterfaceWrapper) UpdateJourney(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32943,7 +34988,7 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -32970,11 +35015,12 @@ func (siw *ServerInterfaceWrapper) DuplicateJourney(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -32983,7 +35029,7 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33010,11 +35056,12 @@ func (siw *ServerInterfaceWrapper) PublishJourney(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33023,7 +35070,7 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33050,11 +35097,12 @@ func (siw *ServerInterfaceWrapper) GetJourneySteps(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33063,7 +35111,7 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33090,11 +35138,12 @@ func (siw *ServerInterfaceWrapper) SetJourneySteps(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UnarchiveJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33103,7 +35152,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveJourney(w http.ResponseWriter, r *ht // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33130,11 +35179,12 @@ func (siw *ServerInterfaceWrapper) UnarchiveJourney(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33143,7 +35193,7 @@ func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *h // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33152,7 +35202,7 @@ func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *h // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -33179,11 +35229,12 @@ func (siw *ServerInterfaceWrapper) CancelUserJourney(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33192,7 +35243,7 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33201,7 +35252,7 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -33228,11 +35279,12 @@ func (siw *ServerInterfaceWrapper) StreamUserJourneySteps(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33241,7 +35293,7 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33250,7 +35302,7 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -33277,11 +35329,12 @@ func (siw *ServerInterfaceWrapper) TriggerUser(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33290,7 +35343,7 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33299,7 +35352,7 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -33326,11 +35379,12 @@ func (siw *ServerInterfaceWrapper) AdvanceUserStep(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33339,7 +35393,7 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33348,7 +35402,7 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -33375,11 +35429,12 @@ func (siw *ServerInterfaceWrapper) GetUserJourneyState(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33388,7 +35443,7 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http // ------------- Path parameter "journeyID" ------------- var journeyID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "journeyID", chi.URLParam(r, "journeyID"), &journeyID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "journeyID", Err: err}) return @@ -33415,11 +35470,12 @@ func (siw *ServerInterfaceWrapper) VersionJourney(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33436,33 +35492,53 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } // ------------- Optional query parameter "include_deleted" ------------- - err = runtime.BindQueryParameter("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted) + err = runtime.BindQueryParameterWithOptions("form", true, false, "include_deleted", r.URL.Query(), ¶ms.IncludeDeleted, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_deleted"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_deleted", Err: err}) + } return } @@ -33481,11 +35557,12 @@ func (siw *ServerInterfaceWrapper) ListLists(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33512,11 +35589,12 @@ func (siw *ServerInterfaceWrapper) CreateList(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33525,7 +35603,7 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33552,11 +35630,12 @@ func (siw *ServerInterfaceWrapper) DeleteList(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33565,7 +35644,7 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33592,11 +35671,12 @@ func (siw *ServerInterfaceWrapper) GetList(w http.ResponseWriter, r *http.Reques func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33605,7 +35685,7 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33632,11 +35712,12 @@ func (siw *ServerInterfaceWrapper) UpdateList(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33645,7 +35726,7 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33672,11 +35753,12 @@ func (siw *ServerInterfaceWrapper) DuplicateList(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) UnarchiveList(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33685,7 +35767,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveList(w http.ResponseWriter, r *http. // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33712,11 +35794,12 @@ func (siw *ServerInterfaceWrapper) UnarchiveList(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33725,7 +35808,7 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33742,25 +35825,40 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -33779,11 +35877,12 @@ func (siw *ServerInterfaceWrapper) GetListUsers(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33792,7 +35891,7 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33809,9 +35908,14 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } @@ -33830,11 +35934,12 @@ func (siw *ServerInterfaceWrapper) PreviewListUsers(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33843,7 +35948,7 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt // ------------- Path parameter "listID" ------------- var listID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "listID", chi.URLParam(r, "listID"), &listID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "listID", Err: err}) return @@ -33870,11 +35975,12 @@ func (siw *ServerInterfaceWrapper) ImportListUsers(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33891,17 +35997,27 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -33920,11 +36036,12 @@ func (siw *ServerInterfaceWrapper) ListLocales(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33951,11 +36068,12 @@ func (siw *ServerInterfaceWrapper) CreateLocale(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -33964,7 +36082,7 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R // ------------- Path parameter "localeID" ------------- var localeID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return @@ -33991,11 +36109,12 @@ func (siw *ServerInterfaceWrapper) DeleteLocale(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34004,7 +36123,7 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "localeID" ------------- var localeID string - err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "localeID", chi.URLParam(r, "localeID"), &localeID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "localeID", Err: err}) return @@ -34031,11 +36150,12 @@ func (siw *ServerInterfaceWrapper) GetLocale(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34052,17 +36172,27 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -34081,11 +36211,12 @@ func (siw *ServerInterfaceWrapper) ListProviders(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34112,11 +36243,12 @@ func (siw *ServerInterfaceWrapper) ListProviderMeta(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34125,7 +36257,7 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -34152,11 +36284,12 @@ func (siw *ServerInterfaceWrapper) CreateProvider(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34165,7 +36298,7 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -34174,7 +36307,7 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http // ------------- Path parameter "providerID" ------------- var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return @@ -34201,11 +36334,12 @@ func (siw *ServerInterfaceWrapper) DeleteProvider(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34214,7 +36348,7 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -34223,7 +36357,7 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re // ------------- Path parameter "providerID" ------------- var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return @@ -34250,11 +36384,12 @@ func (siw *ServerInterfaceWrapper) GetProvider(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34263,7 +36398,7 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http // ------------- Path parameter "type" ------------- var pType string - err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "type", chi.URLParam(r, "type"), &pType, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "type", Err: err}) return @@ -34272,7 +36407,7 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http // ------------- Path parameter "providerID" ------------- var providerID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "providerID", chi.URLParam(r, "providerID"), &providerID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "providerID", Err: err}) return @@ -34299,11 +36434,12 @@ func (siw *ServerInterfaceWrapper) UpdateProvider(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) ListProjectPushProviders(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34330,11 +36466,12 @@ func (siw *ServerInterfaceWrapper) ListProjectPushProviders(w http.ResponseWrite func (siw *ServerInterfaceWrapper) DeleteProjectPushProvider(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34343,7 +36480,7 @@ func (siw *ServerInterfaceWrapper) DeleteProjectPushProvider(w http.ResponseWrit // ------------- Path parameter "platform" ------------- var platform ProjectPushProviderPlatform - err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "platform", Err: err}) return @@ -34370,11 +36507,12 @@ func (siw *ServerInterfaceWrapper) DeleteProjectPushProvider(w http.ResponseWrit func (siw *ServerInterfaceWrapper) UpsertProjectPushProvider(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34383,7 +36521,7 @@ func (siw *ServerInterfaceWrapper) UpsertProjectPushProvider(w http.ResponseWrit // ------------- Path parameter "platform" ------------- var platform ProjectPushProviderPlatform - err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "platform", chi.URLParam(r, "platform"), &platform, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "platform", Err: err}) return @@ -34410,11 +36548,12 @@ func (siw *ServerInterfaceWrapper) UpsertProjectPushProvider(w http.ResponseWrit func (siw *ServerInterfaceWrapper) ListSenderIdentities(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34431,33 +36570,53 @@ func (siw *ServerInterfaceWrapper) ListSenderIdentities(w http.ResponseWriter, r // ------------- Optional query parameter "provider_id" ------------- - err = runtime.BindQueryParameter("form", true, false, "provider_id", r.URL.Query(), ¶ms.ProviderId) + err = runtime.BindQueryParameterWithOptions("form", true, false, "provider_id", r.URL.Query(), ¶ms.ProviderId, runtime.BindQueryParameterOptions{Type: "string", Format: "uuid"}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "provider_id", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "provider_id"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "provider_id", Err: err}) + } return } // ------------- Optional query parameter "channel" ------------- - err = runtime.BindQueryParameter("form", true, false, "channel", r.URL.Query(), ¶ms.Channel) + err = runtime.BindQueryParameterWithOptions("form", true, false, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + } return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -34476,11 +36635,12 @@ func (siw *ServerInterfaceWrapper) ListSenderIdentities(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) CreateSenderIdentity(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34507,11 +36667,12 @@ func (siw *ServerInterfaceWrapper) CreateSenderIdentity(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteSenderIdentity(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34520,7 +36681,7 @@ func (siw *ServerInterfaceWrapper) DeleteSenderIdentity(w http.ResponseWriter, r // ------------- Path parameter "senderIdentityID" ------------- var senderIdentityID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "senderIdentityID", Err: err}) return @@ -34547,11 +36708,12 @@ func (siw *ServerInterfaceWrapper) DeleteSenderIdentity(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetSenderIdentity(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34560,7 +36722,7 @@ func (siw *ServerInterfaceWrapper) GetSenderIdentity(w http.ResponseWriter, r *h // ------------- Path parameter "senderIdentityID" ------------- var senderIdentityID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "senderIdentityID", chi.URLParam(r, "senderIdentityID"), &senderIdentityID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "senderIdentityID", Err: err}) return @@ -34587,11 +36749,12 @@ func (siw *ServerInterfaceWrapper) GetSenderIdentity(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34618,11 +36781,12 @@ func (siw *ServerInterfaceWrapper) ListOrganizationEventSchemas(w http.ResponseW func (siw *ServerInterfaceWrapper) DeleteOrganizationEventSchema(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34631,7 +36795,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationEventSchema(w http.Response // ------------- Path parameter "eventID" ------------- var eventID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "eventID", Err: err}) return @@ -34658,11 +36822,12 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationEventSchema(w http.Response func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34679,25 +36844,40 @@ func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -34716,11 +36896,12 @@ func (siw *ServerInterfaceWrapper) ListOrganizations(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34747,11 +36928,12 @@ func (siw *ServerInterfaceWrapper) UpsertOrganization(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34778,11 +36960,12 @@ func (siw *ServerInterfaceWrapper) ListOrganizationSchemas(w http.ResponseWriter func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34809,11 +36992,12 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMemberSchemas(w http.Response func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34822,7 +37006,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -34849,11 +37033,12 @@ func (siw *ServerInterfaceWrapper) DeleteOrganization(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34862,7 +37047,7 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -34889,11 +37074,12 @@ func (siw *ServerInterfaceWrapper) GetOrganization(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34902,7 +37088,7 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -34929,11 +37115,12 @@ func (siw *ServerInterfaceWrapper) UpdateOrganization(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -34942,7 +37129,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -34959,25 +37146,40 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -34996,11 +37198,12 @@ func (siw *ServerInterfaceWrapper) GetOrganizationEvents(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) CreateOrganizationEvent(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35009,7 +37212,7 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationEvent(w http.ResponseWriter // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35036,11 +37239,12 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationEvent(w http.ResponseWriter func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35049,7 +37253,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseW // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35058,7 +37262,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseW // ------------- Path parameter "identifierID" ------------- var identifierID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "identifierID", Err: err}) return @@ -35085,11 +37289,12 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationExternalID(w http.ResponseW func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35098,7 +37303,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseW // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35115,81 +37320,131 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseW // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) + err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + } return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) + err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + } return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) + err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + } return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) + err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + } return } // ------------- Optional query parameter "channel" ------------- - err = runtime.BindQueryParameter("form", true, false, "channel", r.URL.Query(), ¶ms.Channel) + err = runtime.BindQueryParameterWithOptions("form", true, false, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + } return } // ------------- Optional query parameter "include_archived" ------------- - err = runtime.BindQueryParameter("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived) + err = runtime.BindQueryParameterWithOptions("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_archived"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) + } return } // ------------- Optional query parameter "include_scheduled" ------------- - err = runtime.BindQueryParameter("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled) + err = runtime.BindQueryParameterWithOptions("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_scheduled"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) + } return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -35208,11 +37463,12 @@ func (siw *ServerInterfaceWrapper) GetOrganizationInboxMessages(w http.ResponseW func (siw *ServerInterfaceWrapper) CreateOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35221,7 +37477,7 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationInboxMessage(w http.Respons // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35248,11 +37504,12 @@ func (siw *ServerInterfaceWrapper) CreateOrganizationInboxMessage(w http.Respons func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35261,7 +37518,7 @@ func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.Respon // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35270,7 +37527,7 @@ func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.Respon // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -35297,11 +37554,12 @@ func (siw *ServerInterfaceWrapper) ArchiveOrganizationInboxMessage(w http.Respon func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35310,7 +37568,7 @@ func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseW // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35319,7 +37577,7 @@ func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseW // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -35346,11 +37604,12 @@ func (siw *ServerInterfaceWrapper) ReadOrganizationInboxMessage(w http.ResponseW func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35359,7 +37618,7 @@ func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.Res // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35368,7 +37627,7 @@ func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.Res // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -35395,11 +37654,12 @@ func (siw *ServerInterfaceWrapper) RescheduleOrganizationInboxMessage(w http.Res func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35408,7 +37668,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.Resp // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35417,7 +37677,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.Resp // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -35444,11 +37704,12 @@ func (siw *ServerInterfaceWrapper) UnarchiveOrganizationInboxMessage(w http.Resp func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35457,7 +37718,7 @@ func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.Respons // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35466,7 +37727,7 @@ func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.Respons // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -35493,11 +37754,12 @@ func (siw *ServerInterfaceWrapper) UnreadOrganizationInboxMessage(w http.Respons func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35506,7 +37768,7 @@ func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWrite // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35523,17 +37785,27 @@ func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWrite // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -35552,11 +37824,12 @@ func (siw *ServerInterfaceWrapper) GetOrganizationScheduled(w http.ResponseWrite func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35565,7 +37838,7 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35592,11 +37865,12 @@ func (siw *ServerInterfaceWrapper) UpsertOrganizationScheduled(w http.ResponseWr func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35605,7 +37879,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35614,7 +37888,7 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -35641,11 +37915,12 @@ func (siw *ServerInterfaceWrapper) DeleteOrganizationScheduled(w http.ResponseWr func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35654,7 +37929,7 @@ func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35663,7 +37938,7 @@ func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWr // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -35690,11 +37965,12 @@ func (siw *ServerInterfaceWrapper) UpdateOrganizationScheduled(w http.ResponseWr func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35703,7 +37979,7 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35720,17 +37996,27 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -35749,11 +38035,12 @@ func (siw *ServerInterfaceWrapper) ListOrganizationMembers(w http.ResponseWriter func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35762,7 +38049,7 @@ func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35789,11 +38076,12 @@ func (siw *ServerInterfaceWrapper) AddOrganizationMember(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35802,7 +38090,7 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite // ------------- Path parameter "organizationID" ------------- var organizationID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "organizationID", chi.URLParam(r, "organizationID"), &organizationID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "organizationID", Err: err}) return @@ -35811,7 +38099,7 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -35838,11 +38126,12 @@ func (siw *ServerInterfaceWrapper) RemoveOrganizationMember(w http.ResponseWrite func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35869,11 +38158,12 @@ func (siw *ServerInterfaceWrapper) ListUserEventSchemas(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteUserEventSchema(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35882,7 +38172,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserEventSchema(w http.ResponseWriter, // ------------- Path parameter "eventID" ------------- var eventID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "eventID", chi.URLParam(r, "eventID"), &eventID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "eventID", Err: err}) return @@ -35909,11 +38199,12 @@ func (siw *ServerInterfaceWrapper) DeleteUserEventSchema(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) ListScheduledSchemas(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35940,11 +38231,12 @@ func (siw *ServerInterfaceWrapper) ListScheduledSchemas(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteScheduledSchema(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35953,7 +38245,7 @@ func (siw *ServerInterfaceWrapper) DeleteScheduledSchema(w http.ResponseWriter, // ------------- Path parameter "scheduledID" ------------- var scheduledID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledID", Err: err}) return @@ -35980,11 +38272,12 @@ func (siw *ServerInterfaceWrapper) DeleteScheduledSchema(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) CreateScheduleOffset(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -35993,7 +38286,7 @@ func (siw *ServerInterfaceWrapper) CreateScheduleOffset(w http.ResponseWriter, r // ------------- Path parameter "scheduledID" ------------- var scheduledID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledID", chi.URLParam(r, "scheduledID"), &scheduledID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledID", Err: err}) return @@ -36020,11 +38313,12 @@ func (siw *ServerInterfaceWrapper) CreateScheduleOffset(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36041,25 +38335,40 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -36078,11 +38387,12 @@ func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36109,11 +38419,12 @@ func (siw *ServerInterfaceWrapper) IdentifyUser(w http.ResponseWriter, r *http.R func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36140,11 +38451,12 @@ func (siw *ServerInterfaceWrapper) ImportUsers(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36171,11 +38483,12 @@ func (siw *ServerInterfaceWrapper) ListUserSchemas(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36184,7 +38497,7 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36211,11 +38524,12 @@ func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36224,7 +38538,7 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36251,11 +38565,12 @@ func (siw *ServerInterfaceWrapper) GetUser(w http.ResponseWriter, r *http.Reques func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36264,7 +38579,7 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36291,11 +38606,12 @@ func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Req func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36304,7 +38620,7 @@ func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36331,11 +38647,12 @@ func (siw *ServerInterfaceWrapper) GetUserDevices(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) CreateUserDevice(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36344,7 +38661,7 @@ func (siw *ServerInterfaceWrapper) CreateUserDevice(w http.ResponseWriter, r *ht // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36371,11 +38688,12 @@ func (siw *ServerInterfaceWrapper) CreateUserDevice(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36384,7 +38702,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36393,7 +38711,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht // ------------- Path parameter "deviceID" ------------- var deviceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "deviceID", chi.URLParam(r, "deviceID"), &deviceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "deviceID", chi.URLParam(r, "deviceID"), &deviceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "deviceID", Err: err}) return @@ -36420,11 +38738,12 @@ func (siw *ServerInterfaceWrapper) DeleteUserDevice(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36433,7 +38752,7 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36450,25 +38769,40 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -36487,11 +38821,12 @@ func (siw *ServerInterfaceWrapper) GetUserEvents(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) CreateUserEvent(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36500,7 +38835,7 @@ func (siw *ServerInterfaceWrapper) CreateUserEvent(w http.ResponseWriter, r *htt // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36527,11 +38862,12 @@ func (siw *ServerInterfaceWrapper) CreateUserEvent(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36540,7 +38876,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36549,7 +38885,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r // ------------- Path parameter "identifierID" ------------- var identifierID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "identifierID", chi.URLParam(r, "identifierID"), &identifierID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "identifierID", Err: err}) return @@ -36576,11 +38912,12 @@ func (siw *ServerInterfaceWrapper) DeleteUserExternalID(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36589,7 +38926,7 @@ func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36606,81 +38943,131 @@ func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r // ------------- Optional query parameter "status" ------------- - err = runtime.BindQueryParameter("form", true, false, "status", r.URL.Query(), ¶ms.Status) + err = runtime.BindQueryParameterWithOptions("form", true, false, "status", r.URL.Query(), ¶ms.Status, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "status"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "status", Err: err}) + } return } // ------------- Optional query parameter "tags" ------------- - err = runtime.BindQueryParameter("form", true, false, "tags", r.URL.Query(), ¶ms.Tags) + err = runtime.BindQueryParameterWithOptions("form", true, false, "tags", r.URL.Query(), ¶ms.Tags, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "tags"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tags", Err: err}) + } return } // ------------- Optional query parameter "message_source" ------------- - err = runtime.BindQueryParameter("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource) + err = runtime.BindQueryParameterWithOptions("form", true, false, "message_source", r.URL.Query(), ¶ms.MessageSource, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "message_source"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "message_source", Err: err}) + } return } // ------------- Optional query parameter "priority" ------------- - err = runtime.BindQueryParameter("form", true, false, "priority", r.URL.Query(), ¶ms.Priority) + err = runtime.BindQueryParameterWithOptions("form", true, false, "priority", r.URL.Query(), ¶ms.Priority, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "priority"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "priority", Err: err}) + } return } // ------------- Optional query parameter "channel" ------------- - err = runtime.BindQueryParameter("form", true, false, "channel", r.URL.Query(), ¶ms.Channel) + err = runtime.BindQueryParameterWithOptions("form", true, false, "channel", r.URL.Query(), ¶ms.Channel, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "channel"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "channel", Err: err}) + } return } // ------------- Optional query parameter "include_archived" ------------- - err = runtime.BindQueryParameter("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived) + err = runtime.BindQueryParameterWithOptions("form", true, false, "include_archived", r.URL.Query(), ¶ms.IncludeArchived, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_archived"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_archived", Err: err}) + } return } // ------------- Optional query parameter "include_scheduled" ------------- - err = runtime.BindQueryParameter("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled) + err = runtime.BindQueryParameterWithOptions("form", true, false, "include_scheduled", r.URL.Query(), ¶ms.IncludeScheduled, runtime.BindQueryParameterOptions{Type: "boolean", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "include_scheduled"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "include_scheduled", Err: err}) + } return } // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -36699,11 +39086,12 @@ func (siw *ServerInterfaceWrapper) GetUserInboxMessages(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) CreateUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36712,7 +39100,7 @@ func (siw *ServerInterfaceWrapper) CreateUserInboxMessage(w http.ResponseWriter, // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36739,11 +39127,12 @@ func (siw *ServerInterfaceWrapper) CreateUserInboxMessage(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36752,7 +39141,7 @@ func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36761,7 +39150,7 @@ func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -36788,11 +39177,12 @@ func (siw *ServerInterfaceWrapper) ArchiveUserInboxMessage(w http.ResponseWriter func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36801,7 +39191,7 @@ func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36810,7 +39200,7 @@ func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -36837,11 +39227,12 @@ func (siw *ServerInterfaceWrapper) ReadUserInboxMessage(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36850,7 +39241,7 @@ func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWri // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36859,7 +39250,7 @@ func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWri // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -36886,11 +39277,12 @@ func (siw *ServerInterfaceWrapper) RescheduleUserInboxMessage(w http.ResponseWri func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36899,7 +39291,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWrit // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36908,7 +39300,7 @@ func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWrit // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -36935,11 +39327,12 @@ func (siw *ServerInterfaceWrapper) UnarchiveUserInboxMessage(w http.ResponseWrit func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36948,7 +39341,7 @@ func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -36957,7 +39350,7 @@ func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, // ------------- Path parameter "messageID" ------------- var messageID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "messageID", chi.URLParam(r, "messageID"), &messageID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "messageID", Err: err}) return @@ -36984,11 +39377,12 @@ func (siw *ServerInterfaceWrapper) UnreadUserInboxMessage(w http.ResponseWriter, func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -36997,7 +39391,7 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37014,17 +39408,27 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -37043,11 +39447,12 @@ func (siw *ServerInterfaceWrapper) GetUserJourneys(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37056,7 +39461,7 @@ func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *ht // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37073,17 +39478,27 @@ func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *ht // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -37102,11 +39517,12 @@ func (siw *ServerInterfaceWrapper) GetUserScheduled(w http.ResponseWriter, r *ht func (siw *ServerInterfaceWrapper) UpsertUserScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37115,7 +39531,7 @@ func (siw *ServerInterfaceWrapper) UpsertUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37142,11 +39558,12 @@ func (siw *ServerInterfaceWrapper) UpsertUserScheduled(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37155,7 +39572,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37164,7 +39581,7 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -37191,11 +39608,12 @@ func (siw *ServerInterfaceWrapper) DeleteUserScheduled(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37204,7 +39622,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37213,7 +39631,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r // ------------- Path parameter "scheduledInstanceID" ------------- var scheduledInstanceID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "scheduledInstanceID", chi.URLParam(r, "scheduledInstanceID"), &scheduledInstanceID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "scheduledInstanceID", Err: err}) return @@ -37240,11 +39658,12 @@ func (siw *ServerInterfaceWrapper) UpdateUserScheduled(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37253,7 +39672,7 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37270,25 +39689,40 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -37307,11 +39741,12 @@ func (siw *ServerInterfaceWrapper) GetUserOrganizations(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37320,7 +39755,7 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37337,17 +39772,27 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -37366,11 +39811,12 @@ func (siw *ServerInterfaceWrapper) GetUserSubscriptions(w http.ResponseWriter, r func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37379,7 +39825,7 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter // ------------- Path parameter "userID" ------------- var userID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "userID", chi.URLParam(r, "userID"), &userID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "userID", Err: err}) return @@ -37406,11 +39852,12 @@ func (siw *ServerInterfaceWrapper) UpdateUserSubscriptions(w http.ResponseWriter func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37427,17 +39874,27 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } @@ -37456,11 +39913,12 @@ func (siw *ServerInterfaceWrapper) ListSubscriptions(w http.ResponseWriter, r *h func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37487,11 +39945,12 @@ func (siw *ServerInterfaceWrapper) CreateSubscription(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37500,7 +39959,7 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt // ------------- Path parameter "subscriptionID" ------------- var subscriptionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) return @@ -37527,11 +39986,12 @@ func (siw *ServerInterfaceWrapper) GetSubscription(w http.ResponseWriter, r *htt func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37540,7 +40000,7 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * // ------------- Path parameter "subscriptionID" ------------- var subscriptionID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "subscriptionID", chi.URLParam(r, "subscriptionID"), &subscriptionID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "subscriptionID", Err: err}) return @@ -37567,11 +40027,12 @@ func (siw *ServerInterfaceWrapper) UpdateSubscription(w http.ResponseWriter, r * func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37588,25 +40049,40 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -37625,11 +40101,12 @@ func (siw *ServerInterfaceWrapper) ListTags(w http.ResponseWriter, r *http.Reque func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37656,11 +40133,12 @@ func (siw *ServerInterfaceWrapper) CreateTag(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37669,7 +40147,7 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "tagID" ------------- var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return @@ -37696,11 +40174,12 @@ func (siw *ServerInterfaceWrapper) DeleteTag(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37709,7 +40188,7 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request // ------------- Path parameter "tagID" ------------- var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return @@ -37736,11 +40215,12 @@ func (siw *ServerInterfaceWrapper) GetTag(w http.ResponseWriter, r *http.Request func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "projectID" ------------- var projectID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "projectID", chi.URLParam(r, "projectID"), &projectID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "projectID", Err: err}) return @@ -37749,7 +40229,7 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ // ------------- Path parameter "tagID" ------------- var tagID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "tagID", chi.URLParam(r, "tagID"), &tagID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "tagID", Err: err}) return @@ -37776,6 +40256,7 @@ func (siw *ServerInterfaceWrapper) UpdateTag(w http.ResponseWriter, r *http.Requ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Request) { var err error + _ = err ctx := r.Context() @@ -37788,25 +40269,40 @@ func (siw *ServerInterfaceWrapper) ListAdmins(w http.ResponseWriter, r *http.Req // ------------- Optional query parameter "limit" ------------- - err = runtime.BindQueryParameter("form", true, false, "limit", r.URL.Query(), ¶ms.Limit) + err = runtime.BindQueryParameterWithOptions("form", true, false, "limit", r.URL.Query(), ¶ms.Limit, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "limit"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "limit", Err: err}) + } return } // ------------- Optional query parameter "offset" ------------- - err = runtime.BindQueryParameter("form", true, false, "offset", r.URL.Query(), ¶ms.Offset) + err = runtime.BindQueryParameterWithOptions("form", true, false, "offset", r.URL.Query(), ¶ms.Offset, runtime.BindQueryParameterOptions{Type: "integer", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "offset"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "offset", Err: err}) + } return } // ------------- Optional query parameter "search" ------------- - err = runtime.BindQueryParameter("form", true, false, "search", r.URL.Query(), ¶ms.Search) + err = runtime.BindQueryParameterWithOptions("form", true, false, "search", r.URL.Query(), ¶ms.Search, runtime.BindQueryParameterOptions{Type: "string", Format: ""}) if err != nil { - siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + var requiredError *runtime.RequiredParameterError + if errors.As(err, &requiredError) { + siw.ErrorHandlerFunc(w, r, &RequiredParamError{ParamName: "search"}) + } else { + siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "search", Err: err}) + } return } @@ -37845,11 +40341,12 @@ func (siw *ServerInterfaceWrapper) CreateAdmin(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -37876,11 +40373,12 @@ func (siw *ServerInterfaceWrapper) DeleteAdmin(w http.ResponseWriter, r *http.Re func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -37907,11 +40405,12 @@ func (siw *ServerInterfaceWrapper) GetAdmin(w http.ResponseWriter, r *http.Reque func (siw *ServerInterfaceWrapper) UpdateAdmin(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "adminID" ------------- var adminID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "adminID", chi.URLParam(r, "adminID"), &adminID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "adminID", Err: err}) return @@ -37958,11 +40457,12 @@ func (siw *ServerInterfaceWrapper) Whoami(w http.ResponseWriter, r *http.Request func (siw *ServerInterfaceWrapper) AuthCallback(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "driver" ------------- var driver AuthCallbackParamsDriver - err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "driver", Err: err}) return @@ -37997,11 +40497,12 @@ func (siw *ServerInterfaceWrapper) GetAuthMethods(w http.ResponseWriter, r *http func (siw *ServerInterfaceWrapper) AuthWebhook(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "driver" ------------- var driver AuthWebhookParamsDriver - err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "driver", chi.URLParam(r, "driver"), &driver, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: ""}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "driver", Err: err}) return @@ -38042,11 +40543,12 @@ func (siw *ServerInterfaceWrapper) ListMyInvites(w http.ResponseWriter, r *http. func (siw *ServerInterfaceWrapper) AcceptProjectInvite(w http.ResponseWriter, r *http.Request) { var err error + _ = err // ------------- Path parameter "inviteID" ------------- var inviteID openapi_types.UUID - err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true}) + err = runtime.BindStyledParameterWithOptions("simple", "inviteID", chi.URLParam(r, "inviteID"), &inviteID, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true, Type: "string", Format: "uuid"}) if err != nil { siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "inviteID", Err: err}) return From 51338d6fc0c604b364aa1da7c295605dcdb07c86 Mon Sep 17 00:00:00 2001 From: Jeroen Rinzema Date: Mon, 29 Jun 2026 23:31:12 +0200 Subject: [PATCH 4/5] fix(scheduled): keep omitted-id messages idempotent; require delete identifier Addresses PR review: - Consumer derives a deterministic assignment id from (subject, schedule) when a ScheduledMsg omits assignment_id, so producers that don't set one (user/org anniversary schedules) stay idempotent under at-least-once redelivery instead of minting a fresh id per delivery and duplicating the assignment. The client API still sends an explicit id, so its create-new-per-submit behaviour is unchanged. - DeleteUserScheduledRequest now requires identifier in the schema (the handler already rejected requests without one); regenerated client oapi and updated the handler for the now non-pointer identifier. - Added a unit test for resolveAssignmentID. --- .../controllers/v1/client/oapi/resources.yml | 2 ++ .../v1/client/oapi/resources_gen.go | 2 +- .../http/controllers/v1/client/scheduled.go | 4 +-- internal/pubsub/consumer/scheduled.go | 22 +++++++++++-- internal/pubsub/consumer/scheduled_test.go | 31 +++++++++++++++++++ 5 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 internal/pubsub/consumer/scheduled_test.go diff --git a/internal/http/controllers/v1/client/oapi/resources.yml b/internal/http/controllers/v1/client/oapi/resources.yml index 57e64124..30dcd5d8 100644 --- a/internal/http/controllers/v1/client/oapi/resources.yml +++ b/internal/http/controllers/v1/client/oapi/resources.yml @@ -1732,6 +1732,8 @@ components: DeleteUserScheduledRequest: type: object + required: + - identifier properties: id: type: string diff --git a/internal/http/controllers/v1/client/oapi/resources_gen.go b/internal/http/controllers/v1/client/oapi/resources_gen.go index eb98cdd3..392e1a82 100644 --- a/internal/http/controllers/v1/client/oapi/resources_gen.go +++ b/internal/http/controllers/v1/client/oapi/resources_gen.go @@ -150,7 +150,7 @@ type DeleteUserScheduledRequest struct { Id *openapi_types.UUID `json:"id,omitempty"` // Identifier One or more external identifiers to identify the user - Identifier *UserIdentifier `json:"identifier,omitempty"` + Identifier UserIdentifier `json:"identifier"` // Name The name of the scheduled resource to delete. When provided (and id is omitted), every assignment with this name for the user is removed. Either id or name is required. Name *string `json:"name,omitempty"` diff --git a/internal/http/controllers/v1/client/scheduled.go b/internal/http/controllers/v1/client/scheduled.go index 05e696e9..c2835b07 100644 --- a/internal/http/controllers/v1/client/scheduled.go +++ b/internal/http/controllers/v1/client/scheduled.go @@ -142,7 +142,7 @@ func (srv *ScheduledController) DeleteUserScheduledClient(w http.ResponseWriter, return } - if req.Identifier == nil || len(*req.Identifier) == 0 { + if len(req.Identifier) == 0 { srv.logger.Error("at least one identifier is required") oapi.WriteProblem(w, problem.ErrBadRequest(problem.Describe("at least one identifier is required"))) return @@ -151,7 +151,7 @@ func (srv *ScheduledController) DeleteUserScheduledClient(w http.ResponseWriter, logger := srv.logger.With(zap.Stringer("project_id", projectID)) logger.Info("deleting user scheduled") - userID, err := srv.users.LookupUserID(ctx, projectID, auth.BoundUserIdentifiers(ctx, oapi.ToParams(*req.Identifier))) + userID, err := srv.users.LookupUserID(ctx, projectID, auth.BoundUserIdentifiers(ctx, oapi.ToParams(req.Identifier))) if errors.Is(err, subjects.ErrUserNotFound) { logger.Info("user not found") oapi.WriteProblem(w, problem.ErrNotFound(problem.Describe("user not found"))) diff --git a/internal/pubsub/consumer/scheduled.go b/internal/pubsub/consumer/scheduled.go index 7aa8d5c6..bf3cf1cf 100644 --- a/internal/pubsub/consumer/scheduled.go +++ b/internal/pubsub/consumer/scheduled.go @@ -19,6 +19,22 @@ import ( "go.uber.org/zap" ) +// scheduledAssignmentNamespace derives a stable assignment id for scheduled +// messages that omit assignment_id, keyed by (subject, schedule). Producers that +// do not set an id (e.g. the user/organization anniversary schedules) thereby +// stay idempotent under at-least-once redelivery — a redelivered message upserts +// the same assignment instead of minting a fresh one and duplicating it. +var scheduledAssignmentNamespace = uuid.MustParse("c1d2e3f4-5a6b-7c8d-9e0f-1a2b3c4d5e6f") + +// resolveAssignmentID returns the message's assignment id, or a deterministic id +// derived from (subjectID, scheduleID) when the message omits one. +func resolveAssignmentID(provided, subjectID, scheduleID uuid.UUID) uuid.UUID { + if provided != uuid.Nil { + return provided + } + return uuid.NewSHA1(scheduledAssignmentNamespace, append(subjectID[:], scheduleID[:]...)) +} + // resolveUserID ensures scheduled.UserID is populated, looking it up by // identifiers when necessary. func resolveUserID(ctx context.Context, logger *zap.Logger, txState *subjects.State, scheduled *schemas.ScheduledMsg) error { @@ -123,7 +139,8 @@ func ScheduledHandler(logger *zap.Logger, db *sqlx.DB, usrs *subjects.State, pub if err := resolveUserID(ctx, logger, txState, &scheduled); err != nil { return err } - if _, err := txState.UpsertUserSchedule(ctx, scheduled.AssignmentID, scheduled.UserID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { + assignmentID := resolveAssignmentID(scheduled.AssignmentID, scheduled.UserID, scheduled.ScheduledID) + if _, err := txState.UpsertUserSchedule(ctx, assignmentID, scheduled.UserID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { if errors.Is(err, subjects.ErrScheduleOwnershipMismatch) { logger.Error("user schedule assignment id does not match subject/schedule", zap.Error(err)) return Permanent(err) @@ -136,7 +153,8 @@ func ScheduledHandler(logger *zap.Logger, db *sqlx.DB, usrs *subjects.State, pub if err := resolveOrganizationID(ctx, logger, txState, &scheduled); err != nil { return err } - if _, err := txState.UpsertOrganizationSchedule(ctx, scheduled.AssignmentID, scheduled.OrganizationID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { + assignmentID := resolveAssignmentID(scheduled.AssignmentID, scheduled.OrganizationID, scheduled.ScheduledID) + if _, err := txState.UpsertOrganizationSchedule(ctx, assignmentID, scheduled.OrganizationID, scheduled.ScheduledID, scheduledAt, scheduled.StartAt, scheduled.Interval, data); err != nil { if errors.Is(err, subjects.ErrScheduleOwnershipMismatch) { logger.Error("organization schedule assignment id does not match subject/schedule", zap.Error(err)) return Permanent(err) diff --git a/internal/pubsub/consumer/scheduled_test.go b/internal/pubsub/consumer/scheduled_test.go new file mode 100644 index 00000000..30dadcae --- /dev/null +++ b/internal/pubsub/consumer/scheduled_test.go @@ -0,0 +1,31 @@ +package consumer + +import ( + "testing" + + "github.com/google/uuid" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestResolveAssignmentID(t *testing.T) { + t.Parallel() + + subject := uuid.New() + schedule := uuid.New() + + // A provided id is passed through unchanged. + provided := uuid.New() + assert.Equal(t, provided, resolveAssignmentID(provided, subject, schedule)) + + // An omitted id is derived deterministically from (subject, schedule), so a + // redelivered message resolves to the same assignment and stays idempotent. + first := resolveAssignmentID(uuid.Nil, subject, schedule) + second := resolveAssignmentID(uuid.Nil, subject, schedule) + require.NotEqual(t, uuid.Nil, first) + assert.Equal(t, first, second) + + // Different subjects or schedules derive different ids. + assert.NotEqual(t, first, resolveAssignmentID(uuid.Nil, uuid.New(), schedule)) + assert.NotEqual(t, first, resolveAssignmentID(uuid.Nil, subject, uuid.New())) +} From 4823332cd92f3f4ad38a01a90685fe0bcd2c71b9 Mon Sep 17 00:00:00 2001 From: Jeroen Rinzema Date: Mon, 29 Jun 2026 23:37:47 +0200 Subject: [PATCH 5/5] docs(scheduled): update upsert doc comments for id-based semantics The UpsertUserSchedule / UpsertOrganizationSchedule doc comments still described the old (subject, schedule) conflict model. Updated to reflect that assignments are keyed by their own id (nil creates a new instance; an existing id updates in place, guarded by ErrScheduleOwnershipMismatch). --- internal/store/subjects/scheduled.go | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/internal/store/subjects/scheduled.go b/internal/store/subjects/scheduled.go index 48ab3496..f8425c82 100644 --- a/internal/store/subjects/scheduled.go +++ b/internal/store/subjects/scheduled.go @@ -495,9 +495,13 @@ func (s *ScheduledStore) UpdateUserSchedule(ctx context.Context, id uuid.UUID, s return &us, nil } -// UpsertUserSchedule inserts a new user schedule or updates the existing one -// for the given (userID, scheduleID) pair using ON CONFLICT. After the upsert -// it recomputes pending scheduled events. +// UpsertUserSchedule creates or updates a user schedule assignment addressed by +// its own id: a nil id (or one not yet stored) inserts a new assignment, while an +// existing id updates that assignment in place. Assignments are keyed by id +// rather than (userID, scheduleID), so a user may hold multiple assignments for +// the same schedule. A supplied id must resolve to a row for the same +// (userID, scheduleID); otherwise ErrScheduleOwnershipMismatch is returned. After +// the upsert it recomputes pending scheduled events. func (s *ScheduledStore) UpsertUserSchedule(ctx context.Context, id, userID, scheduleID uuid.UUID, scheduledAt *time.Time, startAt *time.Time, interval *string, data json.RawMessage) (*UserSchedule, error) { // A nil id means "create a new assignment"; mint one so the row is // addressable by the caller afterwards. @@ -1104,9 +1108,14 @@ func (s *ScheduledStore) UpdateOrganizationSchedule(ctx context.Context, id uuid return &os, nil } -// UpsertOrganizationSchedule inserts a new organization schedule or updates the -// existing one for the given (organizationID, scheduleID) pair using ON CONFLICT. -// After the upsert it recomputes pending scheduled events. +// UpsertOrganizationSchedule creates or updates an organization schedule +// assignment addressed by its own id: a nil id (or one not yet stored) inserts a +// new assignment, while an existing id updates that assignment in place. +// Assignments are keyed by id rather than (organizationID, scheduleID), so an +// organization may hold multiple assignments for the same schedule. A supplied id +// must resolve to a row for the same (organizationID, scheduleID); otherwise +// ErrScheduleOwnershipMismatch is returned. After the upsert it recomputes +// pending scheduled events. func (s *ScheduledStore) UpsertOrganizationSchedule(ctx context.Context, id, organizationID, scheduleID uuid.UUID, scheduledAt *time.Time, startAt *time.Time, interval *string, data json.RawMessage) (*OrganizationSchedule, error) { // A nil id means "create a new assignment"; mint one so the row is // addressable by the caller afterwards.