style(ai): format schema normalization

(cherry picked from commit aee3d7e5e26c3a5cb3e950266a2561ece4b1d20c)
This commit is contained in:
usr-bin-roygbiv
2026-07-28 10:33:21 +00:00
committed by can1357
parent 34069920a6
commit 05d5b8c12d
+2 -4
View File
@@ -377,8 +377,7 @@ function normalizeSchemaObjectNode(value: JsonObject, options: NormalizeSchemaWa
Object.hasOwn(SUBSCHEMA_VALUE_KEYS, key) ||
Object.hasOwn(SUBSCHEMA_ARRAY_KEYS, key);
const childIsSubschema =
childBooleanIsSubschema ||
(Object.hasOwn(BOOLEAN_OR_SCHEMA_VALUE_KEYS, key) && isJsonObject(entry));
childBooleanIsSubschema || (Object.hasOwn(BOOLEAN_OR_SCHEMA_VALUE_KEYS, key) && isJsonObject(entry));
result[key] =
childInsideSchemaMap || childIsSubschema
? normalizeSchemaNode(entry, {
@@ -411,8 +410,7 @@ function normalizeSchemaObjectNode(value: JsonObject, options: NormalizeSchemaWa
Object.hasOwn(SUBSCHEMA_VALUE_KEYS, key) ||
Object.hasOwn(SUBSCHEMA_ARRAY_KEYS, key);
const childIsSubschema =
childBooleanIsSubschema ||
(Object.hasOwn(BOOLEAN_OR_SCHEMA_VALUE_KEYS, key) && isJsonObject(entry));
childBooleanIsSubschema || (Object.hasOwn(BOOLEAN_OR_SCHEMA_VALUE_KEYS, key) && isJsonObject(entry));
result[key] =
childInsideSchemaMap || childIsSubschema
? normalizeSchemaNode(entry, {