From 51a58efc094795632d8979ad4575d4bec5e4df93 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 26 Jul 2019 11:05:52 +0200 Subject: [PATCH] fullpath support in dict --- tiramisu_json_api/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiramisu_json_api/api.py b/tiramisu_json_api/api.py index 0ee8753..2f5f713 100644 --- a/tiramisu_json_api/api.py +++ b/tiramisu_json_api/api.py @@ -182,7 +182,7 @@ class _Value: if self.config.is_hidden(key, None) is False: if flatten: nkey = key.split('.')[-1] - elif len_parent is not None: + elif not fullpath and len_parent is not None: nkey = key[len_parent:] else: nkey = key