{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Loan Agreement","description":"Bilateral loan agreement between a lender and a borrower, setting out the principal, interest, term, repayment schedule, events of default and governing law. Intended as a generic starting point — national law (e.g. consumer-credit rules) may require additional mentions.","type":"object","required":["agreement_date","lender","borrower","loan","interest","repayment","events_of_default","governing_law","jurisdiction"],"additionalProperties":false,"properties":{"agreement_date":{"type":"string","format":"date"},"place_of_signature":{"type":"string"},"lender":{"type":"object","required":["name","address"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"legal_form":{"type":"string"},"address":{"type":"string","minLength":1},"registration":{"type":"string"},"represented_by":{"type":"string"}}},"borrower":{"type":"object","required":["name","address"],"additionalProperties":false,"properties":{"name":{"type":"string","minLength":1},"legal_form":{"type":"string"},"address":{"type":"string","minLength":1},"registration":{"type":"string"},"represented_by":{"type":"string"}}},"loan":{"type":"object","required":["principal_amount","purpose","disbursement_date","term_months","maturity_date"],"additionalProperties":false,"properties":{"principal_amount":{"type":"number","exclusiveMinimum":0},"purpose":{"type":"string","minLength":1},"disbursement_date":{"type":"string","format":"date"},"term_months":{"type":"integer","minimum":1,"maximum":600},"maturity_date":{"type":"string","format":"date"}}},"interest":{"type":"object","required":["annual_rate","rate_type","day_count","late_rate"],"additionalProperties":false,"properties":{"annual_rate":{"type":"number","minimum":0,"maximum":100},"rate_type":{"type":"string","enum":["fixed","variable"]},"day_count":{"type":"string","minLength":1},"late_rate":{"type":"number","minimum":0,"maximum":100}}},"repayment":{"type":"object","required":["schedule_kind","frequency","first_payment_date","prepayment_terms"],"additionalProperties":false,"properties":{"schedule_kind":{"type":"string","enum":["bullet","amortizing","interest_only"]},"frequency":{"type":"string","enum":["monthly","quarterly","semi_annual","annual"]},"first_payment_date":{"type":"string","format":"date"},"payment_amount":{"type":"number","minimum":0},"prepayment_terms":{"type":"string","minLength":1}}},"collateral":{"type":"string"},"events_of_default":{"type":"array","minItems":1,"items":{"type":"string","minLength":1}},"governing_law":{"type":"string","minLength":1},"jurisdiction":{"type":"string","minLength":1}}}