Niels Lohmann
c9477ccf91
Throw when JSON Patch remove's target path resolves through a primitive or null parent ( #5496 )
...
RFC 6902 (section 4.2) requires the target location of a "remove"
operation to exist. operation_remove handled parent.is_object() and
parent.is_array(), but had no final else branch: when the resolved
parent was a primitive value or null, neither branch matched and the
operation silently did nothing instead of failing.
Add the missing else branch, throwing out_of_range.413 with wording
that matches the existing out_of_range.411 thrown by the analogous
"add" case (operation_add) for the same kind of invalid parent.
Fixes #5396 .
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2026-09-09 09:49:12 +02:00
..
2022-08-05 19:51:39 +02:00
2026-07-12 09:16:06 +02:00
2022-05-01 09:41:50 +02:00
2026-07-04 11:13:25 +02:00
2026-06-29 22:15:18 +02:00
2025-04-05 18:54:35 +02:00
2026-07-10 16:01:08 +02:00
2022-05-01 09:41:50 +02:00
2026-07-30 23:38:13 +02:00
2025-04-05 18:54:35 +02:00
2026-06-29 22:15:18 +02:00
2022-05-01 09:41:50 +02:00
2022-05-17 13:08:56 +02:00
2022-05-01 09:41:50 +02:00
2025-04-05 18:54:35 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2022-05-17 13:08:56 +02:00
2026-06-29 22:15:18 +02:00
2026-07-26 08:29:31 +00:00
2026-07-04 11:13:25 +02:00
2026-07-04 11:13:25 +02:00
2025-05-04 10:28:24 +02:00
2025-01-17 06:53:35 +01:00
2022-05-01 09:41:50 +02:00
2026-07-04 11:13:25 +02:00
2026-06-30 18:09:06 +02:00
2024-12-09 23:02:30 +01:00
2026-06-29 22:15:18 +02:00
2025-04-05 18:54:35 +02:00
2026-07-09 17:24:19 +02:00
2026-07-12 09:16:06 +02:00
2026-07-12 09:16:06 +02:00
2026-07-12 09:16:06 +02:00
2026-07-12 09:16:06 +02:00
2026-07-12 09:16:06 +02:00
2025-04-05 18:54:35 +02:00
2022-05-17 13:08:56 +02:00
2026-06-29 22:15:18 +02:00
2024-12-09 23:02:30 +01:00
2024-12-06 18:38:25 +01:00
2026-07-04 11:13:25 +02:00
2026-07-09 17:24:19 +02:00
2026-07-02 15:59:36 +02:00
2022-05-17 13:08:56 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2022-05-01 09:41:50 +02:00
2025-04-05 18:54:35 +02:00
2022-05-01 09:41:50 +02:00
2026-06-29 22:15:18 +02:00
2022-05-01 09:41:50 +02:00
2025-04-05 18:54:35 +02:00
2025-04-05 18:54:35 +02:00
2025-04-05 18:54:35 +02:00
2026-06-29 22:15:18 +02:00
2022-05-01 09:41:50 +02:00
2025-04-05 18:54:35 +02:00
2022-05-01 09:41:50 +02:00
2025-04-05 18:54:35 +02:00
2026-07-10 16:01:08 +02:00
2025-05-04 10:28:24 +02:00
2023-11-01 21:23:55 +01:00
2022-07-29 14:28:37 +02:00
2022-05-01 09:41:50 +02:00
2026-06-29 22:15:18 +02:00
2025-04-05 18:54:35 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2022-08-05 19:51:39 +02:00
2026-07-09 20:39:59 +02:00
2026-07-04 11:13:25 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2024-07-07 10:22:17 +02:00
2025-04-05 18:54:35 +02:00
2024-07-07 10:22:17 +02:00
2026-07-09 20:57:41 +02:00
2022-08-05 19:51:39 +02:00
2022-05-01 09:41:50 +02:00
2026-07-04 11:13:25 +02:00
2026-07-10 16:01:08 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-07-12 09:16:06 +02:00
2026-08-04 08:45:02 +02:00
2026-09-09 09:49:12 +02:00
2026-09-09 09:49:12 +02:00
2026-07-04 11:13:25 +02:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-07-12 09:16:06 +02:00
2022-05-01 09:41:50 +02:00
2025-01-17 06:53:35 +01:00
2026-07-09 17:24:19 +02:00
2022-07-29 14:28:37 +02:00
2026-06-29 22:15:18 +02:00
2026-07-10 16:01:08 +02:00
2026-06-29 22:15:18 +02:00
2026-08-25 07:16:10 +01:00
2026-08-28 13:27:18 +01:00
2026-06-29 22:15:18 +02:00
2026-06-29 22:15:18 +02:00
2026-07-04 11:13:25 +02:00
2026-08-25 07:16:10 +01:00
2026-06-29 22:15:18 +02:00
2026-07-09 17:24:19 +02:00
2022-05-01 09:41:50 +02:00
2026-06-29 22:15:18 +02:00
2026-07-04 11:13:25 +02:00
2022-08-05 19:51:39 +02:00
2026-07-10 16:01:08 +02:00