Skip to content

docs: fix typo in model refactoring example#862

Open
riobits wants to merge 1 commit into
elysiajs:mainfrom
riobits:main
Open

docs: fix typo in model refactoring example#862
riobits wants to merge 1 commit into
elysiajs:mainfrom
riobits:main

Conversation

@riobits

@riobits riobits commented Jun 24, 2026

Copy link
Copy Markdown

Fixes a typo in the model refactoring example. The inline validation block incorrectly used age: as the schema key instead of body:.

Summary by CodeRabbit

  • Documentation
    • Updated the OpenAPI tutorial example so the request body schema now uses body instead of age in the reference model example.

Copilot AI review requested due to automatic review settings June 24, 2026 21:35
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cf8c27dd-1fc4-4441-9028-ac1ccb01c9ee

📥 Commits

Reviewing files that changed from the base of the PR and between b8eced1 and 1aa3f8d.

📒 Files selected for processing (1)
  • docs/tutorial/features/openapi/index.md

Walkthrough

Updated the OpenAPI tutorial’s Reference Model example so the schema property shown in the .model({ ... }) block is now body instead of age.

Changes

OpenAPI tutorial example update

Layer / File(s) Summary
Reference model field name
docs/tutorial/features/openapi/index.md
The Reference Model example renames the object property from age to body in the schema declaration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

Tiny docs tweak, so sly and neat ♡
age waved bye-bye, body took the seat ~
Just one little name, no grand parade (¬‿¬)
Yet the tutorial got its makeover made ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the documentation typo fix in the OpenAPI model example.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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