Skip to content

doc: v3.6.0 release updates#597

Merged
ymc9 merged 1 commit intomainfrom
doc/v3.6.0
Apr 21, 2026
Merged

doc: v3.6.0 release updates#597
ymc9 merged 1 commit intomainfrom
doc/v3.6.0

Conversation

@ymc9
Copy link
Copy Markdown
Member

@ymc9 ymc9 commented Apr 21, 2026

Summary

Test plan

  • pnpm start — verify all updated pages render correctly
  • Check docs/service/openapi/rpc.md and docs/service/openapi/restful.md both render the shared Options section via the partial
  • Check docs/modeling/custom-type.md relation fields section and warning admonition render correctly
  • Check docs/utilities/zod.md deprecated admonitions render correctly

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Custom types now support relation fields (available as mixins only).
    • MySQL support graduated from preview status.
    • OpenAPI spec generation now fully documented with configurable options.
    • RPC-style OpenAPI generation capabilities documented.
    • Zod utility updated: relations excluded by default; new optionality configuration option added.

- RPC-style API OAPI generation (v3.6.0)
- Extract shared OpenAPI spec options into a reusable partial
- Custom types now support relation fields (v3.6.0), with mixin example
- Zod: document breaking changes and new `optionality` option (PR #2525)
- MySQL: remove preview banner

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zenstack-new-site Ready Ready Preview, Comment Apr 21, 2026 0:57am

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 21, 2026

Walkthrough

Documentation updates across modeling, databases, and services that include custom types supporting relation fields as mixins, MySQL feature status, OpenAPI specification generation configuration (refactored into a shared component), RPC-style OpenAPI generation, and revised default behavior for Zod schema generation with new optionality options.

Changes

Cohort / File(s) Summary
Custom Type Documentation
docs/modeling/custom-type.md
Added "Relation Fields" section documenting that custom types can define relation fields, with examples showing AuditMixin usage. Removed prior restriction against relation fields; custom types with relations are limited to mixin usage only.
OpenAPI Specification Components
docs/service/openapi/_openapi_spec_options.md, docs/service/openapi/restful.md
Created shared OpenApiSpecOptions component documenting generateSpec options (title, version, description, summary, respectAccessPolicies) with type definitions and behavior descriptions. Refactored restful.md to reference the component instead of inline documentation; updated "Slicing" section link.
RPC-Style OpenAPI Documentation
docs/service/openapi/rpc.md
Replaced placeholder content with complete documentation for RPCApiHandler.generateSpec(), including version marker (v3.6.0), shared OpenApiSpecOptions component, Express example for serving specs, and explanation of how queryOptions and omit affect generated specifications.
Database Documentation
docs/recipe/databases/mysql.md
Removed <PreviewFeature /> component, reflecting MySQL support release status; installation and setup instructions remain unchanged.
Zod Utilities Documentation
docs/utilities/zod.md
Updated makeModelSchema default behavior from including relations to excluding them; added optionality option with 'all' and 'defaults' modes. Marked makeModelCreateSchema and makeModelUpdateSchema as deprecated with migration guidance.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'doc: v3.6.0 release updates' accurately summarizes the main change: documentation updates for the v3.6.0 release across multiple files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch doc/v3.6.0

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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/modeling/custom-type.md`:
- Line 44: The heading "Relation Fields" is currently an h3 (###) but should be
an h2 (##) to maintain proper document hierarchy; update the markdown heading
text "Relation Fields" from "### Relation Fields" to "## Relation Fields" in the
docs/modeling/custom-type.md file so the document has correct heading levels and
consistent outline generation.

In `@docs/service/openapi/restful.md`:
- Line 84: Update the RESTful slicing description sentence that currently reads
"the spec only includes the models, operations, procedures, and filter kinds
that are allowed" by removing the word "procedures" so it lists only "models,
operations, and filter kinds"; edit the sentence in the same paragraph (the line
containing "procedures") to reflect RESTful-relevant entities and ensure
punctuation/grammar remain correct.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 498c2b77-b214-4968-aa33-463e124a44a0

📥 Commits

Reviewing files that changed from the base of the PR and between 51f95aa and d733db5.

📒 Files selected for processing (6)
  • docs/modeling/custom-type.md
  • docs/recipe/databases/mysql.md
  • docs/service/openapi/_openapi_spec_options.md
  • docs/service/openapi/restful.md
  • docs/service/openapi/rpc.md
  • docs/utilities/zod.md
💤 Files with no reviewable changes (1)
  • docs/recipe/databases/mysql.md

Comment thread docs/modeling/custom-type.md
Comment thread docs/service/openapi/restful.md
@ymc9 ymc9 merged commit b76e35d into main Apr 21, 2026
4 checks passed
@ymc9 ymc9 deleted the doc/v3.6.0 branch April 21, 2026 01:47
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