File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,9 @@ export const SchemaRow: React.FunctionComponent<SchemaRowProps> = React.memo(
175
175
{ hasProperties && < Divider atom = { isNodeHoveredAtom ( schemaNode ) } /> }
176
176
< Properties required = { required } deprecated = { deprecated } validations = { validations } />
177
177
</ Flex >
178
- { typeof description === 'string' && description . length > 0 && < Description value = { description } /> }
178
+ { typeof description === 'string' &&
179
+ ( ! combiner || schemaNode . parent ?. fragment . description !== description ) &&
180
+ description . length > 0 && < Description value = { description } /> }
179
181
< Validations
180
182
validations = { isRegularNode ( schemaNode ) ? getValidationsFromSchema ( schemaNode ) : { } }
181
183
hideExamples = { hideExamples }
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ export const TopLevelSchemaRow = ({
66
66
return (
67
67
< >
68
68
< ScrollCheck />
69
- < Description value = { schemaNode . annotations . description } />
69
+ { schemaNode . annotations . description !== schemaNode . parent ?. fragment . description && (
70
+ < Description value = { schemaNode . annotations . description } />
71
+ ) }
70
72
< HStack spacing = { 3 } pb = { 4 } >
71
73
< Menu
72
74
aria-label = "Pick a type"
You can’t perform that action at this time.
0 commit comments