Skip to content

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

Open
@sanoel

Description

@sanoel

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions