OData / odata.net

ODataLib: Open Data Protocol - .NET Libraries and Frameworks
https://docs.microsoft.com/odata
Other
675 stars 348 forks source link

[Duplicate] Remove Hardcoded 'Fred' from EdmModel_Validator_Semantic_TypeMismatchRelationshipConstraint Error Message #2992

Closed WanjohiSammy closed 4 weeks ago

WanjohiSammy commented 4 weeks ago

Issues

Description

To address the issue of the hardcoded 'Fred' argument in the EdmModel_Validator_Semantic_TypeMismatchRelationshipConstraint error message, this PR modify the error message template by removing the fourth parameter. This will prevent the display of the hardcoded value and ensure that the error message only contains relevant dynamic content.

Original error message template with 'Fred': _

The types of all properties in the dependent role of a referential constraint must be the same as the corresponding property types in the principal role. The type of property '{0}' on entity '{1}' does not match the type of property '{2}' on entity '{3}' in the referential constraint '{4}'.

_

Updated error message template without the hardcoded 'Fred':

The types of all properties in the dependent role of a referential constraint must be the same as the corresponding property types in the principal role. The type of property '{0}' on entity '{1}' does not match the type of property '{2}' on entity '{3}' in the referential constraint.

Main Changes:

Checklist (Uncheck if it is not completed)

WanjohiSammy commented 4 weeks ago

@microsoft-github-policy-service agree company="Microsoft"

WanjohiSammy commented 4 weeks ago

Closing this as it is a duplicate of https://github.com/OData/odata.net/pull/2993