{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stackit/main/json-schema/stackit-public-marketing-data-schema.json",
  "title": "PublicMarketingData",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stackit-pim-openapi.yml#/components/schemas/PublicMarketingData",
  "properties": {
    "advantages": {
      "description": "List of advantages of the product",
      "items": {
        "$ref": "#/$defs/MarketingAdvantage"
      },
      "type": "array"
    },
    "applications": {
      "description": "List of applications provided by the product",
      "items": {
        "$ref": "#/$defs/MarketingApplication"
      },
      "type": "array"
    },
    "functions": {
      "description": "List of functions provided by the product",
      "items": {
        "$ref": "#/$defs/MarketingFunction"
      },
      "type": "array"
    },
    "headline": {
      "description": "Short description of what the product delivers",
      "type": "string"
    },
    "id": {
      "description": "Unique identifier of the marketing product, which is object id from the DB",
      "type": [
        "string",
        "null"
      ]
    },
    "introductoryText": {
      "description": "Basic information of the product",
      "type": "string"
    },
    "language": {
      "description": "Language of the marketing data",
      "type": "string"
    },
    "longName": {
      "description": "Extended name of the product",
      "type": "string"
    },
    "shortName": {
      "description": "An abbreviated name of the product",
      "type": "string"
    },
    "stId": {
      "description": "Internal ID of the product in PIM",
      "type": "string"
    },
    "validStart": {
      "description": "Date when the current version was approved and became valid in PIM",
      "format": "date-time",
      "type": "string"
    },
    "version": {
      "description": "Number of the revision from PIM",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "MarketingAdvantage": {
      "properties": {
        "advantage": {
          "description": "Name of the advantage",
          "type": "string"
        },
        "position": {
          "description": "Description of the advantage",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "MarketingApplication": {
      "properties": {
        "application": {
          "description": "Description of the application",
          "type": "string"
        },
        "applicationTitle": {
          "description": "Title of the application",
          "type": "string"
        },
        "position": {
          "description": "Position of the application",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "MarketingFunction": {
      "properties": {
        "function": {
          "description": "Name of the function",
          "type": "string"
        },
        "position": {
          "description": "Position of the function",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}