mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-21 04:22:30 +08:00
fix: marshal yaml with inline tag
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user