APIs & Programming
schema
Two programs exchanging data need an agreed shape in advance. A schema is that contract; data that breaks it triggers errors. The schema attached to an API document tells you exactly what that service accepts and returns.
A blueprint that specifies the accepted input format is a schema.
Why it mattersThe schema is the first thing to read in API documentation. Required values, optional values, and response shape are all listed, often enough to write the call unaided.
ExampleTwo programs exchanging data need an agreed shape in advance. A schema is that contract; data that breaks it triggers errors. The schema attached to an API document tells you exactly what that service accepts and returns.
AI Knowledge Hub