{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-tag-suggestions-schema.json",
  "title": "TagSuggestions",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-favorites-api-openapi.yml#/components/schemas/TagSuggestions",
  "type": "object",
  "properties": {
    "current": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tags already on the artifact."
    },
    "suggested": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tag": {
            "type": "string"
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "tag",
          "count"
        ]
      },
      "description": "Tags from similar artifacts, most-shared first; excludes current tags."
    },
    "vocabulary": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tag": {
            "type": "string"
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "tag",
          "count"
        ]
      },
      "description": "Every tag in the workspace with its usage count, most-used first."
    }
  },
  "required": [
    "current",
    "suggested",
    "vocabulary"
  ]
}