We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6ab62 commit 467acabCopy full SHA for 467acab
1 file changed
bundle/direct/dresources/model.go
@@ -24,16 +24,6 @@ type MlflowModelRemote struct {
24
ModelId string `json:"model_id"`
25
}
26
27
-// Custom marshalers needed because embedded ml.ModelDatabricks has its own
28
-// MarshalJSON which would otherwise take over and ignore model_id.
29
-func (s *MlflowModelRemote) UnmarshalJSON(b []byte) error {
30
- return marshal.Unmarshal(b, s)
31
-}
32
-
33
-func (s MlflowModelRemote) MarshalJSON() ([]byte, error) {
34
- return marshal.Marshal(s)
35
36
37
// Custom marshalers needed because embedded ml.ModelDatabricks has its own MarshalJSON
38
// that otherwise shadows the outer struct's fields (model_id gets dropped without this).
39
func (r *MlflowModelRemote) UnmarshalJSON(b []byte) error {
0 commit comments