# Custom predicates inside deep validation block

**URL:** <https://discourse.dry-rb.org/t/custom-predicates-inside-deep-validation-block/557>\
**Category:** dry-validation\
**Created:** [May 22, 2018, 12:07pm UTC](https://discourse.dry-rb.org/t/custom-predicates-inside-deep-validation-block/557 "2018-05-22T12:07:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigforcegun](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/bigforcegun/32/262_2.png) [@bigforcegun](https://discourse.dry-rb.org/u/bigforcegun)\
**Post date:** [May 22, 2018, 12:07pm UTC](https://discourse.dry-rb.org/t/custom-predicates-inside-deep-validation-block/557/1 "2018-05-22T12:07:21Z")

</div>

I have some custom predicates

I connect them in `configure` block

Then i try write this

```ruby
optional(:items).value(:array?, min_size?: 1) do
          each do
            schema do
              required(:name).filled(:str?)
              required(:price).filled(:amount_format?, :amount_value?, :amount_currency?)
              required(:tax_type).filled(:str?, included_in?: Types::TaxTypes.values)
              optional(:quantity).filled(:int?)
            end
          end
        end

```

I have error -

```auto
`raise_unknown_predicate_error': +amount_format?+ is not a valid predicate name (ArgumentError)

```

I think, because i connect my predicates in `configure` block - when validation parse this rule - it don’t know about custom predicates

Question - how i can use custom predicates in deep validation block?
