docs: yaml,packages,script (4 files)

This commit is contained in:
Richard Ward
2025-12-31 14:32:52 +00:00
parent 658e2ea608
commit c520e13f9d
4 changed files with 7 additions and 5 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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)