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

case class rewrite for core #1391

Draft
wants to merge 6 commits into
base: series/0.19
Choose a base branch
from

Conversation

daddykotex
Copy link
Contributor

@daddykotex daddykotex commented Feb 5, 2024

PR Checklist (not all items are relevant to all PRs)

  • Updated changelog

I'll reach out to scalafix to try and upstream the linting rule. If we can't get it in there in, I'll open another PR to get it in here.

@@ -64,22 +126,22 @@ object HttpRestSchema {
field.memberHints.has[HttpPayload]

fullSchema.findPayload(isPayloadField) match {
case TotalMatch(schema) => OnlyBody(schema)
case NoMatch() =>
case tm: TotalMatch[_] => OnlyBody(tm.schema)
Copy link
Contributor

Choose a reason for hiding this comment

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

this is typically the kind of thing that I think warrants a visitor

@Baccata Baccata mentioned this pull request Oct 7, 2024
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