private void ValidatePackage(IPackageDetails package) { package.ResetValidationContext(); _apiPackageRegistry.Validate(package); if (package.ValidationContext.GetErrorCount(ValidationTags.Api) > 0) { throw new ApiValidationException(package.ValidationContext.GetErrors(ValidationTags.Api).First().Message); } }
private void ValidatePackage(IPackageDetails package) { package.ResetValidationContext(); _apiPackageRegistry.Validate(package); }