@@ -39,7 +39,7 @@ func (r *ErrorDetail) UnmarshalJSON(data []byte) error {
3939
4040// An error event from the application.
4141type ErrorEvent struct {
42- Error ErrorEventError `json:"error,required"`
42+ Error ErrorModel `json:"error,required"`
4343 // Event type identifier (always "error").
4444 Event constant.Error `json:"event,required"`
4545 // Time the error occurred.
@@ -62,7 +62,7 @@ func (r *ErrorEvent) UnmarshalJSON(data []byte) error {
6262
6363func (ErrorEvent ) ImplInvocationFollowResponseUnion () {}
6464
65- type ErrorEventError struct {
65+ type ErrorModel struct {
6666 // Application-specific error code (machine-readable)
6767 Code string `json:"code,required"`
6868 // Human-readable error description for debugging
@@ -82,8 +82,8 @@ type ErrorEventError struct {
8282}
8383
8484// Returns the unmodified JSON received from the API
85- func (r ErrorEventError ) RawJSON () string { return r .JSON .raw }
86- func (r * ErrorEventError ) UnmarshalJSON (data []byte ) error {
85+ func (r ErrorModel ) RawJSON () string { return r .JSON .raw }
86+ func (r * ErrorModel ) UnmarshalJSON (data []byte ) error {
8787 return apijson .UnmarshalRoot (data , r )
8888}
8989
0 commit comments