From c520e13f9dfe4c9b295dd8dd09a0aaf82d2a0976 Mon Sep 17 00:00:00 2001 From: Richard Ward Date: Wed, 31 Dec 2025 14:32:52 +0000 Subject: [PATCH] docs: yaml,packages,script (4 files) --- packages/forum_forge/seed/schema/entities.yaml | 2 +- packages/json_script_example/README.md | 5 +++-- packages/json_script_example/seed/schema/entities.yaml | 2 +- yaml-schema.yaml => schemas/yaml-schema.yaml | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) rename yaml-schema.yaml => schemas/yaml-schema.yaml (92%) diff --git a/packages/forum_forge/seed/schema/entities.yaml b/packages/forum_forge/seed/schema/entities.yaml index c51ee5b09..38e96671a 100644 --- a/packages/forum_forge/seed/schema/entities.yaml +++ b/packages/forum_forge/seed/schema/entities.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=../../../../../yaml-schema.yaml +# yaml-language-server: $schema=../../../../../schemas/yaml-schema.yaml # Schema definitions owned by forum_forge package entities: diff --git a/packages/json_script_example/README.md b/packages/json_script_example/README.md index 4938505f9..0d3207267 100644 --- a/packages/json_script_example/README.md +++ b/packages/json_script_example/README.md @@ -81,9 +81,10 @@ All JSON files include `$schema` references for **IDE autocomplete, validation, - Validates ACL rules **YAML Validation:** -- **yaml-schema.yaml** (project root) - YAML meta-schema for validating YAML file structure - - entities.yaml includes `# yaml-language-server: $schema=` directive +- **yaml-schema.yaml** (schemas/) - YAML meta-schema for validating YAML file structure + - entities.yaml includes `# yaml-language-server: $schema=../../../../../schemas/yaml-schema.yaml` directive - Provides IDE validation for YAML syntax and structure + - See [schemas/README.md](../../../schemas/README.md) for details Benefits: - ✅ **IDE Support** - IntelliSense autocomplete in VS Code, JetBrains IDEs diff --git a/packages/json_script_example/seed/schema/entities.yaml b/packages/json_script_example/seed/schema/entities.yaml index c87f2b573..05fccb856 100644 --- a/packages/json_script_example/seed/schema/entities.yaml +++ b/packages/json_script_example/seed/schema/entities.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=../../../../../yaml-schema.yaml +# yaml-language-server: $schema=../../../../../schemas/yaml-schema.yaml # Schema definitions for json_script_example package # Demonstrates entity modeling for JSON script-based applications diff --git a/yaml-schema.yaml b/schemas/yaml-schema.yaml similarity index 92% rename from yaml-schema.yaml rename to schemas/yaml-schema.yaml index b792eada8..d10c47b97 100644 --- a/yaml-schema.yaml +++ b/schemas/yaml-schema.yaml @@ -1,9 +1,10 @@ # YAML Schema Meta-Schema (Draft 2025-11) # Source: https://github.com/johndoe6345789/yaml-schema +# Location: schemas/yaml-schema.yaml # # This meta-schema enables IDE validation for YAML files in the MetaBuilder project. # YAML files should include the following directive at the top: -# # yaml-language-server: $schema=../../yaml-schema.yaml +# # yaml-language-server: $schema=../../../../../schemas/yaml-schema.yaml # # Used by: # - packages/*/seed/schema/entities.yaml (database entity definitions)