Skip to content

Commit f64a9a3

Browse files
committed
Enrich vgi-lint metadata: docs, descriptions, examples
1 parent fb143df commit f64a9a3

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

crates/iso20022-worker/src/meta.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
//! - `vgi.keywords` (VGI126/138) — a JSON array of search terms/synonyms
99
//!
1010
//! Per-object `vgi.source_url` is intentionally NOT emitted here: it belongs on
11-
//! the catalog object only (VGI139), which already points at iso20022.org.
11+
//! the catalog object only (VGI139), which already carries the worker's
12+
//! `source_url` (the project repository). The open ISO 20022 standard itself
13+
//! (iso20022.org) is cited in the catalog `doc_md` prose.
1214
1315
/// Encode comma-separated keywords as the JSON array of strings that
1416
/// `vgi.keywords` requires (VGI138).

crates/iso20022-worker/src/table/camt053.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ use super::common::ReadTable;
1010
use super::scan::finish;
1111
use crate::cols::*;
1212

13-
const RESULT_MD: &str = "One row per `Stmt`: `msg_id`, `stmt_id`, `stmt_seq_nb`, `account_iban` / \
13+
const RESULT_MD: &str = "One row per `Stmt`: `msg_id`, `creation_dt`, `stmt_id`, `stmt_seq_nb`, \
14+
`account_iban` / \
1415
`account_other` / `account_ccy` / `account_owner`, `from_dt`/`to_dt`, signed `opening_balance` / \
1516
`closing_balance` / `closing_available` DECIMAL(38,9) + `ccy`, `entry_count`, `sum_credits` / \
1617
`sum_debits`, plus `raw` (whole document) and `path`. Pair with `camt053_entries(raw)` for the lines.";

crates/iso20022-worker/src/table/camt054.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ pub fn table() -> ReadTable {
2727
doc_md: "Read camt.054 debit/credit notifications into rows (one per Ntfctn).",
2828
keywords: "camt.054, camt054, BkToCstmrDbtCdtNtfctn, notification, debit credit advice, \
2929
iso 20022, entries, reconciliation",
30-
result_columns_md: "One row per `Ntfctn`, same columns as `camt053_read`. Pair with \
31-
`camt054_entries(raw)` for the individual notification lines.",
30+
result_columns_md: "One row per `Ntfctn`, sharing the `camt053_read` column layout: \
31+
`msg_id`, `creation_dt`, `stmt_id` (from `Ntfctn/Id`), `stmt_seq_nb`, `account_iban` / \
32+
`account_other` / `account_ccy` / `account_owner`, `from_dt`/`to_dt`, signed \
33+
`opening_balance` / `closing_balance` / `closing_available` DECIMAL(38,9) + `ccy` \
34+
(balances are usually absent on a notification and come back NULL unless present), \
35+
`entry_count`, `sum_credits` / `sum_debits`, plus `raw` (whole document) and `path`. \
36+
Pair with `camt054_entries(raw)` to explode the individual notification `Ntry` lines.",
3237
}
3338
}

0 commit comments

Comments
 (0)