THE DEV BENCH
✔️ JSON Schemamedium

4. An array of strings

Write a schema for an object with a required "tags" property that is an array of strings with at least 1 item.

How to approach this

For arrays, "type": "array" plus "items" (the schema every element must match) and "minItems" (a length floor). Here items.type = "string" and minItems = 1. An empty array, or an array containing a non-string, must be rejected.

schema.json