✔️ JSON Schemamedium
2. Two required fields with types
Write a schema for an object with "name" (string) and "age" (integer), BOTH required.
How to approach this
Add each field to "properties" with its own type, and list both in "required". Note "integer" is stricter than "number" — it rejects 3.5. A doc missing either field, or with a non-integer age, must be rejected.
schema.json