{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-firebase/json-schema/google-firebase-connector-schema.json",
  "title": "Connector",
  "description": "Connector consists of a set of operations, i.e. queries and mutations.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-firebase-firebasedataconnect-projects-api-openapi.yml#/components/schemas/Connector",
  "type": "object",
  "properties": {
    "reconciling": {
      "description": "Output only. A field that if true, indicates that the system is working to compile and deploy the connector.",
      "type": "boolean",
      "readOnly": true
    },
    "uid": {
      "description": "Output only. System-assigned, unique identifier.",
      "readOnly": true,
      "type": "string"
    },
    "createTime": {
      "description": "Output only. [Output only] Create time stamp.",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "labels": {
      "description": "Optional. Labels as key value pairs.",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "etag": {
      "description": "Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)",
      "type": "string",
      "readOnly": true
    },
    "annotations": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Optional. Stores small amounts of arbitrary data.",
      "type": "object"
    },
    "displayName": {
      "type": "string",
      "description": "Optional. Mutable human-readable name. 63 character limit."
    },
    "updateTime": {
      "readOnly": true,
      "type": "string",
      "format": "google-datetime",
      "description": "Output only. [Output only] Update time stamp."
    },
    "clientCache": {
      "$ref": "#/$defs/ClientCache",
      "description": "Optional. The client cache settings of the connector."
    },
    "name": {
      "type": "string",
      "description": "Identifier. The relative resource name of the connector, in the format: ``` projects/{project}/locations/{location}/services/{service}/connectors/{connector} ```"
    },
    "source": {
      "$ref": "#/$defs/Source",
      "description": "Required. The source files that comprise the connector."
    }
  },
  "$defs": {
    "ClientCache": {
      "type": "object",
      "properties": {
        "strictValidationEnabled": {
          "description": "Optional. A field that, if true, enables stricter validation on the connector source code to make sure the operation response shapes are suitable for client-side caching. This can include additional errors and warnings. For example, using the same alias for different fields is disallowed, as it may cause conflicts or confusion with normalized caching. (This field is off by default for compatibility, but enabling it is highly recommended to catch common caching pitfalls.)",
          "type": "boolean"
        },
        "entityIdIncluded": {
          "type": "boolean",
          "description": "Optional. A field that, if true, means that responses served by this connector will include entityIds in GraphQL response extensions. This helps the client SDK cache responses in an improved way, known as \"normalized caching\", if caching is enabled on the client. Each entityId is a stable key based on primary key values. Therefore, this field should only be set to true if the primary keys of accessed tables do not contain sensitive information."
        }
      },
      "description": "Client caching settings of a connector."
    },
    "File": {
      "properties": {
        "path": {
          "type": "string",
          "description": "Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql)."
        },
        "content": {
          "type": "string",
          "description": "Required. The file's textual content."
        }
      },
      "description": "Individual files.",
      "type": "object"
    },
    "Source": {
      "description": "Used to represent a set of source files.",
      "type": "object",
      "properties": {
        "files": {
          "description": "Required. The files that comprise the source set.",
          "items": {
            "$ref": "#/$defs/File"
          },
          "type": "array"
        }
      }
    }
  }
}