✔️ JSON Schemaeasy
1. Require an object with a string field
Write a JSON Schema (draft-07) that describes an OBJECT with a property "name" that must be a string, and mark "name" as required.
How to approach this
A JSON Schema is itself JSON. Start with {"type": "object"}, list fields under "properties", and force presence with a "required" array. Here: type object, properties.name.type = "string", required: ["name"]. Your schema must accept a valid doc and reject one with the wrong type or a missing field.
schema.json