Skip to content

Commit 2b11e6e

Browse files
committed
fix: fixed 404 response codes not being returned
1 parent 1caec9b commit 2b11e6e

File tree

682 files changed

+5605
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

682 files changed

+5605
-769
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Fixed
2+
body: Regenerated sdk with 404 response codes
3+
time: 2024-03-21T10:56:12.148641307+01:00

Taskfile.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ tasks:
2525

2626
generate:
2727
cmds:
28-
- task: generate-checkout
28+
# - task: generate-checkout
2929
- task: generate-connect
3030
- task: generate-importapi
31-
- task: generate-frontend
31+
# - task: generate-frontend
3232
# - task: generate-ml
3333
- task: generate-platform
3434
- task: generate-history

platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestMethodGet) Execute(
112112
return nil, err
113113
}
114114
return nil, errorObj
115-
115+
case 404:
116+
return nil, ErrNotFound
116117
case 500:
117118
errorObj := ErrorResponse{}
118119
err = json.Unmarshal(content, &errorObj)

platform/client_active_cart_by_project_key_in_store_key_by_store_key_me_active_cart_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ func (rb *ByProjectKeyInStoreKeyByStoreKeyMeActiveCartRequestMethodHead) Execute
6969
return err
7070
}
7171
return errorObj
72-
72+
case 404:
73+
return ErrNotFound
7374
case 500:
7475
errorObj := ErrorResponse{}
7576
err = json.Unmarshal(content, &errorObj)

platform/client_active_cart_by_project_key_me_active_cart_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ func (rb *ByProjectKeyMeActiveCartRequestMethodGet) Execute(ctx context.Context)
111111
return nil, err
112112
}
113113
return nil, errorObj
114-
114+
case 404:
115+
return nil, ErrNotFound
115116
case 500:
116117
errorObj := ErrorResponse{}
117118
err = json.Unmarshal(content, &errorObj)

platform/client_active_cart_by_project_key_me_active_cart_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ func (rb *ByProjectKeyMeActiveCartRequestMethodHead) Execute(ctx context.Context
6969
return err
7070
}
7171
return errorObj
72-
72+
case 404:
73+
return ErrNotFound
7374
case 500:
7475
errorObj := ErrorResponse{}
7576
err = json.Unmarshal(content, &errorObj)

platform/client_api_clients_by_project_key_api_clients_by_id_delete.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ func (rb *ByProjectKeyApiClientsByIDRequestMethodDelete) Execute(ctx context.Con
7272
return nil, err
7373
}
7474
return nil, errorObj
75-
75+
case 404:
76+
return nil, ErrNotFound
7677
case 500:
7778
errorObj := ErrorResponse{}
7879
err = json.Unmarshal(content, &errorObj)

platform/client_api_clients_by_project_key_api_clients_by_id_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ func (rb *ByProjectKeyApiClientsByIDRequestMethodGet) Execute(ctx context.Contex
7171
return nil, err
7272
}
7373
return nil, errorObj
74-
74+
case 404:
75+
return nil, ErrNotFound
7576
case 500:
7677
errorObj := ErrorResponse{}
7778
err = json.Unmarshal(content, &errorObj)

platform/client_api_clients_by_project_key_api_clients_by_id_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ func (rb *ByProjectKeyApiClientsByIDRequestMethodHead) Execute(ctx context.Conte
6969
return err
7070
}
7171
return errorObj
72-
72+
case 404:
73+
return ErrNotFound
7374
case 500:
7475
errorObj := ErrorResponse{}
7576
err = json.Unmarshal(content, &errorObj)

platform/client_api_clients_by_project_key_api_clients_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ func (rb *ByProjectKeyApiClientsRequestMethodGet) Execute(ctx context.Context) (
182182
return nil, err
183183
}
184184
return nil, errorObj
185-
185+
case 404:
186+
return nil, ErrNotFound
186187
case 500:
187188
errorObj := ErrorResponse{}
188189
err = json.Unmarshal(content, &errorObj)

platform/client_api_clients_by_project_key_api_clients_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ func (rb *ByProjectKeyApiClientsRequestMethodHead) Execute(ctx context.Context)
8282
switch resp.StatusCode {
8383
case 200:
8484
return nil
85-
85+
case 404:
86+
return ErrNotFound
8687
case 400:
8788
errorObj := ErrorResponse{}
8889
err = json.Unmarshal(content, &errorObj)

platform/client_api_clients_by_project_key_api_clients_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ func (rb *ByProjectKeyApiClientsRequestMethodPost) Execute(ctx context.Context)
109109
return nil, err
110110
}
111111
return nil, errorObj
112-
112+
case 404:
113+
return nil, ErrNotFound
113114
case 500:
114115
errorObj := ErrorResponse{}
115116
err = json.Unmarshal(content, &errorObj)

