types/pact_message_request.go
func (m *PactMessageRequest) Validate() error {
	m.Args = []string{}

	body, err := json.Marshal(m.Message)
	if err != nil {
		return err
	}

	m.Args = append(m.Args, []string{
		"update",
		string(body),
		"--consumer",
		m.Consumer,
		"--provider",
		m.Provider,
		"--pact-dir",
		m.PactDir,
		"--pact-specification-version",
		"3",
	}...)

	return nil
}
func (m *PactMessageRequest) Validate() error {
	m.Args = []string{}

	body, err := json.Marshal(m.Message)
	if err != nil {
		return err
	}

	m.Args = append(m.Args, []string{
		"update",
		string(body),
		"--consumer",
		m.Consumer,
		"--provider",
		m.Provider,
		"--pact-dir",
		m.PactDir,
		"--pact-specification-version",
		"3",
	}...)

	return nil
}
// Validate checks all things are well and constructs
// the CLI args to the message service