{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/benchling/json-schema/RequestResponse.json",
  "title": "RequestResponse",
  "properties": {
    "results": {
      "items": {
        "$ref": "#/components/schemas/AssayResult"
      },
      "type": "array"
    },
    "samples": {
      "description": "Array of samples produced by the Legacy Request.",
      "items": {
        "properties": {
          "batch": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestResponseSamplesItemBatch"
              }
            ],
            "description": "The sample, if it is a batch resource. Null otherwise.",
            "nullable": true
          },
          "entity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestResponseSamplesItemEntity"
              }
            ],
            "description": "The sample, if it is an entity resource. Null otherwise.",
            "nullable": true
          },
          "status": {
            "description": "The status of the sample, based on the status of the stage run that generated it.",
            "enum": [
              "COMPLETED",
              "DISCARDED"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}