Skip to content

Commit

Permalink
Restrict indentation size in JsonWriterOptions theories.
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis authored and github-actions committed Apr 25, 2024
1 parent a2bd583 commit 2879f69
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 2879f69

Please sign in to comment.