From 4124c242b5aa1bd03fd7c0294e575a04689e4f71 Mon Sep 17 00:00:00 2001 From: Brandon Autrey Date: Tue, 10 May 2022 12:29:39 +0300 Subject: [PATCH] Add hints extension to docs The extension got moved to dry-schema but it is still needed in dry-validation to enable hints for contracts. --- docsite/source/extensions.html.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docsite/source/extensions.html.md b/docsite/source/extensions.html.md index 33b9e26..1fdd7d8 100644 --- a/docsite/source/extensions.html.md +++ b/docsite/source/extensions.html.md @@ -59,3 +59,15 @@ end AgeContract.new.(age: 17).errors.first.text # => 'must be greater than or equal to 18' ``` + +### Hints + +The hints extension is implemented in [dry-schema](https://dry-rb.org/gems/dry-schema/main/extensions/hints/). This extension enables hints in Contracts. + +To enable the extension: + +```ruby +require 'dry/validation' + +Dry::Validation.load_extensions(:hints) +``` \ No newline at end of file