{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/yoshabdakosh.schema.json",
  "title": "Yo Shabdakosh Dictionary Dataset",
  "type": "array",
  "items": {
    "type": "object",
    "required": ["word", "definitions"],
    "additionalProperties": false,
    "properties": {
      "word": {
        "type": "string",
        "minLength": 1
      },
      "definitions": {
        "type": "array",
        "minItems": 1,
        "items": {
          "type": "object",
          "required": ["senses"],
          "additionalProperties": false,
          "properties": {
            "grammar": {
              "type": "string"
            },
            "etymology": {
              "type": "string",
              "minLength": 1
            },
            "senses": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        }
      }
    }
  }
}
