{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fluidtopics/json-schema/fluidtopics-get-api-khub-maps-mapid-rating-response-schema.json",
  "title": "GetApiKhubMapsMapidRatingResponse",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/fluidtopics-openapi-generated.yml#/components/schemas/GetApiKhubMapsMapidRatingResponse",
  "type": "object",
  "properties": {
    "publication": {
      "type": "object",
      "description": "Information about the map's rating."
    },
    "publication.type": {
      "type": "string",
      "description": "The types of ratings an administrator has enabled for this map. Accepted values are STARS, LIKE, DICHOTOMOUS, and NO_RATING."
    },
    "publication.rating": {
      "type": "object",
      "description": "If the user rated the map, their most recent rating is returned."
    },
    "publication.rating.date": {
      "type": "string",
      "description": "The date when the user last rated the map."
    },
    "publication.rating.type": {
      "type": "string",
      "description": "The rating's type. May differ from the current rating type if the portal configuration changed since the last rating. Accepted values are STARS, LIKE, and DICHOTOMOUS."
    },
    "publication.rating.value": {
      "type": "number",
      "description": "The rating's value. Rating values depend on rating types (STARS: 1 to 5, LIKE: 0 or 1, DICHOTOMOUS: 0 or 1)."
    },
    "topics": {
      "type": "object",
      "description": "Information about the topics and their ratings."
    },
    "topics.type": {
      "type": "string",
      "description": "The types of ratings an administrator has enabled for the map's topics. Accepted values are STARS, LIKE, DICHOTOMOUS, and NO_RATING."
    },
    "topics.ratings": {
      "type": "array",
      "description": "An array of topic ratings for the map. Can be empty."
    },
    "topics.ratings[].tocId": {
      "type": "string",
      "description": "The topic's identifier based on its position in the table of contents."
    },
    "topics.ratings[].date": {
      "type": "string",
      "description": "The date when the user last rated the topic."
    },
    "topics.ratings[].type": {
      "type": "string",
      "description": "The rating's type. May differ from the current rating type if the portal configuration changed since last rating. Accepted values are STARS, LIKE, and DICHOTOMOUS."
    },
    "topics.ratings[].value": {
      "type": "number",
      "description": "The rating's value. Rating values depend on rating types (STARS: 1 to 5, LIKE: 0 or 1, DICHOTOMOUS: 0 or 1)."
    }
  }
}