Schema Manager
The Schema Manager produces valid Infrahub schema YAML from natural language descriptions. It applies Infrahub's naming conventions, relationship rules, attribute type requirements, and display property patterns automatically — without requiring manual study of the schema format.
When to use
- Creating a new schema node from a description
- Adding attributes or relationships to an existing node
- Designing a generic (abstract base type) with inheriting nodes
- Creating hierarchical node types (location trees, organizational hierarchies)
- Modifying an existing schema to add new fields or fix convention violations
- Validating a schema against best practices before loading
What it produces
- Schema YAML file starting with
version: "1.0"containingnodes:and/orgenerics: - Each node includes: namespace, name, attributes (with kinds and defaults), relationships (with identifiers, cardinality, peer references),
human_friendly_id,display_label, andorder_weight - Output is ready to validate with
infrahubctl schema checkand load withinfrahubctl schema load