{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/open-government-portugal/json-schema/open-government-portugal-topic-element-schema.json",
  "title": "TopicElement",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/open-government-portugal-topics-api-openapi.yml#/components/schemas/TopicElement",
  "properties": {
    "description": {
      "description": "The element description",
      "type": "string"
    },
    "element": {
      "allOf": [
        {
          "$ref": "#/$defs/ModelReference"
        }
      ],
      "description": "The element target object"
    },
    "extras": {
      "description": "Extras attributes as key-value pairs",
      "type": "object"
    },
    "id": {
      "description": "The element id",
      "type": "string"
    },
    "tags": {
      "description": "The element tags",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "title": {
      "description": "The element title",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ModelReference": {
      "properties": {
        "class": {
          "description": "The model class",
          "type": "string"
        },
        "id": {
          "description": "The object identifier",
          "type": "string"
        }
      },
      "required": [
        "class",
        "id"
      ],
      "type": "object"
    }
  }
}