{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/drillerdb-com/json-schema/drillerdb-com-project-list-response-schema.json",
  "title": "ProjectListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/drillerdb-com-projects-api-openapi.yml#/components/schemas/ProjectListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Project"
      }
    },
    "meta": {
      "$ref": "#/$defs/ListMeta"
    },
    "links": {
      "$ref": "#/$defs/ListLinks"
    }
  },
  "required": [
    "data",
    "meta",
    "links"
  ],
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "line1": {
          "type": [
            "string",
            "null"
          ]
        },
        "line2": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "postal_code": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ListLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string"
        },
        "next": {
          "type": "string"
        }
      },
      "required": [
        "self"
      ]
    },
    "ListMeta": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        },
        "limit": {
          "type": "integer"
        },
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "request_id",
        "limit",
        "has_more",
        "next_cursor"
      ]
    },
    "Project": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "project_number": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "priority": {
          "type": [
            "integer",
            "null"
          ]
        },
        "customer_id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "customer_name": {
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/Address"
        },
        "drill_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "well_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_by": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "project_number",
        "title",
        "status",
        "customer_name",
        "address"
      ]
    }
  }
}