formatting

This commit is contained in:
Josh Hawkins 2026-03-20 08:10:33 -05:00
parent dff790715c
commit ab43c9a41a

View File

@ -137,7 +137,9 @@ function normalizeNullableSchema(schema: RJSFSchema): RJSFSchema {
return {
...rest,
type: hasNull ? ["string", "null"] : "string",
...(enumValues && enumValues.length > 0 ? { examples: enumValues } : {}),
...(enumValues && enumValues.length > 0
? { examples: enumValues }
: {}),
} as RJSFSchema;
}