code: func (self *EnumElementDef) Validate() error {
  	if self.Symbol == "" {
  		return fmt.Errorf("EnumElementDef.symbol is missing but is a required field")
  	} else {
  		val := Validate(RdlSchema(), "Identifier", self.Symbol)
  		if !val.Valid {
  			return fmt.Errorf("EnumElementDef.symbol does not contain a valid Identifier (%v)", val.Error)
  		}
  	}
  	return nil
  }
docs: //
  // Validate - checks for missing required fields, etc
  //