{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ResourceContract",
  "title": "ResourceContract",
  "required": [
    "license",
    "url"
  ],
  "type": "object",
  "properties": {
    "url": {
      "minLength": 1,
      "type": "string",
      "description": "URL of the resource"
    },
    "webUrl": {
      "type": "string",
      "description": "URL of web-page containing the resource",
      "nullable": true
    },
    "author": {
      "type": "string",
      "description": "Author name of the resource",
      "nullable": true
    },
    "title": {
      "type": "string",
      "description": "Title of the resource",
      "nullable": true
    },
    "description": {
      "type": "string",
      "description": "Description of the resource",
      "nullable": true
    },
    "license": {
      "$ref": "#/components/schemas/LicenseType"
    },
    "htmlAttributions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Attributions maintaining copyright, ownership and other legal information adjusted for displaying\r\nas HTML. Each element represent one line.",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "description": "Single media resource data"
}