Skip to content

fix(DOC-2061): clarify schema reference name field per schema type#1613

Merged
Feediver1 merged 6 commits into
mainfrom
fix/doc-2061-schema-reference-name
May 29, 2026
Merged

fix(DOC-2061): clarify schema reference name field per schema type#1613
Feediver1 merged 6 commits into
mainfrom
fix/doc-2061-schema-reference-name

Conversation

@mfernest
Copy link
Copy Markdown
Contributor

@mfernest mfernest commented Mar 17, 2026

Summary

Resolves DOC-2061.

Adds a reference-name table to the "Reference a schema" section of schema-reg-api.adoc, and corrects the JSON Schema Limitations section on schema-reg-overview.adoc per @pgellert's review.

This PR was originally opened by @mfernest, who is no longer with the team. @Feediver1 is taking it over to land the remaining work after @pgellert's 2026-04-01 review.

What changed

  • New reference-name table under "Reference a schema" in schema-reg-api.adoc, explaining what the name field means per schema type:
    • Protobuf — the import path used in the .proto file (for example, import "simple.proto"; uses name simple.proto)
    • Avro — the schema name used by Avro resolution: fully qualified (namespace.name) when a namespace is defined, or just the record name when it is not
    • JSON Schema — used to identify the referenced schema in $ref, with a note that Redpanda's Schema Registry does not yet support external references (where $ref points to a schema in a different subject), and a link to the limitations
  • JSON Schema Limitations section rewritten on schema-reg-overview.adoc. The previous wording implied any use of $ref, $defs, definitions, dependentSchemas, dependentRequired, or prefixItems was rejected. Per @pgellert, that overstates the constraint: internal references via JSON Pointer fragments (#/definitions/..., #/$defs/...) and bundled schemas with their own $id do work; only external references (cross-subject) are unsupported.

Review history

Reviewer Status
@kbatuigas Approved 2026-03-19 (predates pgellert's review and the JSON Schema correctness fix; re-requesting)
CodeRabbit Avro no-namespace nit — addressed in bba27a74
@pgellert Three inline comments 2026-04-01 — all three now addressed; re-requesting review
@JakeSCahill Originally pinged @BenPope, who is no longer at Redpanda; substantive SME is @pgellert

Preview pages

Test plan

  • Netlify preview builds without errors
  • Reference-name table renders with three rows; JSON Schema row shows the "not yet supported" caveat and the xref resolves to the limitations section
  • Limitations section reads correctly in both cloud and non-cloud builds

🤖 Generated with Claude Code

Add a table explaining what the `name` field means in schema references
for Protobuf (import path), Avro (fully qualified schema name), and
JSON Schema (URI used in $ref).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@mfernest mfernest requested a review from a team as a code owner March 17, 2026 19:10
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 17, 2026

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 586c10d
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/6a19e1fc579467000870bf7c
😎 Deploy Preview https://deploy-preview-1613--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mfernest mfernest requested a review from kbatuigas March 17, 2026 19:10
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 17, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cf168837-3bb0-4adf-8713-103fd4836397

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The "Reference a schema" section in the schema registration API documentation was expanded to provide more prescriptive guidance on identifying schema references. The changes add explicit field definitions (name, subject, version), introduce a mapping table showing how the reference name field is interpreted differently across schema types (Protobuf, Avro, JSON Schema), and clarify that the semantic meaning of the name field is type-dependent. The existing Protobuf example remains intact.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: clarifying schema reference name field behavior per schema type.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The pull request description is comprehensive and follows the template structure with all key sections properly filled out including JIRA ticket, detailed what-changed summary, review history, preview links, and test plan.

✏️ 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 fix/doc-2061-schema-reference-name

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: 1

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

Inline comments:
In `@modules/manage/pages/schema-reg/schema-reg-api.adoc`:
- Around line 660-662: Update the Avro description text under the "Avro" heading
so it does not assume a namespace is always present; change the sentence
describing the "fully qualified schema name" to explain that when a namespace
exists it combines namespace and record name (for example
`com.example.Address`), and when no namespace is defined the reference is just
the record name; target the string "The fully qualified schema name, combining
the namespace and record name (for example, `com.example.Address`)" and replace
it with the clarified wording.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 818ab3cf-13c1-474e-a77a-b2608584977f

📥 Commits

Reviewing files that changed from the base of the PR and between fe8a357 and cb6efd1.

📒 Files selected for processing (1)
  • modules/manage/pages/schema-reg/schema-reg-api.adoc

Comment thread modules/manage/pages/schema-reg/schema-reg-api.adoc
@Feediver1
Copy link
Copy Markdown
Contributor

@mfernest Please add the SME/Reviewer here!

@JakeSCahill JakeSCahill changed the base branch from main to v-WIP/26.1 March 31, 2026 14:04
@JakeSCahill JakeSCahill requested a review from BenPope March 31, 2026 14:05
@JakeSCahill
Copy link
Copy Markdown
Contributor

@BenPope please could you confirm if these changes are correct

@pgellert pgellert self-requested a review March 31, 2026 14:54
Base automatically changed from v-WIP/26.1 to main March 31, 2026 16:18
Comment thread modules/manage/pages/schema-reg/schema-reg-api.adoc Outdated
Comment thread modules/manage/pages/schema-reg/schema-reg-api.adoc Outdated
@Feediver1 Feediver1 self-assigned this May 27, 2026
Feediver1 and others added 3 commits May 27, 2026 16:22
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Note in the schema-reg-api reference-name table that Redpanda's
  Schema Registry does not yet support external JSON Schema references
  (where $ref points to a different subject), and direct readers to the
  Limitations section for the supported alternatives.
- Rewrite the JSON Schema Limitations section in schema-reg-overview to
  distinguish internal references and bundled $id schemas (supported)
  from external references (not supported). The previous wording
  implied any use of $ref or $defs would be rejected, which overstates
  the constraint.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@Feediver1 Feediver1 requested review from kbatuigas and pgellert and removed request for BenPope May 28, 2026 12:39
@Feediver1
Copy link
Copy Markdown
Contributor

@pgellert — thanks for the thorough review back in April. Sorry for the long delay; @mfernest has since left the team and I'm taking this PR over. All three of your inline comments are now addressed in af400936 (replies posted on each thread). Re-requesting your review.

One scope question on the wording: I went with "not yet support" for external JSON Schema references on both pages, implying it's something on the roadmap rather than an architectural limitation. If that's wrong — i.e., if external cross-subject $ref resolution isn't on the near-term roadmap — let me know and I'll soften to "do not support" without the "yet". I'd rather be honest than create reader expectations.

(Note: @BenPope is no longer at Redpanda, so the original ping from @JakeSCahill on 2026-03-31 won't be answered there. You're the SME for this area going forward.)

@pgellert
Copy link
Copy Markdown
Contributor

One scope question on the wording: I went with "not yet support" for external JSON Schema references on both pages, implying it's something on the roadmap rather than an architectural limitation. If that's wrong — i.e., if external cross-subject $ref resolution isn't on the near-term roadmap — let me know and I'll soften to "do not support" without the "yet". I'd rather be honest than create reader expectations.

The "not yet supported" wording makes sense to me. There's no architectural limitation to us supporting it, but I also wouldn't say it's on a near-term committed roadmap. We certainly should support it, but I don't have a timeline for supporting it at the moment. I'll let you decide whether that would fit the "not yet supported" or "do not support" phrasing. :)

Copy link
Copy Markdown
Contributor

@pgellert pgellert left a comment

Choose a reason for hiding this comment

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

Thank you, looks great

Comment thread modules/manage/pages/schema-reg/schema-reg-api.adoc Outdated
Comment thread modules/manage/pages/schema-reg/schema-reg-api.adoc Outdated
Copy link
Copy Markdown
Contributor

@micheleRP micheleRP left a comment

Choose a reason for hiding this comment

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

please just add the suggested periods!

@Feediver1 Feediver1 merged commit 232c4eb into main May 29, 2026
3 checks passed
@Feediver1 Feediver1 deleted the fix/doc-2061-schema-reference-name branch May 29, 2026 19:04
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.

6 participants