func (sdp StructuredDataParam) Validate() error {
	if sdp.Name == "" {
		return fmt.Errorf("empty Name")
	}
	if err := sdp.Name.Validate(); err != nil {
		return fmt.Errorf("bad Name %q: %v", sdp.Name, err)
	}

	if err := sdp.Value.Validate(); err != nil {
		return fmt.Errorf("bad Value for %q (%s): %v", sdp.Name, sdp.Value, err)
	}

	return nil
}
// Validated ensures that the item is correct.
Validated ensures that the item is correct.
// Validated ensures that the item is correct .
func (sdp StructuredDataParam) Validate() error {
	if sdp.Name == "" {
		return fmt.Errorf("empty Name")
	}
	if err := sdp.Name.Validate(); err != nil {
		return fmt.Errorf("bad Name %q: %v", sdp.Name, err)
	}
	if err := sdp.Value.Validate(); err != nil {
		return fmt.Errorf("bad Value for %q (%s): %v", sdp.Name, sdp.Value, err)
	}
	return nil
}
func ( sdp StructuredDataParam ) Validate ( ) error { if sdp . Name == " " { return fmt . Errorf ( " " ) } if err := sdp . Name . Validate ( ) ; err != nil { return fmt . Errorf ( " " , sdp . Name , err ) } if err := sdp . Value . Validate ( ) ; err != nil { return fmt . Errorf ( " " , sdp . Name , sdp . Value , err ) } return nil }
Validated ensures that the item is correct.
Validated ensures that the item is correct .