Schema
Option A
Defines constraints
Option B
Less friendly alone
FAQ Guide
Use schema to define rules and example JSON to show practical usage; serious API docs usually need both.
Defines constraints
Less friendly alone
Easy to understand
Can be incomplete
Use both
Add context
They may not show every required rule, type, or edge case.
They can be hard for non-specialists to read without examples.
Compare generated payloads against both schema and examples.