platform/client_apply_by_project_key_orders_edits_by_id_apply_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ func (rb *ByProjectKeyOrdersEditsByIDApplyRequestMethodPost) Execute(ctx context
8282
return nil, err
8383
}
8484
return nil, errorObj
85-
85+
case 404:
86+
return nil, ErrNotFound
8687
case 500:
8788
errorObj := ErrorResponse{}
8889
err = json.Unmarshal(content, &errorObj)

platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
103103
return nil, err
104104
}
105105
return nil, errorObj
106-
106+
case 404:
107+
return nil, ErrNotFound
107108
case 500:
108109
errorObj := ErrorResponse{}
109110
err = json.Unmarshal(content, &errorObj)

platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_by_id_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
116116
return nil, err
117117
}
118118
return nil, errorObj
119-
119+
case 404:
120+
return nil, ErrNotFound
120121
case 500:
121122
errorObj := ErrorResponse{}
122123
err = json.Unmarshal(content, &errorObj)

platform/client_approval_flows_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_flows_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
182182
return nil, err
183183
}
184184
return nil, errorObj
185-
185+
case 404:
186+
return nil, ErrNotFound
186187
case 500:
187188
errorObj := ErrorResponse{}
188189
err = json.Unmarshal(content, &errorObj)

platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
103103
return nil, err
104104
}
105105
return nil, errorObj
106-
106+
case 404:
107+
return nil, ErrNotFound
107108
case 500:
108109
errorObj := ErrorResponse{}
109110
err = json.Unmarshal(content, &errorObj)

platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_by_id_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
116116
return nil, err
117117
}
118118
return nil, errorObj
119-
119+
case 404:
120+
return nil, ErrNotFound
120121
case 500:
121122
errorObj := ErrorResponse{}
122123
err = json.Unmarshal(content, &errorObj)

platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
182182
return nil, err
183183
}
184184
return nil, errorObj
185-
185+
case 404:
186+
return nil, ErrNotFound
186187
case 500:
187188
errorObj := ErrorResponse{}
188189
err = json.Unmarshal(content, &errorObj)

platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
103103
return nil, err
104104
}
105105
return nil, errorObj
106-
106+
case 404:
107+
return nil, ErrNotFound
107108
case 500:
108109
errorObj := ErrorResponse{}
109110
err = json.Unmarshal(content, &errorObj)

platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_key_by_key_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
116116
return nil, err
117117
}
118118
return nil, errorObj
119-
119+
case 404:
120+
return nil, ErrNotFound
120121
case 500:
121122
errorObj := ErrorResponse{}
122123
err = json.Unmarshal(content, &errorObj)

