swag generation fix
Some checks failed
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing

This commit is contained in:
2026-01-13 20:14:02 +11:00
parent 6d1bb09167
commit 0f0bdf19c3
4 changed files with 420 additions and 3 deletions

View File

@@ -4,6 +4,8 @@ import (
"encoding/json"
)
type JSONRawMessage json.RawMessage
type CloudEventReceived struct {
CloudEvent struct {
ID string `json:"id"`
@@ -53,7 +55,7 @@ type CloudEventReceived struct {
Value string `json:"Value"`
} `json:"Vm"`
} `json:"Vm"`
ConfigSpec *json.RawMessage `json:"configSpec"`
ConfigSpec *JSONRawMessage `json:"configSpec" swaggertype:"object"`
ConfigChanges *ConfigChangesReceived `json:"configChanges"` // Modified to separate struct
} `json:"data"`
} `json:"cloudEvent"`