func Validate(svc *parser.Service) error {
	for _, m := range svc.Methods {
		if err := validateMethod(svc, m); err != nil {
			return err
		}
	}
	return nil
}
func Validate(svc *parser.Service) error {
	for _, m := range svc.Methods {
		if err := validateMethod(svc, m); err != nil {
			return err
		}
	}
	return nil
}
func Validate ( svc * parser . Service ) error { for _ , m := range svc . Methods { if err := validateMethod ( svc , m ) ; err != nil { return err } } return nil }
// Validate validates that the given spec is supported by thrift-gen.
Validate validates that the given spec is supported by thrift - gen .