fix: marshal yaml with inline tag

This commit is contained in:
debugtalk
2022-09-02 08:54:09 +08:00
parent c4d23f3bdd
commit f746f816b7
2 changed files with 52 additions and 3 deletions
+3 -3
View File
@@ -23,9 +23,9 @@ type WDADevice struct {
}
type IOSStep struct {
WDADevice
MobileAction
Actions []MobileAction `json:"actions,omitempty" yaml:"actions,omitempty"`
WDADevice `yaml:",inline"` // inline refers to https://pkg.go.dev/gopkg.in/yaml.v3#Marshal
MobileAction `yaml:",inline"`
Actions []MobileAction `json:"actions,omitempty" yaml:"actions,omitempty"`
}
// StepIOS implements IStep interface.