{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/spacex/refs/heads/main/json-structure/spacex-launchpad-structure.json",
  "name": "SpaceX Launchpad",
  "description": "A SpaceX launch pad. Derived from the r-spacex/SpaceX-API mongoose model.",
  "x-schema-source": "documentation",
  "x-source-url": "https://github.com/r-spacex/SpaceX-API/tree/master/docs",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "nullable": true
    },
    "full_name": {
      "type": "string",
      "nullable": true
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "unknown",
        "retired",
        "lost",
        "under construction"
      ]
    },
    "locality": {
      "type": "string",
      "nullable": true
    },
    "region": {
      "type": "string",
      "nullable": true
    },
    "timezone": {
      "type": "string",
      "nullable": true
    },
    "latitude": {
      "type": "double",
      "nullable": true
    },
    "longitude": {
      "type": "double",
      "nullable": true
    },
    "launch_attempts": {
      "type": "int32",
      "default": 0
    },
    "launch_successes": {
      "type": "int32",
      "default": 0
    },
    "rockets": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "launches": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "status"
  ]
}