File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,15 @@ const { node, root } = Astro.props;
1212 node .title ? (
1313 <span class = " mr-2 font-bold" >{ node .title } </span >
1414 ) : (
15- <code class = " mr-2 !pr-0 font-mono rounded-md bg-gray-100" >
15+ <code class = " mr-2 rounded-md bg-gray-100 !pr-0 font-mono " >
1616 { node .subpath [node .subpath .length - 1 ]}
17+ { node .parent .fragment ?.required ?.includes (
18+ node .subpath [node .subpath .length - 1 ],
19+ ) ? (
20+ <span class = " font-semibold text-red-500" >*</span >
21+ ) : (
22+ " "
23+ )}
1724 </code >
1825 )
1926 }
@@ -46,7 +53,7 @@ const { node, root } = Astro.props;
4653
4754 {
4855 node .children && (
49- <ul class = " !list-none m-0 p-0 ml-4 " >
56+ <ul class = " m-0 ml-4 !list-none p-0" >
5057 { node .children .map ((node : SchemaNode ) => (
5158 <Astro.self node = { node } />
5259 ))}
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ const starlightPageProps = {
208208 }
209209
210210 <h2 id =" Parameters" >Parameters</h2 >
211+ <p ><span class =" text-red-500" >*</span > indicates a required field</p >
211212 <h3 id =" Input" >Input</h3 >
212213 <SchemaViewer schema ={ model .schema .input } />
213214
You can’t perform that action at this time.
0 commit comments