Created
July 4, 2018 14:41
-
-
Save groony/c8405ac3f9afb3691d57c7f02826c391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
outer_schema = ::Dry::Validation.Schema(::Dry::Validation::Schema::Params) do | |
required(:announcement).filled(:str?) | |
required(:title).filled(:str?) | |
end | |
schema(outer_schema: outer_schema) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment