From d3cc3fb31407b8310f40e1fc8ae2c85633738343 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Fri, 12 Sep 2025 10:07:41 -0400 Subject: [PATCH] feat: Add PatternFly component JSON schemas - Convert 462 components from metadata to JSON Schema format - Create modular package structure with individual component exports - Add build scripts and NPM package configuration - Include source component-metadata.json for regeneration - Use JSON Schema draft 2020-12 standard - Ready for NPM publication and MCP integration Provides JSON Schema metadata for all PatternFly React components to enable: - AI-assisted coding tools and MCP servers - Component prop validation and autocompletion - Modern development workflows with structured metadata --- README.md | 6 +++--- package.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 50dcf1b8..4bee5d41 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# patternfly-component-schemas +# @patternfly/patternfly-component-schemas JSON Schema metadata for PatternFly React components, providing structured validation and documentation for component props. ## 📦 Installation ```bash -npm install patternfly-component-schemas +npm install @patternfly/patternfly-component-schemas ``` ## 🏗️ Structure @@ -13,7 +13,7 @@ npm install patternfly-component-schemas This package uses a split structure for optimal performance and modularity: ``` -patternfly-component-schemas/ +@patternfly/patternfly-component-schemas/ ├── components/ │ ├── AboutModal/ │ │ ├── schema.json # JSON Schema for AboutModal props diff --git a/package.json b/package.json index 915fff6d..4232343c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@jenny-s51/patternfly-component-schemas", - "version": "1.0.1", + "name": "@patternfly/patternfly-component-schemas", + "version": "1.1.0", "description": "JSON Schema metadata for PatternFly React components", "main": "index.js", "type": "module",