mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
Upgrade to Zod v4 (#2605)
Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
type MessageAbortedError struct {
|
||||
Data interface{} `json:"data,required"`
|
||||
Data MessageAbortedErrorData `json:"data,required"`
|
||||
Name MessageAbortedErrorName `json:"name,required"`
|
||||
JSON messageAbortedErrorJSON `json:"-"`
|
||||
}
|
||||
@@ -33,6 +33,27 @@ func (r MessageAbortedError) ImplementsEventListResponseEventSessionErrorPropert
|
||||
|
||||
func (r MessageAbortedError) ImplementsAssistantMessageError() {}
|
||||
|
||||
type MessageAbortedErrorData struct {
|
||||
Message string `json:"message,required"`
|
||||
JSON messageAbortedErrorDataJSON `json:"-"`
|
||||
}
|
||||
|
||||
// messageAbortedErrorDataJSON contains the JSON metadata for the struct
|
||||
// [MessageAbortedErrorData]
|
||||
type messageAbortedErrorDataJSON struct {
|
||||
Message apijson.Field
|
||||
raw string
|
||||
ExtraFields map[string]apijson.Field
|
||||
}
|
||||
|
||||
func (r *MessageAbortedErrorData) UnmarshalJSON(data []byte) (err error) {
|
||||
return apijson.UnmarshalRoot(data, r)
|
||||
}
|
||||
|
||||
func (r messageAbortedErrorDataJSON) RawJSON() string {
|
||||
return r.raw
|
||||
}
|
||||
|
||||
type MessageAbortedErrorName string
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user