@@ -17,7 +17,7 @@ public class JsonPatchDocument : IApiParameter
1717 /// <summary>
1818 /// 操作列表
1919 /// </summary>
20- private readonly List < object > oprations = new ( ) ;
20+ private readonly List < object > operations = new ( ) ;
2121
2222 /// <summary>
2323 /// Add操作
@@ -31,7 +31,7 @@ public void Add(string path, object? value)
3131 {
3232 throw new ArgumentNullException ( nameof ( path ) ) ;
3333 }
34- this . oprations . Add ( new { op = "add" , path , value } ) ;
34+ this . operations . Add ( new { op = "add" , path , value } ) ;
3535 }
3636
3737 /// <summary>
@@ -45,7 +45,7 @@ public void Remove(string path)
4545 {
4646 throw new ArgumentNullException ( nameof ( path ) ) ;
4747 }
48- this . oprations . Add ( new { op = "remove" , path } ) ;
48+ this . operations . Add ( new { op = "remove" , path } ) ;
4949 }
5050
5151 /// <summary>
@@ -60,7 +60,7 @@ public void Replace(string path, object? value)
6060 {
6161 throw new ArgumentNullException ( nameof ( path ) ) ;
6262 }
63- this . oprations . Add ( new { op = "replace" , path , value } ) ;
63+ this . operations . Add ( new { op = "replace" , path , value } ) ;
6464 }
6565
6666 /// <summary>
@@ -76,7 +76,7 @@ public Task OnRequestAsync(ApiParameterContext context)
7676 }
7777
7878 var options = context . HttpContext . HttpApiOptions . JsonSerializeOptions ;
79- context . HttpContext . RequestMessage . Content = new JsonPatchContent ( this . oprations , options ) ;
79+ context . HttpContext . RequestMessage . Content = new JsonPatchContent ( this . operations , options ) ;
8080
8181 return Task . CompletedTask ;
8282 }
@@ -95,7 +95,7 @@ private class DebugView
9595 /// 查看的内容
9696 /// </summary>
9797 [ DebuggerBrowsable ( DebuggerBrowsableState . RootHidden ) ]
98- public List < object > Oprations => this . target . oprations ;
98+ public List < object > Oprations => this . target . operations ;
9999
100100 /// <summary>
101101 /// 调试视图
0 commit comments