{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/EducationalOccupationalCredential/v1/schema.json",
  "title": "EducationalOccupationalCredential",
  "description": "Objects Grid EducationalOccupationalCredential. A qualification: a certificate, a licence, a degree. Stored inside an EmployeeRole's hasCredential. Modeled in compliance with https://schema.org/EducationalOccupationalCredential.",
  "type": "object",
  "properties": {
    "at_type": {
      "description": "The object type",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "EducationalOccupationalCredential"
      ]
    },
    "name": {
      "description": "The credential's name, e.g. 'Master hairdresser'",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "credentialCategory": {
      "description": "Its kind, e.g. certificate, license, degree",
      "type": [
        "string",
        "null"
      ]
    },
    "recognizedBy": {
      "description": "The Organization that awards or recognizes it",
      "x-objectsgrid-rangeIncludes": [
        "Organization"
      ],
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "dateCreated": {
      "description": "When it was awarded",
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "validFor": {
      "description": "How long it is valid, an ISO 8601 duration",
      "type": [
        "string",
        "null"
      ],
      "minLength": 3,
      "pattern": "^P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+(\\.\\d+)?S)?)?$"
    }
  },
  "required": [
    "name"
  ],
  "unevaluatedProperties": false
}
