fix: writeOnly params displaying in webhook (#1866)

This commit is contained in:
Oprysk Vyacheslav 2022-01-20 18:36:40 +02:00 committed by GitHub
parent 95a7347931
commit 5694913e71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,12 @@ export function BodyContent(props: {
return (
<>
{description !== undefined && <Markdown source={description} />}
<Schema skipReadOnly={isRequestType} key="schema" schema={schema} />
<Schema
skipReadOnly={isRequestType}
skipWriteOnly={!isRequestType}
key="schema"
schema={schema}
/>
</>
);
}}