Commit graph

56 commits

Author SHA1 Message Date
Bond-009
a0e047d560 Change converter log level (#4916)
Change converter log level

(cherry picked from commit 9265dd68a4)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2021-01-23 15:37:25 -05:00
Joshua M. Boniface
4a2b143028 Merge pull request #4884 from crobibero/json-nullable-guid-converter
Add JsonConverter for Nullable Guids

(cherry picked from commit 0de45d8724)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-31 18:50:02 -05:00
Joshua M. Boniface
1ad8e54035 Merge pull request #4709 from BaronGreenback/PluginDowngrade
(cherry picked from commit 406ae3e43a)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-31 18:49:53 -05:00
Bond-009
71188ad27a Merge pull request #4855 from crobibero/cache-json-serializer
Initialize JsonSerializerOptions statically

(cherry picked from commit f42208673f)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-30 18:55:51 -05:00
Claus Vium
dbc9256945 Merge pull request #4842 from crobibero/date-time-formatter
Add JsonDateTimeConverter

(cherry picked from commit c8a89b0fe3)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-30 18:55:51 -05:00
Bond-009
ddedb2d7f1 Merge pull request #4749 from crobibero/guid-standard
(cherry picked from commit 933e7fa159)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-13 20:34:32 -05:00
Anthony Lavado
126753a1fe Merge pull request #4735 from crobibero/json-recursion
Fix JsonConverter recursion

(cherry picked from commit 94d805d03d)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-13 20:34:32 -05:00
Claus Vium
aae90a8480 Merge pull request #4730 from crobibero/base-item-dto-guid-nullable
Don't serialize empty GUID to null

(cherry picked from commit b6ecaccf92)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-13 20:34:32 -05:00
Claus Vium
2e5333c1d4 Merge pull request #4715 from crobibero/hdhr-json-bool
Add number to bool json converter

(cherry picked from commit 0aad17554c)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
2020-12-13 20:34:32 -05:00
Claus Vium
65087a382e
Merge pull request #4580 from crobibero/efcore-datetime
Specify default DateTimeKind from EFCore
2020-12-01 23:48:11 +01:00
hawken
f9f0df88d5 allow JsonGuidConverter to read null 2020-11-28 09:41:06 +01:00
crobibero
6c0188c42b Fix efcore not returning a UTC DateTime 2020-11-25 07:44:11 -07:00
Bill Thornton
42e90893cd
Merge pull request #4517 from BaronGreenback/pluginMessageFix
[Fix] Fixed Plugin versioning in browser notifications
2020-11-24 20:35:40 -05:00
crobibero
c4925ad70b Serialize Guid.Empty to null 2020-11-23 16:07:15 -07:00
Joshua M. Boniface
7457c4a95d
Merge pull request #4499 from crobibero/more-param
Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids
2020-11-20 12:34:18 -05:00
crobibero
f557a730bb Write DateTimes in ISO8601 format for backwards compatibility. 2020-11-19 17:33:51 -07:00
Greenback
c4d8926426 Fixed notification 2020-11-19 17:55:31 +00:00
crobibero
5b62f70bc0 Update exception handle comment 2020-11-17 09:57:08 -07:00
crobibero
3cc0dd7e12 Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids usage. 2020-11-16 20:29:46 -07:00
Bond_009
bc7359f87d
Use string.Split(char) where possible instead of string.Split(char[]) 2020-11-14 20:27:48 +01:00
crobibero
0c23b8cadf Don't throw exception when converting values using binder or JsonConverter 2020-11-12 08:06:25 -07:00
crobibero
42c2ab97e7 Support IReadOnlyList for JsonCommaDelimitedArrayConverter 2020-10-29 11:32:02 -06:00
crobibero
b2662894cf Add whitespace handling and tests 2020-10-16 09:37:35 -06:00
crobibero
7565ae22cb Add tests and switch to factory 2020-10-11 21:09:15 -06:00
crobibero
37f3852699 Add comma delimited string to array json converter 2020-10-11 17:45:45 -06:00
crobibero
ac790cd77b Properly handle null structs in json 2020-09-27 09:45:11 -06:00
crobibero
1d3303fa0a Move json profiles to constant strings. 2020-09-03 12:15:24 -06:00
crobibero
9ddf550b43 Simplify json converters 2020-09-01 09:42:59 -06:00
crobibero
471e760057 remove unused declaration 2020-09-01 09:20:32 -06:00
crobibero
eb400f7292 Fallback to base jsonconverter 2020-09-01 09:19:22 -06:00
crobibero
1f2d73af8e Only handle empty string or null case 2020-09-01 08:52:50 -06:00
crobibero
9b2359a453 readd nullable number converters 2020-09-01 08:12:36 -06:00
crobibero
8b96881aa1 Clean up json Converters 2020-08-26 08:22:48 -06:00
crobibero
5f64ab02a0 bump System.Text.Json 2020-08-25 07:33:58 -06:00
crobibero
340f83c3f5 Ignore null json values 2020-08-23 07:48:12 -06:00
crobibero
d951554779 fix copy-pasta 2020-08-21 14:37:51 -06:00
crobibero
384a62dc08 Add nullable int32, int64 json converters 2020-08-21 10:23:47 -06:00
crobibero
64ace58ef5 fix docs 2020-08-14 08:34:32 -06:00
crobibero
64658a0bd0 Return int64 in json as number 2020-08-14 08:23:23 -06:00
David
4ea412f2ab Fix remote images 2020-08-05 21:57:01 +02:00
David
c6a0306a34 Move field to the controller 2020-07-14 20:20:24 +02:00
David
9f567e6471 Don't recreate JsonSerializerOptions every time 2020-07-14 12:39:58 +02:00
David
ee03b919f9 Fix parsing 2020-07-12 20:11:59 +02:00
Patrick Barron
fe02c6e863
Merge pull request #2929 from crobibero/api-scheduled-tasks
Scheduled Tasks to Jellyfin.Api
2020-06-25 23:46:03 +00:00
David
6651cb8d24 Add JsonInto32Converter
Add additional swagger type mapping
2020-06-19 12:24:39 +02:00
crobibero
39376bace3 Merge remote-tracking branch 'upstream/api-migration' into api-scheduled-tasks 2020-06-13 15:06:07 -06:00
crobibero
ec3e15db57 Fix merge and build 2020-06-13 13:11:41 -06:00
crobibero
6c53e36ccf Fix Api Routing 2020-06-04 15:17:05 -06:00
crobibero
a787efc660 Merge remote-tracking branch 'upstream/api-migration' into api-scheduled-tasks 2020-06-04 15:16:04 -06:00
crobibero
8b59934ccb remove extra Clear call 2020-06-03 09:12:12 -06:00