private static string GetConstraintText()

in src/TemplateRefGenerator/Generators/MarkdownGenerator.cs [782:796]


    private static string GetConstraintText(IntegerType intType)
    {
        var constraints = new List<string>();
        
        if (intType.MinValue is not null)
        {
            constraints.Add($"Min value = {intType.MinValue}");
        }
        if (intType.MaxValue is not null)
        {
            constraints.Add($"Max value = {intType.MaxValue}");
        }

        return constraints.Any() ? $" {Br}{Br}" + JoinWithBr("Constraints:", JoinWithBr(constraints)) : "";
    }