in openapi-diff/src/modeler/AutoRest.Swagger/Model/SwaggerObject.cs [262:273]
private Boolean isFormatChangeAllowed(ComparisonContext<ServiceDefinition> context, T prior) {
if (this.Type.Equals(DataType.Integer) && !context.Strict && prior.Format != null && this.Format != null) {
if (context.Direction == DataDirection.Request && prior.Format.Equals("int32") && this.Format.Equals("int64")) {
return true;
}
if (context.Direction == DataDirection.Response && prior.Format.Equals("int64") && this.Format.Equals("int32"))
{
return true;
}
}
return false;
}