Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'The path does not exist on the given tree' for delete to path deeper than given tree. #18

Open
sanoel opened this issue Mar 31, 2020 · 0 comments

Comments

@sanoel
Copy link
Contributor

sanoel commented Mar 31, 2020

I believe it ought to accept the tree and use the content type of the deepest known resource.
E.g.,
connection.delete({
path: '/bookmarks/a/b/c', tree: { bookmarks: { _type: 'application/vnd.oada.bookmarks.1_json' a: { _type: 'application/json', b: { } } } })
Here, the path does not exist, but it should be acceptable. A content type of application/json should be selected. Originally, the tree was supplied to recursively delete links and resources from the given path and further down following the tree. However, the tree is intended to automate content type selection (and make it "safer" for puts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant