summaryrefslogtreecommitdiffhomepage
path: root/pkg/client/generated-event.go
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-05-29 11:32:55 -0400
committerDax Raad <[email protected]>2025-05-29 11:32:55 -0400
commit6f604bd0f999a5df4ed6a57aef524f0dcf9eb356 (patch)
treeefb732ba56257a8f02edea604424821c9b687cf3 /pkg/client/generated-event.go
parent42c1cd6a852be5295aedc5c19e1a2aef45a464e3 (diff)
downloadopencode-6f604bd0f999a5df4ed6a57aef524f0dcf9eb356.tar.gz
opencode-6f604bd0f999a5df4ed6a57aef524f0dcf9eb356.zip
remove secondary codegen
Diffstat (limited to 'pkg/client/generated-event.go')
-rw-r--r--pkg/client/generated-event.go116
1 files changed, 0 insertions, 116 deletions
diff --git a/pkg/client/generated-event.go b/pkg/client/generated-event.go
deleted file mode 100644
index 12485b648..000000000
--- a/pkg/client/generated-event.go
+++ /dev/null
@@ -1,116 +0,0 @@
-// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.
-
-package client
-
-import "encoding/json"
-import "fmt"
-
-type EventLspClientDiagnostics struct {
- // Path corresponds to the JSON schema field "path".
- Path string `json:"path" yaml:"path" mapstructure:"path"`
-
- // ServerID corresponds to the JSON schema field "serverID".
- ServerID string `json:"serverID" yaml:"serverID" mapstructure:"serverID"`
-}
-
-// UnmarshalJSON implements json.Unmarshaler.
-func (j *EventLspClientDiagnostics) UnmarshalJSON(value []byte) error {
- var raw map[string]interface{}
- if err := json.Unmarshal(value, &raw); err != nil {
- return err
- }
- if _, ok := raw["path"]; raw != nil && !ok {
- return fmt.Errorf("field path in EventLspClientDiagnostics: required")
- }
- if _, ok := raw["serverID"]; raw != nil && !ok {
- return fmt.Errorf("field serverID in EventLspClientDiagnostics: required")
- }
- type Plain EventLspClientDiagnostics
- var plain Plain
- if err := json.Unmarshal(value, &plain); err != nil {
- return err
- }
- *j = EventLspClientDiagnostics(plain)
- return nil
-}
-
-type EventMessageUpdated struct {
- // MessageID corresponds to the JSON schema field "messageID".
- MessageID string `json:"messageID" yaml:"messageID" mapstructure:"messageID"`
-
- // SessionID corresponds to the JSON schema field "sessionID".
- SessionID string `json:"sessionID" yaml:"sessionID" mapstructure:"sessionID"`
-}
-
-// UnmarshalJSON implements json.Unmarshaler.
-func (j *EventMessageUpdated) UnmarshalJSON(value []byte) error {
- var raw map[string]interface{}
- if err := json.Unmarshal(value, &raw); err != nil {
- return err
- }
- if _, ok := raw["messageID"]; raw != nil && !ok {
- return fmt.Errorf("field messageID in EventMessageUpdated: required")
- }
- if _, ok := raw["sessionID"]; raw != nil && !ok {
- return fmt.Errorf("field sessionID in EventMessageUpdated: required")
- }
- type Plain EventMessageUpdated
- var plain Plain
- if err := json.Unmarshal(value, &plain); err != nil {
- return err
- }
- *j = EventMessageUpdated(plain)
- return nil
-}
-
-type EventSessionUpdated struct {
- // SessionID corresponds to the JSON schema field "sessionID".
- SessionID string `json:"sessionID" yaml:"sessionID" mapstructure:"sessionID"`
-}
-
-// UnmarshalJSON implements json.Unmarshaler.
-func (j *EventSessionUpdated) UnmarshalJSON(value []byte) error {
- var raw map[string]interface{}
- if err := json.Unmarshal(value, &raw); err != nil {
- return err
- }
- if _, ok := raw["sessionID"]; raw != nil && !ok {
- return fmt.Errorf("field sessionID in EventSessionUpdated: required")
- }
- type Plain EventSessionUpdated
- var plain Plain
- if err := json.Unmarshal(value, &plain); err != nil {
- return err
- }
- *j = EventSessionUpdated(plain)
- return nil
-}
-
-type EventStorageWrite struct {
- // Content corresponds to the JSON schema field "content".
- Content interface{} `json:"content" yaml:"content" mapstructure:"content"`
-
- // Key corresponds to the JSON schema field "key".
- Key string `json:"key" yaml:"key" mapstructure:"key"`
-}
-
-// UnmarshalJSON implements json.Unmarshaler.
-func (j *EventStorageWrite) UnmarshalJSON(value []byte) error {
- var raw map[string]interface{}
- if err := json.Unmarshal(value, &raw); err != nil {
- return err
- }
- if _, ok := raw["content"]; raw != nil && !ok {
- return fmt.Errorf("field content in EventStorageWrite: required")
- }
- if _, ok := raw["key"]; raw != nil && !ok {
- return fmt.Errorf("field key in EventStorageWrite: required")
- }
- type Plain EventStorageWrite
- var plain Plain
- if err := json.Unmarshal(value, &plain); err != nil {
- return err
- }
- *j = EventStorageWrite(plain)
- return nil
-}