{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tender-agents-com/json-schema/tender-agents-com-gaeb-analysis-out-schema.json",
  "title": "GaebAnalysisOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tender-agents-com-gaeb-api-openapi.yml#/components/schemas/GaebAnalysisOut",
  "properties": {
    "exchange_phase": {
      "type": "string",
      "enum": [
        "X83",
        "X84"
      ],
      "title": "Exchange Phase"
    },
    "gaeb_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gaeb Version"
    },
    "project_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Name"
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Id"
    },
    "boq_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Boq Name"
    },
    "position_count": {
      "type": "integer",
      "title": "Position Count"
    },
    "sections": {
      "items": {
        "$ref": "#/$defs/GaebSectionSummaryOut"
      },
      "type": "array",
      "title": "Sections"
    },
    "positions": {
      "items": {
        "$ref": "#/$defs/GaebPositionOut"
      },
      "type": "array",
      "title": "Positions"
    }
  },
  "type": "object",
  "required": [
    "exchange_phase",
    "position_count"
  ],
  "$defs": {
    "GaebPositionOut": {
      "properties": {
        "section": {
          "type": "string",
          "title": "Section"
        },
        "ordinal": {
          "type": "string",
          "title": "Ordinal"
        },
        "short_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Short Text"
        },
        "long_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Long Text"
        },
        "quantity": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quantity"
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Unit"
        },
        "unit_price": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Unit Price"
        },
        "total_price": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total Price"
        }
      },
      "type": "object",
      "required": [
        "section",
        "ordinal"
      ],
      "title": "GaebPositionOut"
    },
    "GaebSectionSummaryOut": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "position_count": {
          "type": "integer",
          "title": "Position Count"
        }
      },
      "type": "object",
      "required": [
        "name",
        "position_count"
      ],
      "title": "GaebSectionSummaryOut"
    }
  }
}