redoc
redoc copied to clipboard
Provide option to display readOnly properties
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.
It is only displayed in the response object and not the request body.
yet interesting to have an option to display it in the UI...
+1 We use the JSON Patch in our API. If a user doesn't see which properties are readOnly they don't see which properties hi can change.
+1 Please can we have this, as it is part of openapi spec
+1
I'm curious why people are asking for this. If it's "read only", then they can't update it, and why have it as part of the incoming (POST or PATCH) defined payload?