Skip to content

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.

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

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