Skip to content

docs: add example of using middleware with choices#1813

Merged
bcoe merged 2 commits intomasterfrom
fix-756
Nov 22, 2020
Merged

docs: add example of using middleware with choices#1813
bcoe merged 2 commits intomasterfrom
fix-756

Conversation

@bcoe
Copy link
Copy Markdown
Member

@bcoe bcoe commented Nov 22, 2020

Middleware can be applied either before or after validation. When combined with a default command this allows you to perform a transformation after choices has already been enforced (as requested in #756)

Fixes #756

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.

choices and coerce sequence

1 participant