Niels Lohmann
daa2e744ee
Fix to_bjdata() emitting the Draft-3-only 'B' marker in default Draft-2 mode
...
_ArrayType_ = "byte" mapped unconditionally to the BJData type marker
'B', regardless of the requested bjdata_version. 'B' is defined only by
BJData Draft 3; with the default version (draft2), this produced a
stream that is invalid for Draft 2 and, unlike every other
_ArrayType_, round-tripped back as a binary value instead of the
original annotated object.
Only accept "byte" / emit 'B' when bjdata_version selects Draft 3.
Under Draft 2, fall back to the same plain-object encoding used
elsewhere in this function for other invalid-annotation cases, so the
value round-trips correctly.
Fixes #5404 .
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2026-09-09 10:21:29 +02:00
..
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:50:39 +02:00
2026-07-31 18:04:30 +02:00
2026-07-08 16:40:58 +02:00
2026-07-09 20:18:28 +02:00
2026-07-09 06:44:51 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-09 10:21:29 +02:00
2026-09-09 09:52:23 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-08-19 20:19:47 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:50:39 +02:00
2026-09-09 09:50:39 +02:00
2026-09-05 09:43:07 +02:00
2026-01-01 20:00:39 +01:00
2026-07-09 20:38:39 +02:00
2026-01-01 20:00:39 +01:00
2026-07-08 20:25:13 +02:00
2026-09-09 09:54:12 +02:00
2026-01-01 20:00:39 +01:00
2026-08-03 08:35:53 +02:00
2026-01-01 20:00:39 +01:00
2026-08-05 16:01:23 +02:00
2026-05-22 14:14:11 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-07-02 06:35:35 +02:00
2026-07-02 15:59:36 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:52:58 +02:00
2026-09-09 09:52:58 +02:00
2026-01-01 20:00:39 +01:00
2026-07-09 20:38:39 +02:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:49:12 +02:00
2026-09-09 09:53:25 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-08-28 13:38:28 +01:00
2026-07-11 15:09:28 +02:00
2026-09-09 09:48:17 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-05-14 15:39:18 +02:00
2026-05-18 20:33:47 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:52:58 +02:00
2026-09-09 09:50:39 +02:00
2026-09-09 09:50:39 +02:00
2026-07-02 15:59:36 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-08-03 08:35:53 +02:00
2026-08-25 07:16:10 +01:00
2026-01-01 20:00:39 +01:00
2026-05-16 10:04:22 +02:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:50:39 +02:00
2026-09-09 09:50:39 +02:00
2026-09-09 09:50:39 +02:00
2026-09-09 09:50:39 +02:00
2026-09-09 09:50:39 +02:00
2026-07-12 09:16:06 +02:00
2026-01-01 20:00:39 +01:00
2026-08-05 13:43:36 +02:00
2026-01-01 20:00:39 +01:00