This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +5
-6
lines changed
tests/ServiceStack.Text.Tests Expand file tree Collapse file tree 5 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class CamelCaseTests : TestBase
1212 [ SetUp ]
1313 public void SetUp ( )
1414 {
15- JsConfig . EmitCamelCaseNames = true ;
15+ JsConfig . TextCase = TextCase . CamelCase ;
1616 }
1717
1818 [ TearDown ]
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public void Can_parse_custom_AuthResponse()
115115 dto . PrintDump ( ) ;
116116
117117 using ( JsConfig . With ( new Config {
118- EmitLowercaseUnderscoreNames = true ,
118+ TextCase = TextCase . SnakeCase ,
119119 PropertyConvention = PropertyConvention . Lenient
120120 } ) )
121121 {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public static StringEnumerable ParseJsv(string value)
2828 {
2929 return new StringEnumerable
3030 {
31- Items = value . To < List < string > > ( )
31+ Items = value . ConvertTo < List < string > > ( )
3232 } ;
3333 }
3434
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ public class Person
118118 [ Test ]
119119 public void Test_enum_overloads ( )
120120 {
121- JsConfig < Person > . EmitCamelCaseNames = true ;
121+ JsConfig < Person > . TextCase = TextCase . CamelCase ;
122122 JsConfig . IncludeNullValues = true ;
123123 JsConfig < PersonStatus > . SerializeFn = text => text . ToString ( ) . ToCamelCase ( ) ;
124124
Original file line number Diff line number Diff line change @@ -680,8 +680,7 @@ public ConfigScope()
680680 jsConfigScope = JsConfig . With ( new Config {
681681 DateHandler = DateHandler . UnixTime ,
682682 PropertyConvention = PropertyConvention . Lenient ,
683- EmitLowercaseUnderscoreNames = true ,
684- EmitCamelCaseNames = false
683+ TextCase = TextCase . SnakeCase ,
685684 } ) ;
686685
687686 holdQsStrategy = QueryStringSerializer . ComplexTypeStrategy ;
You can’t perform that action at this time.
0 commit comments