Skip to content
New issue

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

Support "constant" keyword in Contract::Validate #187

Open
swinner2 opened this issue Jul 20, 2017 · 2 comments
Open

Support "constant" keyword in Contract::Validate #187

swinner2 opened this issue Jul 20, 2017 · 2 comments

Comments

@swinner2
Copy link

because Contract::Build is unnecessary when validating params against a dry-validation schema it would be nice to specify the schema constant in the Validate macro

step Contract::Validate( constant: CreateSchema )

@apotonick
Copy link
Member

That's a great idea! ❤️

@apotonick
Copy link
Member

😬

emaglio added a commit to emaglio/trailblazer-macro-contract that referenced this issue Apr 8, 2018
…h Dry Schema

Feature suggested by @swinner2 here: trailblazer/trailblazer#187
Validation using the Dry schema is triggered when the schema key is not nil.
No checking on the object passed so if it is an actual Dry schema so it actually works with any
callable object that returns an array of messages
emaglio added a commit to emaglio/trailblazer-macro-contract that referenced this issue Apr 8, 2018
Feature suggested by @swinner2 here: trailblazer/trailblazer#187

Validation using the Dry schema is triggered when the key `schema` is not nil.
emaglio added a commit to emaglio/trailblazer-macro-contract that referenced this issue Apr 9, 2018
Feature suggested by @swinner2 here: trailblazer/trailblazer#187

Validation using the Dry schema is triggered when the key `schema` is not nil.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants