{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/File",
  "title": "File",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The ID of the File",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "The name of the File",
      "maxLength": 200,
      "minLength": 1
    },
    "description": {
      "type": "string",
      "description": "The description of the File",
      "maxLength": 2000,
      "minLength": 0
    },
    "type": {
      "type": "string",
      "description": "The File Type of the File",
      "enum": [
        "MACRO",
        "RECORDED_TRAFFIC",
        "SELENIUM",
        "WSDL",
        "SWAGGER",
        "CERTIFICATE",
        "GRAPHQL"
      ]
    },
    "locked": {
      "type": "boolean",
      "description": "The Locked property of the File"
    },
    "owner": {
      "$ref": "#/components/schemas/ReadOnlyIdResource"
    },
    "content_available": {
      "type": "boolean",
      "description": "If the File Content has been uploaded",
      "readOnly": true
    },
    "last_updated_by_user": {
      "$ref": "#/components/schemas/ReadOnlyIdResource"
    },
    "last_updated": {
      "type": "string",
      "description": "The time when the File was last updated",
      "example": "2021-08-03T14:07:37",
      "readOnly": true
    }
  },
  "required": [
    "locked",
    "name",
    "type"
  ]
}