Skip to content

Rules for directive's arguments not executed if no args declared on directive #63

Closed
@Dodobibi

Description

@Dodobibi

If a directive with no argument declared and an arbitrary argument is passed, the rule check is not applied.

This is because know_args is an empty list which return false in if directive_node.arguments and known_args: at Line 63 on /src/graphql/validation/rules/known_argument_names.py

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