{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://b2base.eu/schemas/1.0.0-draft.1/financial/money.schema.json", "title": "Geldbeträge", "$comment": "B2Base 1.0.0-draft.1. Projektentwurf, kein durch ISO oder andere Normungsgremien verabschiedeter Standard.", "type": "object", "description": "Exakter Geldbetrag mit expliziter Währung; Dezimaltext verhindert binäre Rundung beim Transport.", "properties": { "amount": { "type": "string", "minLength": 1, "description": "Vorzeichen erlaubt; Dezimalpunkt, keine Tausendertrennzeichen und kein Exponent.", "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]+)?$" }, "currency": { "$ref": "#/$defs/CurrencyCode" } }, "required": [ "amount", "currency" ], "additionalProperties": false, "$defs": { "CurrencyCode": { "type": "string", "minLength": 1, "description": "ISO-4217-Währungscode; Schreibweise allein belegt weder Zuweisung noch historische Gültigkeit.", "pattern": "^[A-Z]{3}$" } }, "examples": [ { "amount": "1234.50", "currency": "EUR" }, { "amount": "1250", "currency": "JPY" }, { "amount": "12.345", "currency": "KWD" } ] }