Fix formatting

This commit is contained in:
Ola Hungerford
2025-02-27 07:21:04 -07:00
parent 426fb87640
commit 238c22830b
8 changed files with 283 additions and 246 deletions

View File

@@ -50,8 +50,8 @@ export function formatFieldLabel(key: string): string {
* @returns True if valid, false otherwise
*/
export function validateValueAgainstSchema(
value: JsonValue,
schema: JsonSchemaType
value: JsonValue,
schema: JsonSchemaType,
): boolean {
// Basic type validation
switch (schema.type) {
@@ -65,7 +65,9 @@ export function validateValueAgainstSchema(
case "array":
return Array.isArray(value);
case "object":
return typeof value === "object" && value !== null && !Array.isArray(value);
return (
typeof value === "object" && value !== null && !Array.isArray(value)
);
default:
return true;
}