Skip to main content

generate_resource_json_schema

Function generate_resource_json_schema 

Source
pub fn generate_resource_json_schema() -> Value
Expand description

Generate a JSON Schema (draft 2020-12) that validates Shaperail resource YAML files.

This schema is the canonical machine-readable definition of the resource format. LLMs and IDEs can use it for autocomplete and validation. The schema is generated from the same types that parser.rs uses, ensuring they never drift apart.