Schema Reference

JSON schemas for AI-assisted configuration

Overview

intu provides JSON schemas for its YAML configuration files. These schemas enable IDE autocompletion, real-time validation, and allow AI tools to generate correct configuration without guesswork.

Two schemas are available:

Channel Schema

The channel schema defines the structure of channel.yaml files, including source configuration, transformer and validator references, destination mappings, tags, groups, and all other channel-level properties.

URL
https://intu.dev/schema/channel.schema.json
Applies to
channels/*/channel.yaml

VS Code setup

Add the following to your VS Code settings.json (workspace or user level) to enable autocompletion and validation for channel files. Requires the YAML extension.

json
{
  "yaml.schemas": {
    "https://intu.dev/schema/channel.schema.json": "channels/*/channel.yaml"
  }
}

What the schema covers

Profile Schema

The profile schema defines the structure of the root intu.yaml file and any profile override files (intu.dev.yaml, intu.prod.yaml, etc.). It covers runtime settings, global Kafka configuration, named destinations, and all top-level properties.

URL
https://intu.dev/schema/profile.schema.json
Applies to
intu.yaml, intu.*.yaml

VS Code setup

json
{
  "yaml.schemas": {
    "https://intu.dev/schema/profile.schema.json": ["intu.yaml", "intu.*.yaml"]
  }
}

Combined VS Code configuration

To enable both schemas at once, combine them in a single settings.json block:

json
{
  "yaml.schemas": {
    "https://intu.dev/schema/channel.schema.json": "channels/*/channel.yaml",
    "https://intu.dev/schema/profile.schema.json": ["intu.yaml", "intu.*.yaml"]
  }
}

Using with AI

The JSON schemas are designed to be consumed by AI assistants and code generation tools. When provided as context, they give the AI a complete specification of every valid property, its type, allowed values, and description.

This means an AI assistant can:

Providing schema context

When working with an AI assistant, include the schema URL or content as part of your prompt. Most AI-powered coding tools can fetch and parse JSON schemas automatically.

text
Using the intu channel schema at https://intu.dev/schema/channel.schema.json,
generate a channel.yaml for an HL7 ADT listener on port 2575 that transforms
messages and sends them to a Kafka topic.
Schema versioning Schemas are versioned alongside the CLI. Always use the schema version that matches your installed version of intu to avoid validation mismatches.