Skip to content

Commit

Permalink
Add pattern argument
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Feb 28, 2024
1 parent c547fc4 commit c6d5850
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/graphql/constraint/directive/constraint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Constraint < GraphQL::Schema::Directive
description "validate GraphQL fields"
argument :max_length, Int, required: false, description: "validate max length for String"
argument :min_length, Int, required: false, description: "validate min length for String"
argument :pattern, String, required: false, description: "validate pattern for String"
argument :max, Int, required: false, description: "validate max length for Int"
argument :min, Int, required: false, description: "validate min length for Int"
locations INPUT_FIELD_DEFINITION
Expand Down

0 comments on commit c6d5850

Please sign in to comment.