Redocly / Redocly/redoc

Provide option to display readOnly properties

Open
#948 6 comments 0 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

When I mark a property in a request body with readOnly: true, redoc-cli doesn't display the property at all in the HTML output. This is at odds with the behavior of other documentation generators, which display the property with distinctive treatment that shows that the property is read-only. SwaggerHub is an example of this.

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

Start by reproducing the issue in redoc-cli with a request-body property marked readOnly: true and inspect the generated HTML output. Compare the result with the expected distinctive read-only treatment; the work is done when the property is displayed and its read-only status is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
api, documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.