{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/open-government-portugal/json-schema/open-government-portugal-catalog-schema-schema.json",
  "title": "CatalogSchema",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/open-government-portugal-datasets-api-openapi.yml#/components/schemas/CatalogSchema",
  "properties": {
    "consolidation_dataset_id": {
      "type": "string"
    },
    "contact": {
      "type": "string"
    },
    "datapackage_description": {
      "description": "Only present if the schema is inside a datapackage",
      "type": "string"
    },
    "datapackage_name": {
      "description": "Only present if the schema is inside a datapackage",
      "type": "string"
    },
    "datapackage_title": {
      "description": "Only present if the schema is inside a datapackage",
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "external_doc": {
      "type": "string"
    },
    "external_tool": {
      "description": "Link to tools to create a file with this schema",
      "type": "string"
    },
    "homepage": {
      "type": "string"
    },
    "labels": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "name": {
      "type": "string"
    },
    "schema_type": {
      "enum": [
        "tableschema",
        "datapackage",
        "jsonschema",
        "other"
      ],
      "type": "string"
    },
    "schema_url": {
      "description": "Often the link to the latest version",
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "versions": {
      "items": {
        "$ref": "#/$defs/CatalogSchemaVersion"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "CatalogSchemaExample": {
      "properties": {
        "path": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "CatalogSchemaVersion": {
      "properties": {
        "schema_url": {
          "type": "string"
        },
        "version_name": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}