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

Add an attribute to customise default decode failure handling for individual inputs/outputs #2631

Merged
merged 7 commits into from
Dec 15, 2022

Conversation

adamw
Copy link
Member

@adamw adamw commented Dec 14, 2022

Closes #2610

// bringing into scope the onDecodeFailureBadRequest extension method
import sttp.tapir.server.interceptor.decodefailure.DefaultDecodeFailureHandler.OnDecodeFailure._

// be default, when the customer_id is not an int, the next endpoint would be tried; here, we always return a bad request

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, should be by default.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed thx :)

@adamw adamw merged commit 4e3c004 into master Dec 15, 2022
@mergify mergify bot deleted the on-decode-failure-attribute branch December 15, 2022 08:42
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.

Regression in enumeratum support after 1.1.3
2 participants