{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://integra.priyaio.com/schemas/csv-output/v1.0.0",
    "title": "IOSetu CSV Output Format",
    "description": "Schema for AL3 parsed output in CSV format. Flattened structure with one row per data element.",
    "version": "1.0.0",
    "format": "CSV",
    "structure": "Flat (one row per leaf group data element)",
    "columns": [
        {
            "name": "ID",
            "type": "string",
            "description": "Unique ID for the data element row"
        },
        {
            "name": "RefID",
            "type": "string",
            "description": "Reference ID (internal use)"
        },
        {
            "name": "Key",
            "type": "string",
            "description": "Data Element Name"
        },
        {
            "name": "Name",
            "type": "string",
            "description": "Same as Key (for backwards compatibility)"
        },
        {
            "name": "FormattedValue",
            "type": "string",
            "description": "Value formatted for display"
        },
        {
            "name": "ActualValue",
            "type": "string",
            "description": "Unformatted string representation of the typed value"
        },
        {
            "name": "RawValue",
            "type": "string",
            "description": "Original fixed-width raw value"
        },
        {
            "name": "GroupCode",
            "type": "string",
            "description": "AL3 Group Code"
        },
        {
            "name": "Level",
            "type": "integer",
            "description": "Hierarchy level"
        },
        {
            "name": "NodeID",
            "type": "integer",
            "description": "Unique ID of the Group"
        },
        {
            "name": "ParentID",
            "type": "integer",
            "description": "ID of the parent Group"
        }
    ],
    "example": "\"ID\",\"RefID\",\"Key\",\"Name\",\"FormattedValue\",\"ActualValue\",\"RawValue\",\"GroupCode\",\"Level\",\"NodeID\",\"ParentID\"\n\"1\",\"1\",\"5BPI\",\"Premium Amount\",\"$1234.56\",\"1234.56\",\"0000123456F\",\"5BPI\",\"5\",\"12\",\"4\""
}