We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
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]
ids
%Absinthe.Blueprint.TypeReference.NonNull{of_type: %Absinthe.Blueprint.TypeReference.List{of_type: %Absinthe.Blueprint.TypeReference.NonNull{of_type: :string, errors: []}, errors: []}, errors: []}
The text was updated successfully, but these errors were encountered:
Thank you for reporting this.
Constraints for elements of a list are not yet implemented:
absinthe_constraints/lib/absinthe_constraints/phase.ex
Line 62 in c56cddf
Currently the only constraints the library supports for lists are about the list itself and not its items (min_length and max_length).
We would like to implement this eventually, and PRs are always welcome.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
When a field has the following definitions, the library will through an error
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]The text was updated successfully, but these errors were encountered: