{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "manni:core-strict:1.0.0",
  "title": "manni core strict overlay v1.0.0",
  "description": "The strict overlay for manni:core:1.0.0. Stack it beside the open vocabulary. It narrows the form of values the open vocabulary already claims and requires no key.",
  "additionalProperties": true,
  "type": "object",
  "properties": {
    "title": {
      "$ref": "#/$defs/trimmed",
      "description": "Strict holds the title to one line with no leading or trailing whitespace."
    },
    "description": {
      "type": "string",
      "pattern": "^\\S(?:[\\s\\S]*\\S)?$",
      "description": "Strict rejects leading or trailing whitespace. The description may still span several lines."
    },
    "id": {
      "$ref": "#/$defs/kebab",
      "description": "Strict holds the id to kebab case, lowercase letters, digits and hyphens."
    },
    "type": {
      "$ref": "#/$defs/kebab",
      "description": "Strict holds the type to kebab case, lowercase letters, digits and hyphens."
    },
    "keywords": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/trimmed"
      },
      "description": "Strict takes keywords as a list only, so the comma-separated string form fails. The list is non-empty and unique, and each keyword is trimmed."
    },
    "language": {
      "$ref": "#/$defs/bcp47",
      "description": "Strict holds the language to a well-formed BCP 47 tag, such as `en`, `pt-BR` or `zh-Hant-TW`."
    }
  },
  "$defs": {
    "kebab": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]*$",
      "description": "Lowercase letters, digits and hyphens, starting with a letter or digit."
    },
    "trimmed": {
      "type": "string",
      "pattern": "^\\S(?:.*\\S)?$",
      "description": "One line with no leading or trailing whitespace."
    },
    "bcp47": {
      "type": "string",
      "pattern": "^(?:(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8})(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?(?:-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(?:-[0-9A-WY-Za-wy-z](?:-[A-Za-z0-9]{2,8})+)*(?:-x(?:-[A-Za-z0-9]{1,8})+)?|x(?:-[A-Za-z0-9]{1,8})+)$",
      "description": "A well-formed RFC 5646 language tag, or a private-use tag that starts with `x-`. Well-formed means the tag has the right shape. The registry is not consulted."
    }
  }
}
