@@ -74,13 +74,13 @@ func (r *EditorService) ResolveURL(ctx context.Context, body EditorResolveURLPar
74
74
}
75
75
76
76
type Editor struct {
77
- ID string `json:"id"`
78
- Alias string `json:"alias"`
79
- IconURL string `json:"iconUrl"`
80
- InstallationInstructions string `json:"installationInstructions"`
81
- Name string `json:"name"`
82
- ShortDescription string `json:"shortDescription"`
83
- URLTemplate string `json:"urlTemplate"`
77
+ ID string `json:"id,required "`
78
+ Alias string `json:"alias,required "`
79
+ IconURL string `json:"iconUrl,required "`
80
+ InstallationInstructions string `json:"installationInstructions,required "`
81
+ Name string `json:"name,required "`
82
+ ShortDescription string `json:"shortDescription,required "`
83
+ URLTemplate string `json:"urlTemplate,required "`
84
84
JSON editorJSON `json:"-"`
85
85
}
86
86
@@ -107,7 +107,7 @@ func (r editorJSON) RawJSON() string {
107
107
108
108
type EditorGetResponse struct {
109
109
// editor contains the editor
110
- Editor Editor `json:"editor"`
110
+ Editor Editor `json:"editor,required "`
111
111
JSON editorGetResponseJSON `json:"-"`
112
112
}
113
113
@@ -129,7 +129,7 @@ func (r editorGetResponseJSON) RawJSON() string {
129
129
130
130
type EditorResolveURLResponse struct {
131
131
// url is the resolved editor URL
132
- URL string `json:"url"`
132
+ URL string `json:"url,required "`
133
133
JSON editorResolveURLResponseJSON `json:"-"`
134
134
}
135
135
@@ -151,7 +151,7 @@ func (r editorResolveURLResponseJSON) RawJSON() string {
151
151
152
152
type EditorGetParams struct {
153
153
// id is the ID of the editor to get
154
- ID param.Field [string ] `json:"id"`
154
+ ID param.Field [string ] `json:"id,required "`
155
155
}
156
156
157
157
func (r EditorGetParams ) MarshalJSON () (data []byte , err error ) {
@@ -193,11 +193,11 @@ func (r EditorListParamsPagination) MarshalJSON() (data []byte, err error) {
193
193
194
194
type EditorResolveURLParams struct {
195
195
// editorId is the ID of the editor to resolve the URL for
196
- EditorID param.Field [string ] `json:"editorId" format:"uuid"`
196
+ EditorID param.Field [string ] `json:"editorId,required " format:"uuid"`
197
197
// environmentId is the ID of the environment to resolve the URL for
198
- EnvironmentID param.Field [string ] `json:"environmentId" format:"uuid"`
198
+ EnvironmentID param.Field [string ] `json:"environmentId,required " format:"uuid"`
199
199
// organizationId is the ID of the organization to resolve the URL for
200
- OrganizationID param.Field [string ] `json:"organizationId" format:"uuid"`
200
+ OrganizationID param.Field [string ] `json:"organizationId,required " format:"uuid"`
201
201
}
202
202
203
203
func (r EditorResolveURLParams ) MarshalJSON () (data []byte , err error ) {
0 commit comments