Skip to content

Commit 4348d6a

Browse files
committed
[#195] Add PropertyTargets.Method to JsonNameAttribute
1 parent 5cf10d3 commit 4348d6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FSharp.SystemTextJson/JsonName.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type JsonName =
1818
| Bool true -> "true"
1919
| Bool false -> "false"
2020

21-
[<AttributeUsage(AttributeTargets.Property, AllowMultiple = true)>]
21+
[<AttributeUsage(AttributeTargets.Property ||| AttributeTargets.Method, AllowMultiple = true)>]
2222
type JsonNameAttribute(name: JsonName, otherNames: JsonName[]) =
2323
inherit Attribute()
2424

0 commit comments

Comments
 (0)