From ccfd14946bcfb5e8907fdce344a8cec4c28c6c21 Mon Sep 17 00:00:00 2001 From: shadcn Date: Wed, 6 Aug 2025 16:55:02 +0400 Subject: [PATCH] feat: update schema.json to allow registries field (#7959) --- apps/v4/public/schema.json | 36 ++++++++++++++++++++++++++++++++++++ apps/www/public/schema.json | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/apps/v4/public/schema.json b/apps/v4/public/schema.json index 8b89e39b5c..e5c9496f1b 100644 --- a/apps/v4/public/schema.json +++ b/apps/v4/public/schema.json @@ -56,6 +56,42 @@ } }, "required": ["utils", "components"] + }, + "registries": { + "type": "object", + "patternProperties": { + "^@": { + "oneOf": [ + { + "type": "string", + "pattern": "\\{name\\}" + }, + { + "type": "object", + "properties": { + "url": { + "type": "string", + "pattern": "\\{name\\}" + }, + "params": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": ["url"] + } + ] + } + }, + "additionalProperties": false } }, "required": ["style", "tailwind", "rsc", "aliases"] diff --git a/apps/www/public/schema.json b/apps/www/public/schema.json index 8b89e39b5c..e5c9496f1b 100644 --- a/apps/www/public/schema.json +++ b/apps/www/public/schema.json @@ -56,6 +56,42 @@ } }, "required": ["utils", "components"] + }, + "registries": { + "type": "object", + "patternProperties": { + "^@": { + "oneOf": [ + { + "type": "string", + "pattern": "\\{name\\}" + }, + { + "type": "object", + "properties": { + "url": { + "type": "string", + "pattern": "\\{name\\}" + }, + "params": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": ["url"] + } + ] + } + }, + "additionalProperties": false } }, "required": ["style", "tailwind", "rsc", "aliases"]