func (m PortMap) Validate(formats strfmt.Registry) error {
	var res []error
	if err := validate.Required("", "body", PortMap(m)); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this port map
package types
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/validate"
)
type PortMap map[string][]PortBinding