Skip to content

Commit

Permalink
Restrict indentation size in JsonWriterOptions theories. (dotnet#101498)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis authored and michaelgsharp committed May 8, 2024
1 parent a9d8b59 commit bec07d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7637,7 +7637,7 @@ private static IEnumerable<JsonWriterOptions> JsonOptions()
return from indented in new[] { true, false }
from skipValidation in new[] { true, false }
from indentCharacter in indented ? new char?[] { null, ' ', '\t' } : []
from indentSize in indented ? new int?[] { null, 0, 1, 2, 127 } : []
from indentSize in indented ? new int?[] { null, 0, 1, 2, 3 } : []
from newLine in indented ? new string?[] { null, "\n", "\r\n" } : []
select CreateOptions(indented, indentCharacter, indentSize, skipValidation, newLine);

Expand Down

0 comments on commit bec07d1

Please sign in to comment.