Can Another Program Use Botie’s Answer?

A technician can read a paragraph, but an application needs agreed fields. Check the response structure without confusing a valid record with a correct diagnosis.

13 sections · 4 questions · 1 coding challenge

1 / 13

Programs Needed a Shared Description of Valid Data

BOTIE

Programs exchanging JSON need more agreement than “send some JSON.” A schema can specify property names and value types so both sides can detect an incompatible record. JSON Schema distinguishes defining a property from requiring that property, and allows extra properties unless the schema restricts them.

A generated answer has the same interface problem. We will build a small explicit validator and keep its result separate from an asset lookup. This is a teaching subset of validation, not an implementation of the full JSON Schema standard.

Sources for this history