Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:Mage ai Mage ai JSON Schema Loading

From Leeroopedia
Revision as of 17:40, 16 February 2026 by Admin (talk | contribs) (Auto-imported from principles/Mage_ai_Mage_ai_JSON_Schema_Loading.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Knowledge Sources
Domains Data_Integration, Schema_Management
Last Updated 2026-02-09 00:00 GMT

Overview

A convention-based schema loading mechanism that reads JSON Schema Draft 4 files from a connector's schemas directory to define stream data structures.

Description

JSON Schema Loading provides the schema foundation for API and file-based source connectors. Rather than discovering schemas dynamically from a database, these connectors define their stream schemas as static JSON files. Each file name (minus .json extension) becomes the stream ID, and its contents define the JSON Schema properties, types, and formats. The loading mechanism uses the connector class's file location to resolve the schemas directory path.

Usage

Use this principle for any source connector that cannot introspect schemas at runtime. Define one JSON file per stream in the schemas/ directory within the connector package.

Theoretical Basis

JSON Schema Draft 4 property types used in Singer:

  • string - text values, optionally with format "date-time" or "uuid"
  • integer - whole numbers
  • number - floating point numbers
  • boolean - true/false values
  • object - nested JSON objects
  • array - JSON arrays
  • null - nullable indicator (used in type arrays like ["null", "string"])

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment