Skip to content

Commit

Permalink
Restrict indentation size in JsonWriterOptions theories. (#101525)
Browse files Browse the repository at this point in the history
Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
  • Loading branch information
github-actions[bot] and eiriktsarpalis authored Apr 25, 2024
1 parent 3c85db9 commit da4dd21
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 da4dd21

Please sign in to comment.