{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fieldrobin-com/json-schema/fieldrobin-com-government-opportunity-detail-schema.json",
  "title": "GovernmentOpportunityDetail",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fieldrobin-com-openapi.json#/components/schemas/GovernmentOpportunityDetail",
  "allOf": [
    {
      "$ref": "#/$defs/GovernmentOpportunityPublic"
    },
    {
      "type": "object",
      "properties": {
        "solicitation_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "related_notice": {
          "type": [
            "string",
            "null"
          ]
        },
        "contract_line_item_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "base_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "archive_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "archive_policy": {
          "type": [
            "string",
            "null"
          ]
        },
        "department": {
          "type": [
            "string",
            "null"
          ]
        },
        "subtier": {
          "type": [
            "string",
            "null"
          ]
        },
        "office": {
          "type": [
            "string",
            "null"
          ]
        },
        "organization_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "organization_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "full_parent_path_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "naics_display": {
          "type": [
            "string",
            "null"
          ]
        },
        "classification_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "product_service_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "set_aside": {
          "type": [
            "string",
            "null"
          ]
        },
        "set_aside_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "place_of_performance": {
          "type": "object",
          "properties": {
            "street": {
              "type": [
                "string",
                "null"
              ]
            },
            "street_2": {
              "type": [
                "string",
                "null"
              ]
            },
            "city": {
              "type": [
                "string",
                "null"
              ]
            },
            "state": {
              "type": [
                "string",
                "null"
              ]
            },
            "zip": {
              "type": [
                "string",
                "null"
              ]
            },
            "country": {
              "type": [
                "string",
                "null"
              ]
            },
            "formatted": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "office_address": {
          "type": "object",
          "properties": {
            "street": {
              "type": [
                "string",
                "null"
              ]
            },
            "street_2": {
              "type": [
                "string",
                "null"
              ]
            },
            "city": {
              "type": [
                "string",
                "null"
              ]
            },
            "state": {
              "type": [
                "string",
                "null"
              ]
            },
            "zip": {
              "type": [
                "string",
                "null"
              ]
            },
            "country": {
              "type": [
                "string",
                "null"
              ]
            },
            "formatted": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "award": {
          "type": "object",
          "properties": {
            "amount": {
              "type": [
                "string",
                "null"
              ]
            },
            "date": {
              "type": [
                "string",
                "null"
              ],
              "format": "date-time"
            },
            "awardee_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "awardee_uei": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "point_of_contact": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "resource_links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "type": "string"
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "link",
                  "file"
                ]
              },
              "resource_id": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        },
        "source_link": {
          "type": [
            "string",
            "null"
          ]
        },
        "description_cached": {
          "type": [
            "string",
            "null"
          ]
        },
        "sam_gov_public_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "additional_info_link": {
          "type": [
            "string",
            "null"
          ]
        },
        "trade_tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fit_score": {
          "type": [
            "number",
            "null"
          ]
        },
        "saved": {
          "type": "boolean"
        }
      }
    }
  ],
  "$defs": {
    "GovernmentOpportunityPublic": {
      "type": "object",
      "required": [
        "id",
        "title",
        "status"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "notice_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": "string"
        },
        "organization": {
          "type": [
            "string",
            "null"
          ]
        },
        "place_city": {
          "type": [
            "string",
            "null"
          ]
        },
        "place_state": {
          "type": [
            "string",
            "null"
          ]
        },
        "naics_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "naics_display": {
          "type": [
            "string",
            "null"
          ]
        },
        "classification_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "product_service_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "posted_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "response_deadline": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "set_aside": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "is_actionable": {
          "type": "boolean"
        }
      }
    }
  }
}