{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/benchling/main/json-schema/benchling-barcode-validation-results-schema.json",
  "title": "BarcodeValidationResults",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benchling-inventory-api-openapi.yml#/components/schemas/BarcodeValidationResults",
  "properties": {
    "validationResults": {
      "items": {
        "$ref": "#/$defs/BarcodeValidationResult"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "BarcodeValidationResult": {
      "properties": {
        "barcode": {
          "description": "Barcode to validate.",
          "type": "string"
        },
        "isValid": {
          "description": "Whether the barcode is valid.",
          "type": "boolean"
        },
        "message": {
          "description": "If barcode is not valid, a message string explaining the error.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    }
  }
}