{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/Course/v1/schema.json",
  "title": "Course",
  "description": "Objects Grid Course Object. A course of study or training, such as a language course or a first aid training; its runs are Events whose additionalType is CourseInstance. Modeled in compliance with https://schema.org/Course.",
  "type": "object",
  "properties": {
    "at_context": {
      "description": "Schema context",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "https://schema.org"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_type": {
      "description": "The object type",
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "Course"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "at_id": {
      "description": "This Course's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>: its JSON-LD @id, which References point to. Set by the service.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "readOnly": true
    },
    "id": {
      "description": "The unique identifier for Course. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "identifier": {
      "description": "The unique identifier for Course. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "minLength": 0,
      "maxLength": 50,
      "readOnly": true
    },
    "name": {
      "description": "The Course name",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "description": {
      "description": "The Course description",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "url": {
      "description": "This Course URL. Assigned by the server.",
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "minLength": 1,
      "readOnly": true
    },
    "image": {
      "description": "image URL",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "courseCode": {
      "description": "The identifier of the course, e.g. CS101",
      "type": [
        "string",
        "null"
      ]
    },
    "coursePrerequisites": {
      "description": "What a participant should know or have done before",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "educationalCredentialAwarded": {
      "description": "The certificate or qualification the course leads to",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "numberOfCredits": {
      "description": "The credits the course earns",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0
    },
    "teaches": {
      "description": "The skills or knowledge it teaches",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "about": {
      "description": "Its subjects",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "inLanguage": {
      "description": "The language it is taught in, an IETF BCP 47 language code, e.g. en, de-AT",
      "type": [
        "string",
        "null"
      ],
      "minLength": 2,
      "maxLength": 35,
      "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$"
    },
    "provider": {
      "x-objectsgrid-erasure": "keep",
      "description": "Who offers the course: an Organization, a Place such as a school, or a Person",
      "x-objectsgrid-rangeIncludes": [
        "Organization",
        "Place",
        "Person"
      ],
      "anyOf": [
        {
          "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json"
        },
        {
          "type": "null"
        }
      ]
    },
    "hasCourseInstance": {
      "description": "The runs of the course, Events whose additionalType is CourseInstance. Computed, read-only: the objects whose Event.instanceOf points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "Event.instanceOf",
      "readOnly": true
    },
    "offers": {
      "description": "The Offers for the course. Computed, read-only: the objects whose Offer.itemOffered points to this object, listed from that type; never stored or written.",
      "x-objectsgrid-inverseOf": "Offer.itemOffered",
      "readOnly": true
    },
    "tags": {
      "description": "Tags an ABAC policy can decide on. A name may repeat; the same name and value appear once. Every stored object has them: created empty when not sent, kept by a replacement (PUT) that does not mention them, unchanged by a patch that does not mention them, cleared by null or [].",
      "type": "array",
      "default": [],
      "uniqueItems": true,
      "maxItems": 50,
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/Tag/v1/schema.json"
      }
    },
    "meta": {
      "description": "System-managed metadata for the object (version, audit fields). Assigned by the server.",
      "$ref": "https://objectsgrid.com/.well-known/objects-catalog/ObjectMeta/v1/schema.json",
      "readOnly": true
    }
  },
  "required": [
    "name"
  ],
  "unevaluatedProperties": false
}
