mirror of
https://github.com/Redocly/redoc.git
synced 2026-02-02 13:15:47 +03:00
fix: Only show description when type is object
This commit is contained in:
parent
003cd33e91
commit
2dddc3805b
|
|
@ -62,7 +62,7 @@ export class OneOfSchema extends React.Component<SchemaProps> {
|
|||
<div>
|
||||
{oneOf[schema.activeOneOf].deprecated && <Badge type="warning">Deprecated</Badge>}
|
||||
</div>
|
||||
{activeSchema.rawSchema.description && (
|
||||
{activeSchema.type == 'object' && activeSchema.rawSchema.description && (
|
||||
<Markdown source={activeSchema.rawSchema.description} />
|
||||
)}
|
||||
<ConstraintsView constraints={activeSchema.constraints} />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user