in openapi-diff/src/modeler/AutoRest.Swagger/Model/SwaggerObject.cs [275:292]
protected void CompareFormats(ComparisonContext<ServiceDefinition> context, T prior)
{
if (prior == null)
{
throw new ArgumentNullException("prior");
}
if (context == null)
{
throw new ArgumentNullException("context");
}
if (prior.Format == null && Format != null ||
prior.Format != null && Format == null ||
prior.Format != null && Format != null && !prior.Format.Equals(Format) && !isFormatChangeAllowed(context,prior))
{
context.LogBreakingChange(ComparisonMessages.TypeFormatChanged, Format, prior.Format);
}
}