Deprecated Tag is not rendered when used in "oneOf"
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- documentation
Research direction
Start with the provided JSON Schema example and trace how deprecated values are rendered when the schema uses oneOf. Compare this with the existing behavior for deprecated properties outside oneOf, then verify the result using the query-parameter schema and its enum values.
Written by the indexing model from the issue text.
Description
So I have the following json schema for a query parameter which I want to render:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"oneOf": [
{
"type": "string",
"example": "include",
"enum": ["include", "only", "exclude"]
},
{
"type": "string",
"enum": ["true"],
"deprecated": true
}
]
}
While the deprecation property works fine if I would use it without the oneOf for this case I do not see it:

Is this the correct whey how I mark an value for an enum as deprecated?
- Dominant language
- TypeScript
- Stars
- 25.9k
- Forks
- 2.4k
- Avg merge
- 13h 10m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Redocly/redoc
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Type: Bug
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·