{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cesium/json-schema/cesium-asset-element-metadata-schema.json",
  "title": "Asset Element",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cesium-asset-elements-api-openapi.yml#/components/schemas/AssetElementMetadata",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/ElementIdentifier"
    },
    "location": {
      "allOf": [
        {
          "$ref": "#/$defs/AssetElementLocation"
        }
      ],
      "description": "The geographic location of the element. This field is absent when the asset does not have a Geographic Coordinate System defined."
    },
    "properties": {
      "$ref": "#/$defs/AssetElementProperties"
    }
  },
  "required": [
    "id",
    "properties"
  ],
  "$defs": {
    "AssetElementLocation": {
      "type": "object",
      "description": "The geographic location and bounding sphere of an element.",
      "properties": {
        "center": {
          "$ref": "#/$defs/GeographicPoint"
        },
        "radius": {
          "type": "number",
          "description": "The radius of the bounding sphere in meters."
        }
      },
      "required": [
        "center",
        "radius"
      ]
    },
    "AssetElementProperties": {
      "type": "object",
      "description": "A flat key-value map of element properties. Only top-level primitive values (strings, numbers, booleans) are included.",
      "additionalProperties": true
    },
    "ElementIdentifier": {
      "type": "string",
      "description": "The unique identifier for an element within an asset.",
      "readOnly": true
    },
    "GeographicPoint": {
      "type": "object",
      "description": "A geographic point defined by longitude, latitude, and height.",
      "properties": {
        "longitude": {
          "type": "number",
          "description": "The longitude in degrees."
        },
        "latitude": {
          "type": "number",
          "description": "The latitude in degrees."
        },
        "height": {
          "type": "number",
          "description": "The height in meters."
        }
      },
      "required": [
        "longitude",
        "latitude",
        "height"
      ]
    }
  }
}