fix(build): correct JSON schema target from draft-07 to draft-7

Fix invalid target warning in schema generation.
Schema regenerated with correct draft-7 target.
This commit is contained in:
YeonGyu-Kim 2026-02-21 14:19:52 +09:00
parent c1c7d18133
commit 2d79d64bb2
2 changed files with 145 additions and 1 deletions

View File

@ -186,6 +186,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -231,6 +234,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -318,6 +324,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -384,6 +393,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -429,6 +441,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -516,6 +531,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -582,6 +600,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -627,6 +648,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -714,6 +738,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -780,6 +807,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -825,6 +855,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -912,6 +945,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -978,6 +1014,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -1023,6 +1062,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -1110,6 +1152,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -1176,6 +1221,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -1221,6 +1269,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -1308,6 +1359,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -1374,6 +1428,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -1419,6 +1476,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -1506,6 +1566,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -1572,6 +1635,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -1617,6 +1683,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -1704,6 +1773,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -1770,6 +1842,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -1815,6 +1890,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -1902,6 +1980,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -1968,6 +2049,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -2013,6 +2097,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -2100,6 +2187,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -2166,6 +2256,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -2211,6 +2304,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -2298,6 +2394,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -2364,6 +2463,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -2409,6 +2511,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -2496,6 +2601,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -2562,6 +2670,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -2607,6 +2718,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -2694,6 +2808,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -2760,6 +2877,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -2805,6 +2925,9 @@
}, },
{ {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "string", "type": "string",
"enum": [ "enum": [
@ -2892,6 +3015,9 @@
}, },
"providerOptions": { "providerOptions": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"ultrawork": { "ultrawork": {
@ -2914,6 +3040,9 @@
}, },
"categories": { "categories": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -2990,6 +3119,9 @@
}, },
"tools": { "tools": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -3030,6 +3162,9 @@
}, },
"plugins_override": { "plugins_override": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "boolean" "type": "boolean"
} }
@ -3309,6 +3444,9 @@
}, },
"metadata": { "metadata": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {} "additionalProperties": {}
}, },
"allowed-tools": { "allowed-tools": {
@ -3400,6 +3538,9 @@
}, },
"providerConcurrency": { "providerConcurrency": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "number", "type": "number",
"minimum": 0 "minimum": 0
@ -3407,6 +3548,9 @@
}, },
"modelConcurrency": { "modelConcurrency": {
"type": "object", "type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": { "additionalProperties": {
"type": "number", "type": "number",
"minimum": 0 "minimum": 0

View File

@ -3,7 +3,7 @@ import { OhMyOpenCodeConfigSchema } from "../src/config/schema"
export function createOhMyOpenCodeJsonSchema(): Record<string, unknown> { export function createOhMyOpenCodeJsonSchema(): Record<string, unknown> {
const jsonSchema = z.toJSONSchema(OhMyOpenCodeConfigSchema, { const jsonSchema = z.toJSONSchema(OhMyOpenCodeConfigSchema, {
target: "draft-07", target: "draft-7",
unrepresentable: "any", unrepresentable: "any",
}) })