Merge "fix: Correct .data path layering edge case"

This commit is contained in:
Zuul 2018-10-29 14:31:11 +00:00 committed by Gerrit Code Review
commit 475655ac5a
1 changed files with 5 additions and 0 deletions

View File

@ -547,8 +547,13 @@ class DocumentLayering(object):
child_data = {}
action_path = action['path']
if action_path.startswith('.data'):
action_path = action_path[5:]
elif action_path.startswith('$.data'):
action_path = action_path[6:]
if not (action_path.startswith('.') or action_path.startswith('$.')):
action_path = '.' + action_path
if method == self._DELETE_ACTION:
if action_path == '.':