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

Contracts in actions #1

Closed
wants to merge 6 commits into from
Closed

Contracts in actions #1

wants to merge 6 commits into from

Conversation

krzykamil
Copy link
Owner

@krzykamil krzykamil commented Jun 17, 2024

Allow to define contract blocks that behave the same as Dry::Validation contract, because they will essentially pass their contents to insides of that gem

There are many details left to do, but the main "pass the block to try validation" seems ok. I am also not sure about making contract available on request inside handle. It pararels the params, but params are direct wrapper upon the request params so it makes more sense. Contract is more of an abstract thing so attaching it to the request seems "meh" at my first glance

@krzykamil krzykamil changed the title [WIP] First basic version - prototype [WIP] Contracts in actions - First basic version - prototype Jun 17, 2024
@krzykamil krzykamil changed the title [WIP] Contracts in actions - First basic version - prototype [WIP] Contracts in actions Jun 18, 2024
@solnic
Copy link

solnic commented Jul 21, 2024

hey thanks for working on this! it's looking good and I'm wondering what's missing (if anything) and if you're planning to open a PR?

@krzykamil
Copy link
Owner Author

hey thanks for working on this! it's looking good and I'm wondering what's missing (if anything) and if you're planning to open a PR?

@solnic Hey, thanks for checking it out, I completely forgot to transfer the PR to target the main repo :) . I will do it today, after updating the description. Then its just getting a review and working on it if needed I suppose

@krzykamil krzykamil changed the title [WIP] Contracts in actions Contracts in actions Jul 22, 2024
@krzykamil krzykamil closed this Jul 22, 2024
@krzykamil
Copy link
Owner Author

moved to hanami#451

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

Successfully merging this pull request may close these issues.

2 participants