diff --git a/src/components/models/SchemaRow.astro b/src/components/models/SchemaRow.astro index d2e4f64122e85aa..8ff102282182716 100644 --- a/src/components/models/SchemaRow.astro +++ b/src/components/models/SchemaRow.astro @@ -12,8 +12,15 @@ const { node, root } = Astro.props; node.title ? ( {node.title} ) : ( - + {node.subpath[node.subpath.length - 1]} + {node.parent.fragment?.required?.includes( + node.subpath[node.subpath.length - 1], + ) ? ( + * + ) : ( + "" + )} ) } @@ -46,7 +53,7 @@ const { node, root } = Astro.props; { node.children && ( -