{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fillo-so/json-schema/fillo-so-drive-folder-listing-schema.json",
  "title": "DriveFolderListing",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fillo-so-storage-api-openapi.yml#/components/schemas/DriveFolderListing",
  "type": "object",
  "required": [
    "folder",
    "folders"
  ],
  "properties": {
    "folder": {
      "$ref": "#/$defs/DriveFolder"
    },
    "folders": {
      "type": "array",
      "description": "Writable My Drive folders on the connected account.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      }
    }
  },
  "$defs": {
    "DriveFolder": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "description": "The Google Drive folder a form's uploads land in. Both keys are null when Fillo manages the folder automatically."
    }
  }
}