private bool CheckError(IEdmTypeReference edmTypeReference) { var edmType = edmTypeReference.Definition; if (!edmType.Errors().Any()) { return(false); } var error = edmType.Errors().Select(x => $"Location: {x.ErrorLocation.ToString()}, {x.ErrorMessage }").FirstOrDefault(); _logger.Trace($"edmTypeReference Error: {error.Dump()}"); _logger.Warn($"Invalid Type Reference: {edmType}"); SchemaErrors.Add($"Invalid Type Reference: {edmType}"); return(true); }
private void ValidationCallback(object sender, ValidationEventArgs args) { SchemaErrors.Add(new ErrorInfo(sender, args)); }