·migrating-json-schemas
</>

migrating-json-schemas

在草稿版本之間遷移 JSON 模式以與 z 模式一起使用。當使用者想要將架構從 Draft-04 升級到 Draft-2020-12、在草稿格式之間轉換、更新已棄用的關鍵字、用 $id 替換 id、將定義轉換為 $defs、將項目遷移到 prefixItems、用 dependentRequired 或 dependentSchemas 替換依賴項、使用較為依賴項、使用 dependentRequired 或 dependentSchemas 的依賴項功能時使用。

37安裝·0熱度·@zaggino

安裝

$npx skills add https://github.com/zaggino/z-schema --skill migrating-json-schemas

如何安裝 migrating-json-schemas

透過命令列快速安裝 migrating-json-schemas AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/zaggino/z-schema --skill migrating-json-schemas
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:zaggino/z-schema。

SKILL.md

查看原文

z-schema supports draft-04, draft-06, draft-07, draft-2019-09, and draft-2020-12. This skill covers migrating schemas between drafts and verifying them with z-schema.

| Old keyword (draft-04) | New keyword (draft-2020-12) | Introduced in |

| id | $id | draft-06 | | definitions | $defs | draft-2019-09 | | Array-form items (tuple) | prefixItems | draft-2020-12 | | additionalItems | items (when prefixItems present) | draft-2020-12 | | exclusiveMinimum: true (boolean) | exclusiveMinimum: | draft-06 | | exclusiveMaximum: true (boolean) | exclusiveMaximum: | draft-06 |

在草稿版本之間遷移 JSON 模式以與 z 模式一起使用。當使用者想要將架構從 Draft-04 升級到 Draft-2020-12、在草稿格式之間轉換、更新已棄用的關鍵字、用 $id 替換 id、將定義轉換為 $defs、將項目遷移到 prefixItems、用 dependentRequired 或 dependentSchemas 替換依賴項、使用較為依賴項、使用 dependentRequired 或 dependentSchemas 的依賴項功能時使用。 來源:zaggino/z-schema。

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/zaggino/z-schema --skill migrating-json-schemas
分類
</>開發工具
認證
收錄時間
2026-02-28
更新時間
2026-03-10

Browse more skills from zaggino/z-schema

快速解答

什麼是 migrating-json-schemas?

在草稿版本之間遷移 JSON 模式以與 z 模式一起使用。當使用者想要將架構從 Draft-04 升級到 Draft-2020-12、在草稿格式之間轉換、更新已棄用的關鍵字、用 $id 替換 id、將定義轉換為 $defs、將項目遷移到 prefixItems、用 dependentRequired 或 dependentSchemas 替換依賴項、使用較為依賴項、使用 dependentRequired 或 dependentSchemas 的依賴項功能時使用。 來源:zaggino/z-schema。

如何安裝 migrating-json-schemas?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/zaggino/z-schema --skill migrating-json-schemas 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/zaggino/z-schema