mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Fix tNormalizedNullOptional formatting in schema view in docs
This commit is contained in:
parent
b62a6685e0
commit
0a8239996a
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ function formatConfigSchema(schema) {
|
||||||
} else if (schema._tag === "UnionType") {
|
} else if (schema._tag === "UnionType") {
|
||||||
if (schema.name.startsWith("Nullable<")) {
|
if (schema.name.startsWith("Nullable<")) {
|
||||||
return `Nullable<${formatConfigSchema(schema.types[0])}>`;
|
return `Nullable<${formatConfigSchema(schema.types[0])}>`;
|
||||||
|
} else if (schema.name.startsWith("Optional<")) {
|
||||||
|
return `Optional<${formatConfigSchema(schema.types[0])}>`;
|
||||||
} else {
|
} else {
|
||||||
return schema.types.map(t => formatConfigSchema(t)).join(" | ");
|
return schema.types.map(t => formatConfigSchema(t)).join(" | ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue