File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 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(
175175 { hasProperties && < Divider atom = { isNodeHoveredAtom ( schemaNode ) } /> }
176176 < Properties required = { required } deprecated = { deprecated } validations = { validations } />
177177 </ 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 } /> }
179181 < Validations
180182 validations = { isRegularNode ( schemaNode ) ? getValidationsFromSchema ( schemaNode ) : { } }
181183 hideExamples = { hideExamples }
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ export const TopLevelSchemaRow = ({
6666 return (
6767 < >
6868 < ScrollCheck />
69- < Description value = { schemaNode . annotations . description } />
69+ { schemaNode . annotations . description !== schemaNode . parent ?. fragment . description && (
70+ < Description value = { schemaNode . annotations . description } />
71+ ) }
7072 < HStack spacing = { 3 } pb = { 4 } >
7173 < Menu
7274 aria-label = "Pick a type"
You can’t perform that action at this time.
0 commit comments