mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-17 17:31:15 +03:00
formatting
This commit is contained in:
parent
dff790715c
commit
ab43c9a41a
@ -137,7 +137,9 @@ function normalizeNullableSchema(schema: RJSFSchema): RJSFSchema {
|
|||||||
return {
|
return {
|
||||||
...rest,
|
...rest,
|
||||||
type: hasNull ? ["string", "null"] : "string",
|
type: hasNull ? ["string", "null"] : "string",
|
||||||
...(enumValues && enumValues.length > 0 ? { examples: enumValues } : {}),
|
...(enumValues && enumValues.length > 0
|
||||||
|
? { examples: enumValues }
|
||||||
|
: {}),
|
||||||
} as RJSFSchema;
|
} as RJSFSchema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user