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"]