fix(requestBody): hide read only properties (#6490)

This commit is contained in:
Lucia Sarni
2020-10-15 20:25:06 +02:00
committed by GitHub
parent 5fc43faef1
commit 5065613130
3 changed files with 113 additions and 0 deletions

View File

@@ -135,6 +135,8 @@ const RequestBody = ({
<tbody>
{
Map.isMap(bodyProperties) && bodyProperties.entrySeq().map(([key, prop]) => {
if (prop.get("readOnly")) return
let commonExt = showCommonExtensions ? getCommonExtensions(prop) : null
const required = schemaForMediaType.get("required", List()).includes(key)
const type = prop.get("type")