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 Ruihan-Yin committed May 30, 2024
1 parent 55627a2 commit c2b86ec
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 c2b86ec

Please sign in to comment.