How to change in "Example value" of method decimal value from 0 to 0,00? I found this solution, but it doesn't help to replace value
I use Swashbuckle.AspNetCore v6.1.4
Also I tried this option, but it doesn't work:
public void Apply(OpenApiSchema schema, SchemaFilterContext context)
{
var fields = context.Type.GetFields();
if (fields.Length == 0)
return;
foreach (var field in fields)
{
if (field.FieldType == typeof(Decimal))
{
schema.Properties[field.Name] = new OpenApiSchema
{
MultipleOf = 0.0000001M
};
}
}
}