{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexatron-io/json-schema/nexatron-io-metric-response-schema.json",
  "title": "MetricResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexatron-io-openapi.json#/components/schemas/MetricResponse",
  "properties": {
    "created_at": {
      "format": "date-time",
      "title": "Created At",
      "type": "string"
    },
    "denominator_ref": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Denominator Ref"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "description_localized": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description Localized"
    },
    "dimensions": {
      "items": {
        "type": "string"
      },
      "title": "Dimensions",
      "type": "array"
    },
    "display_name": {
      "title": "Display Name",
      "type": "string"
    },
    "display_name_localized": {
      "default": "",
      "title": "Display Name Localized",
      "type": "string"
    },
    "expression": {
      "title": "Expression",
      "type": "string"
    },
    "format": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Format"
    },
    "from_table": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "From Table"
    },
    "grain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grain"
    },
    "id": {
      "format": "uuid",
      "title": "Id",
      "type": "string"
    },
    "is_certified": {
      "title": "Is Certified",
      "type": "boolean"
    },
    "metric_type": {
      "title": "Metric Type",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "type": "string"
    },
    "numerator_ref": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Numerator Ref"
    },
    "owner_id": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Id"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "title": "Tags",
      "type": "array"
    },
    "tenant_id": {
      "format": "uuid",
      "title": "Tenant Id",
      "type": "string"
    },
    "translations": {
      "additionalProperties": true,
      "default": {},
      "title": "Translations",
      "type": "object"
    },
    "type_config": {
      "additionalProperties": true,
      "default": {},
      "title": "Type Config",
      "type": "object"
    },
    "updated_at": {
      "format": "date-time",
      "title": "Updated At",
      "type": "string"
    },
    "view_id": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "View Id"
    }
  },
  "required": [
    "id",
    "created_at",
    "updated_at",
    "tenant_id",
    "name",
    "display_name",
    "description",
    "metric_type",
    "expression",
    "view_id",
    "dimensions",
    "is_certified",
    "tags",
    "owner_id"
  ],
  "type": "object"
}