JSON schema
A JSON schema is a written specification of what a JSON data record must contain: which fields, their types, which are required and what values are allowed.
What it means
JSON is a common text format for passing data between systems. A schema works like a printed form with rules: invoice number is required text, amount must be a number above zero, currency must be INR or USD. Software can test any record against the schema and reject one that does not fit. This catches missing or malformed data before it reaches the books.
Example
A trading firm's schema for a purchase bill requires supplier code, bill date, a list of lines and a total. A record arriving with the total as the word "Rs five thousand" is rejected automatically.
Records and checks
- Record the schema version, its owner and each change made.
- Verify with sample good and bad records that the schema accepts and rejects correctly.
- The technical owner approves changes; finance confirms required fields match business needs.
Common mistakes
- Making every field optional, so incomplete records pass.
- Changing the schema without telling the systems that send data.
Did not find your answer?Message the lamp team on WhatsApp. Ask about setup, your records, or anything we have not covered here.Ask us on WhatsApp →