2026-04-06 18:51:56 +09:00
|
|
|
import { zodToJsonSchema } from "zod-to-json-schema"
|
2026-02-13 11:08:15 +09:00
|
|
|
import { OhMyOpenCodeConfigSchema } from "../src/config/schema"
|
|
|
|
|
|
|
|
|
|
export function createOhMyOpenCodeJsonSchema(): Record<string, unknown> {
|
2026-04-06 18:51:56 +09:00
|
|
|
const jsonSchema = zodToJsonSchema(OhMyOpenCodeConfigSchema) as Record<string, unknown>
|
2026-02-13 11:08:15 +09:00
|
|
|
|
2026-03-02 23:55:48 +09:00
|
|
|
return {
|
2026-04-06 18:45:33 +09:00
|
|
|
...jsonSchema,
|
2026-02-13 11:08:15 +09:00
|
|
|
$schema: "http://json-schema.org/draft-07/schema#",
|
2026-03-10 15:18:16 +09:00
|
|
|
$id: "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json",
|
2026-02-13 11:08:15 +09:00
|
|
|
title: "Oh My OpenCode Configuration",
|
|
|
|
|
description: "Configuration schema for oh-my-opencode plugin",
|
|
|
|
|
}
|
|
|
|
|
}
|