dsl/interaction.go
func (i *Interaction) WithRequest(request Request) *Interaction {
	i.Request = request

	// Check if someone tried to add an object as a string representation
	// as per original allowed implementation, e.g.
	// { "foo": "bar", "baz": like("bat") }
	if isJSONFormattedObject(request.Body) {
		log.Println("[WARN] request body appears to be a JSON formatted object, " +
			"no structural matching will occur. Support for structured strings has been" +
			"deprecated as of 0.13.0")
	}

	return i
}
func (i *Interaction) WithRequest(request Request) *Interaction {
	i.Request = request

	// Check if someone tried to add an object as a string representation
	// as per original allowed implementation, e.g.
	// { "foo": "bar", "baz": like("bat") }
	if isJSONFormattedObject(request.Body) {
		log.Println("[WARN] request body appears to be a JSON formatted object, " +
			"no structural matching will occur. Support for structured strings has been" +
			"deprecated as of 0.13.0")
	}

	return i
}
// WithRequest specifies the details of the HTTP request that will be used to
// confirm that the Provider provides an API listening on the given interface.
// Mandatory.