platform/client_approval_rules_by_project_key_as_associate_by_associate_id_in_business_unit_key_by_business_unit_key_approval_rules_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ func (rb *ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKey
109109
return nil, err
110110
}
111111
return nil, errorObj
112-
112+
case 404:
113+
return nil, ErrNotFound
113114
case 500:
114115
errorObj := ErrorResponse{}
115116
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_by_id_delete.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodDelete) Execute(ctx context
122122
return nil, err
123123
}
124124
return nil, errorObj
125-
125+
case 404:
126+
return nil, ErrNotFound
126127
case 500:
127128
errorObj := ErrorResponse{}
128129
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_by_id_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodGet) Execute(ctx context.Co
103103
return nil, err
104104
}
105105
return nil, errorObj
106-
106+
case 404:
107+
return nil, ErrNotFound
107108
case 500:
108109
errorObj := ErrorResponse{}
109110
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_by_id_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodHead) Execute(ctx context.C
5050
switch resp.StatusCode {
5151
case 200:
5252
return nil
53-
53+
case 404:
54+
return ErrNotFound
5455
case 400:
5556
errorObj := ErrorResponse{}
5657
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_by_id_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (rb *ByProjectKeyAssociateRolesByIDRequestMethodPost) Execute(ctx context.C
116116
return nil, err
117117
}
118118
return nil, errorObj
119-
119+
case 404:
120+
return nil, ErrNotFound
120121
case 500:
121122
errorObj := ErrorResponse{}
122123
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ func (rb *ByProjectKeyAssociateRolesRequestMethodGet) Execute(ctx context.Contex
182182
return nil, err
183183
}
184184
return nil, errorObj
185-
185+
case 404:
186+
return nil, ErrNotFound
186187
case 500:
187188
errorObj := ErrorResponse{}
188189
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ func (rb *ByProjectKeyAssociateRolesRequestMethodHead) Execute(ctx context.Conte
8282
switch resp.StatusCode {
8383
case 200:
8484
return nil
85-
85+
case 404:
86+
return ErrNotFound
8687
case 400:
8788
errorObj := ErrorResponse{}
8889
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_key_by_key_delete.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodDelete) Execute(ctx con
127127
return nil, err
128128
}
129129
return nil, errorObj
130-
130+
case 404:
131+
return nil, ErrNotFound
131132
case 500:
132133
errorObj := ErrorResponse{}
133134
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_key_by_key_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodGet) Execute(ctx contex
103103
return nil, err
104104
}
105105
return nil, errorObj
106-
106+
case 404:
107+
return nil, ErrNotFound
107108
case 500:
108109
errorObj := ErrorResponse{}
109110
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_key_by_key_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodHead) Execute(ctx conte
5050
switch resp.StatusCode {
5151
case 200:
5252
return nil
53-
53+
case 404:
54+
return ErrNotFound
5455
case 400:
5556
errorObj := ErrorResponse{}
5657
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_key_by_key_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (rb *ByProjectKeyAssociateRolesKeyByKeyRequestMethodPost) Execute(ctx conte
116116
return nil, err
117117
}
118118
return nil, errorObj
119-
119+
case 404:
120+
return nil, ErrNotFound
120121
case 500:
121122
errorObj := ErrorResponse{}
122123
err = json.Unmarshal(content, &errorObj)

platform/client_associate_roles_by_project_key_associate_roles_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ func (rb *ByProjectKeyAssociateRolesRequestMethodPost) Execute(ctx context.Conte
114114
return nil, err
115115
}
116116
return nil, errorObj
117-
117+
case 404:
118+
return nil, ErrNotFound
118119
case 500:
119120
errorObj := ErrorResponse{}
120121
err = json.Unmarshal(content, &errorObj)

platform/client_attribute_groups_by_project_key_attribute_groups_by_id_delete.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodDelete) Execute(ctx contex
122122
return nil, err
123123
}
124124
return nil, errorObj
125-
125+
case 404:
126+
return nil, ErrNotFound
126127
case 500:
127128
errorObj := ErrorResponse{}
128129
err = json.Unmarshal(content, &errorObj)

platform/client_attribute_groups_by_project_key_attribute_groups_by_id_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodGet) Execute(ctx context.C
103103
return nil, err
104104
}
105105
return nil, errorObj
106-
106+
case 404:
107+
return nil, ErrNotFound
107108
case 500:
108109
errorObj := ErrorResponse{}
109110
err = json.Unmarshal(content, &errorObj)

platform/client_attribute_groups_by_project_key_attribute_groups_by_id_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodHead) Execute(ctx context.
5050
switch resp.StatusCode {
5151
case 200:
5252
return nil
53-
53+
case 404:
54+
return ErrNotFound
5455
case 400:
5556
errorObj := ErrorResponse{}
5657
err = json.Unmarshal(content, &errorObj)

platform/client_attribute_groups_by_project_key_attribute_groups_by_id_post.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ func (rb *ByProjectKeyAttributeGroupsByIDRequestMethodPost) Execute(ctx context.
116116
return nil, err
117117
}
118118
return nil, errorObj
119-
119+
case 404:
120+
return nil, ErrNotFound
120121
case 500:
121122
errorObj := ErrorResponse{}
122123
err = json.Unmarshal(content, &errorObj)

platform/client_attribute_groups_by_project_key_attribute_groups_get.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ func (rb *ByProjectKeyAttributeGroupsRequestMethodGet) Execute(ctx context.Conte
182182
return nil, err
183183
}
184184
return nil, errorObj
185-
185+
case 404:
186+
return nil, ErrNotFound
186187
case 500:
187188
errorObj := ErrorResponse{}
188189
err = json.Unmarshal(content, &errorObj)

platform/client_attribute_groups_by_project_key_attribute_groups_head.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ func (rb *ByProjectKeyAttributeGroupsRequestMethodHead) Execute(ctx context.Cont
8282
switch resp.StatusCode {
8383
case 200:
8484
return nil
85-
85+
case 404:
86+
return ErrNotFound
8687
case 400:
8788
errorObj := ErrorResponse{}
8889
err = json.Unmarshal(content, &errorObj)

platform/client_attribute_groups_by_project_key_attribute_groups_key_by_key_delete.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ func (rb *ByProjectKeyAttributeGroupsKeyByKeyRequestMethodDelete) Execute(ctx co
122122
return nil, err
123123
}
124124
return nil, errorObj
125-
125+
case 404:
126+
return nil, ErrNotFound
126127
case 500:
127128
errorObj := ErrorResponse{}
128129
err = json.Unmarshal(content, &errorObj)

0 commit comments

Comments
 (0)