text: Title: parameter from the `components/parameters` section makes openapi-python-client crash
  Body: **Describe the bug**
  While generating a client for my openapi.json file, the script crashes with internal errors.
  
  The problem seems to be related to a parameter defined in my `component/parameters` section. When i comment out this part of my openapi spec. The client can be generated without errors.
  
  ```json
  "components": {
      "parameters": {
          "macAddress": {
              "name": "macAddress",
              "in": "path",
              "required": true,
              "schema": {
                  "$ref": "#/components/schemas/MacAddress"
              },
              "description": "The MAC address of the dongle.\n"
          }
      }
  }
  ```
  
  **OpenAPI Spec File**. 
  
  [openapi.json](https://github.com/user-attachments/files/18390668/openapi.json)
  
  
  **Desktop (please complete the following information):**
   - OS: Ubuntu 24.04.1 LTS
   - Python Version: 3.12.3
   - openapi-python-client version: 0.22.0
  
  **Additional context**
  
  The full output of the crash [output.log](https://github.com/user-attachments/files/18390631/output.log).