{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Social Expert published research sample",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schemaVersion",
    "kind",
    "liveLookup",
    "audienceRequest",
    "measurementScope",
    "observedAt",
    "articleUrl",
    "trend",
    "limitations"
  ],
  "properties": {
    "schemaVersion": {
      "const": 1
    },
    "kind": {
      "const": "published_editorial_snapshot"
    },
    "liveLookup": {
      "const": false
    },
    "audienceRequest": {
      "type": "string"
    },
    "measurementScope": {
      "type": "string"
    },
    "observedAt": {
      "type": "string",
      "format": "date-time"
    },
    "articleUrl": {
      "type": "string",
      "format": "uri"
    },
    "trend": {
      "type": "object",
      "required": [
        "id",
        "name",
        "summary",
        "direction",
        "observation",
        "filmingSuggestions",
        "sounds"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 1
        },
        "name": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "direction": {
          "type": [
            "string",
            "null"
          ]
        },
        "observation": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "views": {
              "type": "integer",
              "minimum": 0
            },
            "observedAt": {
              "type": "string",
              "format": "date-time"
            },
            "sourceUrl": {
              "type": "string",
              "format": "uri"
            },
            "scope": {
              "type": "string"
            }
          }
        },
        "filmingSuggestions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sounds": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "title",
              "url"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
