Skip to main content

Module jsonld

Module jsonld 

Source
Expand description

JSON-LD structured data injection plugin.

Modules§

iso20022
ISO 20022 / banking domain JSON-LD types.

Structs§

BankAccount
A bank account record. Schema.org base type: BankAccount.
FinancialProduct
A financial product (loan, deposit, derivative). Schema.org base type: FinancialProduct.
FinancialTransaction
A financial transaction. Schema.org base type: MoneyTransfer.
Iso20022SchemaOrgError
Validation error raised by the bundled Schema.org subset validator.
JsonLdConfig
Configuration for the JSON-LD structured data plugin.
JsonLdPlugin
Injects JSON-LD structured data into HTML files.
JsonLdValidationError
A single validation failure against a JSON-LD block.
MonetaryAmount
ISO 4217 monetary amount.
PaymentInstrument
A payment instrument (card, transfer, direct debit). Schema.org base type: PaymentService.
RegulatedFinancialInstitution
A regulated financial institution. Schema.org base type: BankOrCreditUnion.

Enums§

Iso20022DispatchError
Errors that can occur when interpreting an iso20022: frontmatter block. These do NOT abort the build — they cause the block to be skipped with a warning.
Iso20022Entity
Tagged union dispatched from the iso20022.type frontmatter key.
ValidationOutcome
Result of an ISO 20022 field validation. Errors are warnings, not hard failures — the build continues regardless.

Functions§

iso20022_from_frontmatter
Parses the iso20022: frontmatter block into a typed entity.
iso20022_log_first_use
Emits an info-level log pointing at the iso20022 docs URL, exactly once per process. Idempotent.
iso20022_warn_invalid_fields
Walks every IBAN/BIC inside an entity and emits log::warn! for anything that fails validation. The page_label is included in the warning so site authors can locate the offending page.
validate_bic
Validates a BIC (ISO 9362) by length + alphanumeric layout.
validate_iban
crate dependency-free for the ISO validator.
validate_iso20022_schema_org
Validates an ISO 20022 JSON-LD blob against the Schema.org subset.
validate_jsonld
Walks an HTML string, extracts every <script type="application/ld+json"> block, parses it as JSON, and validates required fields per schema.org @type.