Skip to content

Use records for API models#58

Merged
raeperd merged 4 commits into
mainfrom
refactor/use-java-records-for-api-models
May 11, 2026
Merged

Use records for API models#58
raeperd merged 4 commits into
mainfrom
refactor/use-java-records-for-api-models

Conversation

@raeperd
Copy link
Copy Markdown
Owner

@raeperd raeperd commented May 11, 2026

Summary

  • Convert application request/response models from Lombok classes to Java records
  • Replace a couple of stream collect(toList()) calls with toList()
  • Update controller call sites to use record accessors

Verification

  • ./gradlew clean build --stacktrace
  • doc/run-api-tests.sh --reporters cli,json --reporter-json-export /tmp/rw-records-api.json

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 11, 2026

Warning

Rate limit exceeded

@raeperd has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 7 minutes and 6 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 312a1899-6e40-42d0-8ab5-bce57736e650

📥 Commits

Reviewing files that changed from the base of the PR and between f4cac50 and 3e980f2.

📒 Files selected for processing (18)
  • .github/dependabot.yml
  • build.gradle
  • lombok.config
  • src/main/java/io/github/raeperd/realworld/application/article/ArticleModel.java
  • src/main/java/io/github/raeperd/realworld/application/article/ArticlePostRequestDTO.java
  • src/main/java/io/github/raeperd/realworld/application/article/ArticlePutRequestDTO.java
  • src/main/java/io/github/raeperd/realworld/application/article/MultipleArticleModel.java
  • src/main/java/io/github/raeperd/realworld/application/article/comment/CommentModel.java
  • src/main/java/io/github/raeperd/realworld/application/article/comment/CommentPostRequestDTO.java
  • src/main/java/io/github/raeperd/realworld/application/article/comment/CommentRestController.java
  • src/main/java/io/github/raeperd/realworld/application/article/comment/MultipleCommentModel.java
  • src/main/java/io/github/raeperd/realworld/application/tag/TagsModel.java
  • src/main/java/io/github/raeperd/realworld/application/user/ProfileModel.java
  • src/main/java/io/github/raeperd/realworld/application/user/UserLoginRequestDTO.java
  • src/main/java/io/github/raeperd/realworld/application/user/UserModel.java
  • src/main/java/io/github/raeperd/realworld/application/user/UserPostRequestDTO.java
  • src/main/java/io/github/raeperd/realworld/application/user/UserPutRequestDTO.java
  • src/main/java/io/github/raeperd/realworld/application/user/UserRestController.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/use-java-records-for-api-models

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@raeperd raeperd self-assigned this May 11, 2026
@sonarqubecloud
Copy link
Copy Markdown

@raeperd raeperd merged commit a69b13f into main May 11, 2026
7 checks passed
@raeperd raeperd deleted the refactor/use-java-records-for-api-models branch May 11, 2026 14:24
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.

1 participant