Got some bad news, Swashbuckle.AspNetCore 7.1.0 has a breaking change, again.
What I can see, it is easily fixed by reverting the following method:
private Dictionary<string, OpenApiSchema> GetSchemaProperties(OperationFilterContext context, OpenApiMediaType mediaType,
PropertyInfo propertyInfo) {
// Group all exploded properties.
// IEnumerable<IGrouping<string, KeyValuePair<string, OpenApiSchema>>> allProperties = mediaType.Schema.Properties
// .GroupBy(pair => pair.Key.Split('.')[0]);
var allProperties = mediaType.Schema.AllOf
.SelectMany(x => x.Properties)
.GroupBy(pair => pair.Key.Split('.')[0]);
to
private Dictionary<string, OpenApiSchema> GetSchemaProperties(OperationFilterContext context, OpenApiMediaType mediaType,
PropertyInfo propertyInfo) {
// Group all exploded properties.
IEnumerable<IGrouping<string, KeyValuePair<string, OpenApiSchema>>> allProperties = mediaType.Schema.Properties
Got some bad news, Swashbuckle.AspNetCore 7.1.0 has a breaking change, again.
What I can see, it is easily fixed by reverting the following method:
to