@@ -35,7 +35,11 @@ public enum Enumeration
3535 /// <summary>
3636 /// text/plain content type
3737 /// </summary>
38- TextPlain
38+ TextPlain ,
39+ /// <summary>
40+ /// text/json content type
41+ /// </summary>
42+ TextJson
3943 }
4044
4145 private readonly string _value ;
@@ -64,6 +68,10 @@ public enum Enumeration
6468 /// text/plain content type
6569 /// </summary>
6670 public static readonly ContentType TextPlain = new ContentType ( "text/plain" ) ;
71+ /// <summary>
72+ /// text/json content type
73+ /// </summary>
74+ public static readonly ContentType TextJson = new ContentType ( "text/json" ) ;
6775
6876 /// <summary>
6977 /// Content type constructor
@@ -103,6 +111,7 @@ public static ContentType From(string value)
103111 "application/octet-stream" => OctetStream ,
104112 "multipart/form-data" => MultipartFormData ,
105113 "text/plain" => TextPlain ,
114+ "text/json" => TextJson ,
106115 _ => throw new QAToolKitCoreException ( $ "{ value } is invalid content type. Check the documentation which types are supported.") ,
107116 } ;
108117 }
@@ -122,6 +131,7 @@ public static ContentType From(Enumeration value)
122131 Enumeration . OctetStream => OctetStream ,
123132 Enumeration . MultipartFormData => MultipartFormData ,
124133 Enumeration . TextPlain => TextPlain ,
134+ Enumeration . TextJson => TextJson ,
125135 _ => throw new QAToolKitCoreException ( $ "{ value } is invalid content type. Check the documentation which types are supported.") ,
126136 } ;
127137 }
@@ -146,6 +156,7 @@ public static Enumeration ToEnum(ContentType value)
146156 "application/octet-stream" => Enumeration . OctetStream ,
147157 "multipart/form-data" => Enumeration . MultipartFormData ,
148158 "text/plain" => Enumeration . TextPlain ,
159+ "text/json" => Enumeration . TextJson ,
149160 _ => throw new QAToolKitCoreException ( $ "{ value } is invalid content type. Check the documentation which types are supported.") ,
150161 } ;
151162 }
@@ -170,6 +181,7 @@ public static Enumeration ToEnum(string value)
170181 "application/octet-stream" => Enumeration . OctetStream ,
171182 "multipart/form-data" => Enumeration . MultipartFormData ,
172183 "text/plain" => Enumeration . TextPlain ,
184+ "text/json" => Enumeration . TextJson ,
173185 _ => throw new QAToolKitCoreException ( $ "{ value } is invalid content type. Check the documentation which types are supported.") ,
174186 } ;
175187 }
0 commit comments