Skip to content

Shortcut invocation is not "equal" to full invocation method #8

@ogonkov

Description

@ogonkov

Docs says:

The following calls are equivalent:
sdk.root..(data, options);
sdk..(data, options);

But actually invocation sdk.<service>.<action>.foobar() will work, that would be unexpected.

Expected behavior is that sdk.<service>.<action>.foobar() will not generate request to api with url <action url>/foobar. Ideally it should throw foobar is not a function.

This bug was found by evaluating sdk action in jest tests. There is a check for assymetricMatch property, and for sdk action this is true.

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