Redocly / Redocly/redoc

Redoc renders "object" instead of objectTitle in response schema (using oneOf & allOf)

Open
#1,256 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
25.9k
Forks
2.4k
Avg merge
13h 10m
Merged PRs (30d)
4

Description

Hello!
I have a problem with Redoc. 'object' text is rendered instead of object title in Redoc. Swagger UI shows it correctly. Please help me fix this.

The code:
image

What Redoc renders:
image

What Swagger UI renders:
image

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by reproducing the response-schema rendering with the reported oneOf and allOf example, then trace the Redoc path that chooses the displayed object label. Done means the schema shows its object title instead of "object" and a regression test covers this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, typescript
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.