Skip to content

Bug: Fails for nest list of non_null #9

@kirega

Description

@kirega

Steps to reproduce

When a field has the following definitions, the library will through an error

field :test, :test do 
      arg(:ids, non_null(list_of(non_null(:id))), directives: [constraints: [format: "uuid"]])
end

Error

Invalid constraints for field/arg ids of type %Absinthe.Blueprint.TypeReference.NonNull{of_type: %Absinthe.Blueprint.TypeReference.List{of_type: %Absinthe.Blueprint.TypeReference.NonNull{of_type: :string, errors: []}, errors: []}, errors: []}: [:format]

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