// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; namespace Microsoft.AspNetCore.Mvc.DataAnnotations { /// /// Interface so that adapters provide their relevent values to error messages. /// public interface IAttributeAdapter : IClientModelValidator { /// /// Gets the error message. /// /// The context to use in message creation. /// The localized error message. string GetErrorMessage(ModelValidationContextBase validationContext); } }