mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-19 08:56:35 +00:00
Change API parser to handle nested objects (#159)
* rewrite parser to handle new format and nested objects * add properties section also to nested properties * update docs manually
This commit is contained in:
@@ -98,12 +98,12 @@ export function Property({ name, type, required, min, max, minLen, maxLen, enumL
|
||||
{type}
|
||||
</dd>
|
||||
<dt className="sr-only">Required</dt>
|
||||
<dd className="font-mono text-xs text-red-600 dark:text-red-600">
|
||||
{required && 'required'}
|
||||
</dd>
|
||||
<dd className="font-mono text-xs text-zinc-400 dark:text-zinc-500">
|
||||
{!required && 'optional'}
|
||||
</dd>
|
||||
{required && <dd className="font-mono text-xs text-red-600 dark:text-red-600">
|
||||
required
|
||||
</dd>}
|
||||
{!required && <dd className="font-mono text-xs text-zinc-400 dark:text-zinc-500">
|
||||
optional
|
||||
</dd>}
|
||||
<dt className="sr-only">Enum</dt>
|
||||
<dd className="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0">
|
||||
{/*{enumList && "Possible values: [" + enumList.split(',').forEach((type) => (<tag>{type}</tag>)) + "]"}*/}
|
||||
|
||||
Reference in New Issue
Block a user