{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/visor-vin/json-schema/visor-vin-spec-node-response-schema.json",
  "title": "SpecNodeResponse",
  "description": "Spec node response envelope, shared by every spec_ref depth.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/visor-vin-openapi.json#/components/schemas/SpecNodeResponse",
  "type": "object",
  "properties": {
    "data": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "make"
              ]
            },
            "spec_ref": {
              "type": "string",
              "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
            },
            "name": {
              "type": "string",
              "description": "Display name of this level alone: Ford, F-150, 2026, Lariat, or a configuration's full name."
            },
            "parent": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "spec_ref": {
                      "type": "string",
                      "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name of this level alone, such as Lariat for a trim."
                    }
                  },
                  "required": [
                    "spec_ref",
                    "name"
                  ],
                  "additionalProperties": false,
                  "description": "Another spec node."
                },
                {
                  "type": "null"
                }
              ],
              "description": "The node one level up; null for a make."
            },
            "children": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name of this level alone, such as Lariat for a trim."
                  }
                },
                "required": [
                  "spec_ref",
                  "name"
                ],
                "additionalProperties": false,
                "description": "Another spec node."
              },
              "description": "The nodes one level down: a make's models, a model's years, a year's trims, a trim's configurations. Empty for a configuration."
            },
            "models": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Model name."
                  },
                  "first_year": {
                    "description": "First model year in the catalog.",
                    "type": "number"
                  },
                  "last_year": {
                    "description": "Latest model year in the catalog.",
                    "type": "number"
                  }
                },
                "required": [
                  "spec_ref",
                  "name",
                  "first_year",
                  "last_year"
                ],
                "additionalProperties": false
              },
              "description": "The make's models."
            }
          },
          "required": [
            "level",
            "spec_ref",
            "name",
            "parent",
            "children",
            "models"
          ],
          "additionalProperties": false,
          "description": "A make."
        },
        {
          "type": "object",
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "model"
              ]
            },
            "spec_ref": {
              "type": "string",
              "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
            },
            "name": {
              "type": "string",
              "description": "Display name of this level alone: Ford, F-150, 2026, Lariat, or a configuration's full name."
            },
            "parent": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "spec_ref": {
                      "type": "string",
                      "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name of this level alone, such as Lariat for a trim."
                    }
                  },
                  "required": [
                    "spec_ref",
                    "name"
                  ],
                  "additionalProperties": false,
                  "description": "Another spec node."
                },
                {
                  "type": "null"
                }
              ],
              "description": "The node one level up; null for a make."
            },
            "children": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name of this level alone, such as Lariat for a trim."
                  }
                },
                "required": [
                  "spec_ref",
                  "name"
                ],
                "additionalProperties": false,
                "description": "Another spec node."
              },
              "description": "The nodes one level down: a make's models, a model's years, a year's trims, a trim's configurations. Empty for a configuration."
            },
            "years": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "year": {
                    "description": "Model year.",
                    "type": "number"
                  },
                  "year_label": {
                    "type": "string",
                    "description": "The catalog year, which is this node's year segment: 2026, or 2026.5 for a mid-year catalog of model year 2026."
                  },
                  "trim_count": {
                    "description": "Trims in the model year.",
                    "type": "number"
                  },
                  "configuration_count": {
                    "description": "Configurations in the model year.",
                    "type": "number"
                  }
                },
                "required": [
                  "spec_ref",
                  "year",
                  "year_label",
                  "trim_count",
                  "configuration_count"
                ],
                "additionalProperties": false
              },
              "description": "The model's years, newest first."
            }
          },
          "required": [
            "level",
            "spec_ref",
            "name",
            "parent",
            "children",
            "years"
          ],
          "additionalProperties": false,
          "description": "A model."
        },
        {
          "type": "object",
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "year"
              ]
            },
            "spec_ref": {
              "type": "string",
              "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
            },
            "name": {
              "type": "string",
              "description": "Display name of this level alone: Ford, F-150, 2026, Lariat, or a configuration's full name."
            },
            "parent": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "spec_ref": {
                      "type": "string",
                      "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name of this level alone, such as Lariat for a trim."
                    }
                  },
                  "required": [
                    "spec_ref",
                    "name"
                  ],
                  "additionalProperties": false,
                  "description": "Another spec node."
                },
                {
                  "type": "null"
                }
              ],
              "description": "The node one level up; null for a make."
            },
            "children": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name of this level alone, such as Lariat for a trim."
                  }
                },
                "required": [
                  "spec_ref",
                  "name"
                ],
                "additionalProperties": false,
                "description": "Another spec node."
              },
              "description": "The nodes one level down: a make's models, a model's years, a year's trims, a trim's configurations. Empty for a configuration."
            },
            "trims": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Trim name."
                  },
                  "configuration_count": {
                    "description": "Configurations of the trim.",
                    "type": "number"
                  },
                  "starting_msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Lowest configuration MSRP of the trim. In whole US dollars; null when the catalog has no price, including no-charge items."
                  }
                },
                "required": [
                  "spec_ref",
                  "name",
                  "configuration_count",
                  "starting_msrp"
                ],
                "additionalProperties": false
              },
              "description": "The year's trims."
            },
            "configurations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Configuration name, such as Lariat 4x4 SuperCrew 5.5ft Bed 3.5L V6 Turbo."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer model or configuration code, when the catalog records one."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Base MSRP before options and destination. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "destination_charge": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Destination charge. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "trim": {
                    "type": "string",
                    "description": "spec_ref of the configuration's trim."
                  }
                },
                "required": [
                  "spec_ref",
                  "name",
                  "code",
                  "msrp",
                  "destination_charge",
                  "trim"
                ],
                "additionalProperties": false
              },
              "description": "Every configuration of the year."
            },
            "options": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Option slug; the same value the option_slug listing filter takes."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer option code, when the catalog records one."
                  },
                  "name": {
                    "type": "string",
                    "description": "Option name."
                  },
                  "category": {
                    "type": "string",
                    "description": "Option category, such as package, exterior_accessory, interior_accessory, wheel, audio, safety, exterior_color, or interior_color."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Option price. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "includes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of the options this one includes, such as a package's contents."
                  },
                  "requires": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ],
                      "description": "An option slug, or a list of option slugs of which any one satisfies the requirement."
                    },
                    "description": "What this option requires: every entry must be met; an entry that is a list is met by any one of its slugs."
                  },
                  "excludes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of options this one cannot be combined with."
                  },
                  "base_color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Colors only: the base color family, such as black or blue."
                  },
                  "paint_finish": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Exterior colors only: the paint finish, such as metallic or pearl."
                  },
                  "availability": {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "standard",
                            "optional",
                            "unavailable"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "standard, optional, or unavailable on the trim; null when unknown. Optional when the option costs extra or depends on the configuration."
                    },
                    "description": "Availability on each trim of the year, keyed by trim slug (the last segment of the trim's spec_ref)."
                  }
                },
                "required": [
                  "slug",
                  "code",
                  "name",
                  "category",
                  "msrp",
                  "includes",
                  "requires",
                  "excludes",
                  "availability"
                ],
                "additionalProperties": false,
                "description": "An option or color the model year offers. Rules (includes, requires, excludes) are collected across the year's configurations; read the configuration for one build's rules."
              },
              "description": "Options the year offers, colors aside, with availability per trim."
            },
            "colors": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Option slug; the same value the option_slug listing filter takes."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer option code, when the catalog records one."
                  },
                  "name": {
                    "type": "string",
                    "description": "Option name."
                  },
                  "category": {
                    "type": "string",
                    "description": "Option category, such as package, exterior_accessory, interior_accessory, wheel, audio, safety, exterior_color, or interior_color."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Option price. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "includes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of the options this one includes, such as a package's contents."
                  },
                  "requires": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ],
                      "description": "An option slug, or a list of option slugs of which any one satisfies the requirement."
                    },
                    "description": "What this option requires: every entry must be met; an entry that is a list is met by any one of its slugs."
                  },
                  "excludes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of options this one cannot be combined with."
                  },
                  "base_color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Colors only: the base color family, such as black or blue."
                  },
                  "paint_finish": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Exterior colors only: the paint finish, such as metallic or pearl."
                  },
                  "availability": {
                    "type": "object",
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "standard",
                            "optional",
                            "unavailable"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "standard, optional, or unavailable on the trim; null when unknown. Optional when the option costs extra or depends on the configuration."
                    },
                    "description": "Availability on each trim of the year, keyed by trim slug (the last segment of the trim's spec_ref)."
                  }
                },
                "required": [
                  "slug",
                  "code",
                  "name",
                  "category",
                  "msrp",
                  "includes",
                  "requires",
                  "excludes",
                  "availability"
                ],
                "additionalProperties": false,
                "description": "An option or color the model year offers. Rules (includes, requires, excludes) are collected across the year's configurations; read the configuration for one build's rules."
              },
              "description": "Exterior and interior colors, with availability per trim."
            }
          },
          "required": [
            "level",
            "spec_ref",
            "name",
            "parent",
            "children",
            "trims",
            "configurations",
            "options",
            "colors"
          ],
          "additionalProperties": false,
          "description": "A model year."
        },
        {
          "type": "object",
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "trim"
              ]
            },
            "spec_ref": {
              "type": "string",
              "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
            },
            "name": {
              "type": "string",
              "description": "Display name of this level alone: Ford, F-150, 2026, Lariat, or a configuration's full name."
            },
            "parent": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "spec_ref": {
                      "type": "string",
                      "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name of this level alone, such as Lariat for a trim."
                    }
                  },
                  "required": [
                    "spec_ref",
                    "name"
                  ],
                  "additionalProperties": false,
                  "description": "Another spec node."
                },
                {
                  "type": "null"
                }
              ],
              "description": "The node one level up; null for a make."
            },
            "children": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name of this level alone, such as Lariat for a trim."
                  }
                },
                "required": [
                  "spec_ref",
                  "name"
                ],
                "additionalProperties": false,
                "description": "Another spec node."
              },
              "description": "The nodes one level down: a make's models, a model's years, a year's trims, a trim's configurations. Empty for a configuration."
            },
            "configurations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Configuration name, such as Lariat 4x4 SuperCrew 5.5ft Bed 3.5L V6 Turbo."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer model or configuration code, when the catalog records one."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Base MSRP before options and destination. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "destination_charge": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Destination charge. In whole US dollars; null when the catalog has no price, including no-charge items."
                  }
                },
                "required": [
                  "spec_ref",
                  "name",
                  "code",
                  "msrp",
                  "destination_charge"
                ],
                "additionalProperties": false,
                "description": "A configuration: one drivable build of a trim (drivetrain, body, engine, and similar axes)."
              },
              "description": "The trim's configurations."
            },
            "options": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Option slug; the same value the option_slug listing filter takes."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer option code, when the catalog records one."
                  },
                  "name": {
                    "type": "string",
                    "description": "Option name."
                  },
                  "category": {
                    "type": "string",
                    "description": "Option category, such as package, exterior_accessory, interior_accessory, wheel, audio, safety, exterior_color, or interior_color."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Option price. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "includes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of the options this one includes, such as a package's contents."
                  },
                  "requires": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ],
                      "description": "An option slug, or a list of option slugs of which any one satisfies the requirement."
                    },
                    "description": "What this option requires: every entry must be met; an entry that is a list is met by any one of its slugs."
                  },
                  "excludes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of options this one cannot be combined with."
                  },
                  "base_color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Colors only: the base color family, such as black or blue."
                  },
                  "paint_finish": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Exterior colors only: the paint finish, such as metallic or pearl."
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "optional"
                    ],
                    "description": "standard when included, optional when it can be added."
                  }
                },
                "required": [
                  "slug",
                  "code",
                  "name",
                  "category",
                  "msrp",
                  "includes",
                  "requires",
                  "excludes",
                  "status"
                ],
                "additionalProperties": false,
                "description": "A standard or optional option or color."
              },
              "description": "Options standard or optional on the trim, colors aside. Optional when the option costs extra or depends on the configuration. Prices are the model year's."
            },
            "colors": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Option slug; the same value the option_slug listing filter takes."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer option code, when the catalog records one."
                  },
                  "name": {
                    "type": "string",
                    "description": "Option name."
                  },
                  "category": {
                    "type": "string",
                    "description": "Option category, such as package, exterior_accessory, interior_accessory, wheel, audio, safety, exterior_color, or interior_color."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Option price. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "includes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of the options this one includes, such as a package's contents."
                  },
                  "requires": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ],
                      "description": "An option slug, or a list of option slugs of which any one satisfies the requirement."
                    },
                    "description": "What this option requires: every entry must be met; an entry that is a list is met by any one of its slugs."
                  },
                  "excludes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of options this one cannot be combined with."
                  },
                  "base_color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Colors only: the base color family, such as black or blue."
                  },
                  "paint_finish": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Exterior colors only: the paint finish, such as metallic or pearl."
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "optional"
                    ],
                    "description": "standard when included, optional when it can be added."
                  }
                },
                "required": [
                  "slug",
                  "code",
                  "name",
                  "category",
                  "msrp",
                  "includes",
                  "requires",
                  "excludes",
                  "status"
                ],
                "additionalProperties": false,
                "description": "A standard or optional option or color."
              },
              "description": "Colors offered on the trim."
            }
          },
          "required": [
            "level",
            "spec_ref",
            "name",
            "parent",
            "children",
            "configurations",
            "options",
            "colors"
          ],
          "additionalProperties": false,
          "description": "A trim."
        },
        {
          "type": "object",
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "configuration"
              ]
            },
            "spec_ref": {
              "type": "string",
              "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
            },
            "name": {
              "type": "string",
              "description": "Display name of this level alone: Ford, F-150, 2026, Lariat, or a configuration's full name."
            },
            "parent": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "spec_ref": {
                      "type": "string",
                      "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name of this level alone, such as Lariat for a trim."
                    }
                  },
                  "required": [
                    "spec_ref",
                    "name"
                  ],
                  "additionalProperties": false,
                  "description": "Another spec node."
                },
                {
                  "type": "null"
                }
              ],
              "description": "The node one level up; null for a make."
            },
            "children": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "spec_ref": {
                    "type": "string",
                    "description": "OpenSpec spec_ref: us/{make}/{model}/{year}/{trim}/{configuration}, cut at any depth. Take refs from responses; do not build them from names."
                  },
                  "name": {
                    "type": "string",
                    "description": "Display name of this level alone, such as Lariat for a trim."
                  }
                },
                "required": [
                  "spec_ref",
                  "name"
                ],
                "additionalProperties": false,
                "description": "Another spec node."
              },
              "description": "The nodes one level down: a make's models, a model's years, a year's trims, a trim's configurations. Empty for a configuration."
            },
            "code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Manufacturer model or configuration code, when the catalog records one."
            },
            "msrp": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Base MSRP before options and destination. In whole US dollars; null when the catalog has no price, including no-charge items."
            },
            "destination_charge": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Destination charge. In whole US dollars; null when the catalog has no price, including no-charge items."
            },
            "axis_values": {
              "type": "object",
              "description": "What sets this configuration apart within its trim, such as drivetrain, engine, body_style, bed, or wheelbase."
            },
            "attributes": {
              "type": "object",
              "description": "Resolved specifications as the catalog records them, grouped by area: powertrain (engine, horsepower, torque_lb_ft, transmission, drivetrain), fuel_economy, dimensions, capacities, towing, exterior, interior, infotainment, safety, warranty, and more. Fill varies by make and model; a missing key means unknown."
            },
            "options": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Option slug; the same value the option_slug listing filter takes."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer option code, when the catalog records one."
                  },
                  "name": {
                    "type": "string",
                    "description": "Option name."
                  },
                  "category": {
                    "type": "string",
                    "description": "Option category, such as package, exterior_accessory, interior_accessory, wheel, audio, safety, exterior_color, or interior_color."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Option price. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "includes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of the options this one includes, such as a package's contents."
                  },
                  "requires": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ],
                      "description": "An option slug, or a list of option slugs of which any one satisfies the requirement."
                    },
                    "description": "What this option requires: every entry must be met; an entry that is a list is met by any one of its slugs."
                  },
                  "excludes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of options this one cannot be combined with."
                  },
                  "base_color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Colors only: the base color family, such as black or blue."
                  },
                  "paint_finish": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Exterior colors only: the paint finish, such as metallic or pearl."
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "optional"
                    ],
                    "description": "standard when included, optional when it can be added."
                  }
                },
                "required": [
                  "slug",
                  "code",
                  "name",
                  "category",
                  "msrp",
                  "includes",
                  "requires",
                  "excludes",
                  "status"
                ],
                "additionalProperties": false,
                "description": "A standard or optional option or color."
              },
              "description": "Options standard or optional on this configuration, colors aside, with this configuration's prices and rules."
            },
            "colors": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "description": "Option slug; the same value the option_slug listing filter takes."
                  },
                  "code": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Manufacturer option code, when the catalog records one."
                  },
                  "name": {
                    "type": "string",
                    "description": "Option name."
                  },
                  "category": {
                    "type": "string",
                    "description": "Option category, such as package, exterior_accessory, interior_accessory, wheel, audio, safety, exterior_color, or interior_color."
                  },
                  "msrp": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Option price. In whole US dollars; null when the catalog has no price, including no-charge items."
                  },
                  "includes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of the options this one includes, such as a package's contents."
                  },
                  "requires": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      ],
                      "description": "An option slug, or a list of option slugs of which any one satisfies the requirement."
                    },
                    "description": "What this option requires: every entry must be met; an entry that is a list is met by any one of its slugs."
                  },
                  "excludes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Slugs of options this one cannot be combined with."
                  },
                  "base_color": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Colors only: the base color family, such as black or blue."
                  },
                  "paint_finish": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Exterior colors only: the paint finish, such as metallic or pearl."
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "optional"
                    ],
                    "description": "standard when included, optional when it can be added."
                  }
                },
                "required": [
                  "slug",
                  "code",
                  "name",
                  "category",
                  "msrp",
                  "includes",
                  "requires",
                  "excludes",
                  "status"
                ],
                "additionalProperties": false,
                "description": "A standard or optional option or color."
              },
              "description": "Colors offered on this configuration, with its prices."
            }
          },
          "required": [
            "level",
            "spec_ref",
            "name",
            "parent",
            "children",
            "code",
            "msrp",
            "destination_charge",
            "axis_values",
            "attributes",
            "options",
            "colors"
          ],
          "additionalProperties": false,
          "description": "A configuration."
        }
      ],
      "description": "A spec node. level says which payload it carries."
    },
    "meta": {
      "type": "object",
      "properties": {
        "release": {
          "type": "string",
          "description": "OpenSpec release (manifest SHA) the make is served from. Listings carry spec_refs from the same release."
        },
        "attribution": {
          "type": "string",
          "description": "ODbL attribution to show where you display or redistribute this data."
        },
        "explorer_url": {
          "type": "string",
          "description": "The matching page on the OpenSpec Explorer."
        }
      },
      "required": [
        "release",
        "attribution",
        "explorer_url"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "additionalProperties": false
}