We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ad46bdb + ccfeab1 commit d12efafCopy full SHA for d12efaf
1 file changed
src/Microsoft.OpenApi/Models/OpenApiPathItem.cs
@@ -41,7 +41,7 @@ public class OpenApiPathItem : IOpenApiExtensible, IOpenApiPathItem
41
/// <param name="operation">The operation item.</param>
42
public void AddOperation(HttpMethod operationType, OpenApiOperation operation)
43
{
44
- Operations ??= new Dictionary<HttpMethod, OpenApiOperation>();
+ Operations ??= [];
45
Operations[operationType] = operation;
46
}
47
0 commit comments