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

New annotations #1767

Merged
merged 6 commits into from
Jan 20, 2022
Merged

New annotations #1767

merged 6 commits into from
Jan 20, 2022

Conversation

kubinio123
Copy link
Contributor

No description provided.

@kubinio123 kubinio123 linked an issue Jan 19, 2022 that may be closed by this pull request
@kubinio123 kubinio123 changed the title [wip] New annotations New annotations Jan 20, 2022
@kubinio123 kubinio123 requested a review from adamw January 20, 2022 10:52
case class Form(name: String, age: Int)
object Form {
import sttp.tapir.generic.auto._
implicit val mpCodec: MultipartCodec[Form] = MultipartCodec.multipartCaseClassCodec[Form]
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't import sttp.tapir.generic.auto._ be enough?

Copy link
Member

Choose a reason for hiding this comment

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

I would expect this codec not to be necessary to be given explicitly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, I think I put it there to avoid import on the file level but it's fine to have it there

@adamw adamw merged commit 341c18c into master Jan 20, 2022
@mergify mergify bot deleted the new-annotations branch January 20, 2022 20:10
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.

[Feature] more body type annotations
2 participants