{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/disclosedlabs-com/json-schema/disclosedlabs-com-coa-schema.json",
  "title": "Coa",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/disclosedlabs-com-openapi.json#/components/schemas/Coa",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "fileUrl": {
      "type": "string"
    },
    "sourceUrl": {
      "type": "string"
    },
    "fileFormat": {
      "type": "string"
    },
    "publicationStatus": {
      "type": "string"
    },
    "ingestionSource": {
      "type": "string"
    },
    "peptideSlug": {
      "type": [
        "string",
        "null"
      ]
    },
    "peptideName": {
      "type": [
        "string",
        "null"
      ]
    },
    "labClaimed": {
      "type": [
        "string",
        "null"
      ]
    },
    "lotNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "reportNumber": {
      "type": [
        "string",
        "null"
      ]
    },
    "testedDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "reportedDate": {
      "type": [
        "string",
        "null"
      ]
    },
    "updatedAt": {
      "type": "string"
    },
    "purityPercent": {
      "type": [
        "number",
        "null"
      ]
    },
    "nmrContentPercent": {
      "type": [
        "number",
        "null"
      ]
    },
    "netPeptideContentMg": {
      "type": [
        "number",
        "null"
      ]
    },
    "labeledMg": {
      "type": [
        "number",
        "null"
      ]
    },
    "components": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "labeledAmount": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "measuredAmount": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "purityPercent": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "name",
              "labeledAmount",
              "measuredAmount",
              "purityPercent",
              "unit"
            ],
            "additionalProperties": false
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "componentsBasis": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasMassSpec": {
      "type": "boolean"
    },
    "hasFTIR": {
      "type": "boolean"
    },
    "hasNmr": {
      "type": "boolean"
    },
    "hasHplcIdentity": {
      "type": "boolean"
    },
    "hasEndotoxin": {
      "type": "boolean"
    },
    "endotoxinResult": {
      "type": [
        "string",
        "null"
      ]
    },
    "endotoxinValueEUmg": {
      "type": [
        "number",
        "null"
      ]
    },
    "hasSterility": {
      "type": "boolean"
    },
    "sterilityResult": {
      "type": [
        "string",
        "null"
      ]
    },
    "sterilityMethod": {
      "type": [
        "string",
        "null"
      ]
    },
    "sterilityMethodClass": {
      "type": "string"
    },
    "hasMicrobial": {
      "type": "boolean"
    },
    "microbialResult": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasResidualSolvents": {
      "type": "boolean"
    },
    "residualSolventsResult": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasHeavyMetals": {
      "type": "boolean"
    },
    "heavyMetalsResult": {
      "type": [
        "string",
        "null"
      ]
    },
    "endotoxin": {
      "type": "object",
      "properties": {
        "tested": {
          "type": "boolean"
        },
        "verdict": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "PASS",
                "FAIL",
                "INCONCLUSIVE"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "type": [
            "number",
            "null"
          ]
        },
        "operator": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "lt",
                "lte",
                "gt",
                "gte",
                "eq"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "raw": {
          "type": [
            "string",
            "null"
          ]
        },
        "analytes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "operator": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "lt",
                      "lte",
                      "gt",
                      "gte",
                      "eq"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "limit": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "raw": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "value",
              "operator",
              "unit",
              "limit",
              "raw"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "tested",
        "verdict",
        "value",
        "operator",
        "unit",
        "raw"
      ],
      "additionalProperties": false
    },
    "sterility": {
      "type": "object",
      "properties": {
        "tested": {
          "type": "boolean"
        },
        "verdict": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "PASS",
                "FAIL",
                "INCONCLUSIVE"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "type": [
            "number",
            "null"
          ]
        },
        "operator": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "lt",
                "lte",
                "gt",
                "gte",
                "eq"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "raw": {
          "type": [
            "string",
            "null"
          ]
        },
        "analytes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "operator": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "lt",
                      "lte",
                      "gt",
                      "gte",
                      "eq"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "limit": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "raw": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "value",
              "operator",
              "unit",
              "limit",
              "raw"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "tested",
        "verdict",
        "value",
        "operator",
        "unit",
        "raw"
      ],
      "additionalProperties": false
    },
    "microbial": {
      "type": "object",
      "properties": {
        "tested": {
          "type": "boolean"
        },
        "verdict": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "PASS",
                "FAIL",
                "INCONCLUSIVE"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "type": [
            "number",
            "null"
          ]
        },
        "operator": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "lt",
                "lte",
                "gt",
                "gte",
                "eq"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "raw": {
          "type": [
            "string",
            "null"
          ]
        },
        "analytes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "operator": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "lt",
                      "lte",
                      "gt",
                      "gte",
                      "eq"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "limit": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "raw": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "value",
              "operator",
              "unit",
              "limit",
              "raw"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "tested",
        "verdict",
        "value",
        "operator",
        "unit",
        "raw"
      ],
      "additionalProperties": false
    },
    "residualSolvents": {
      "type": "object",
      "properties": {
        "tested": {
          "type": "boolean"
        },
        "verdict": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "PASS",
                "FAIL",
                "INCONCLUSIVE"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "value": {
          "type": [
            "number",
            "null"
          ]
        },
        "operator": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "lt",
                "lte",
                "gt",
                "gte",
                "eq"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "raw": {
          "type": [
            "string",
            "null"
          ]
        },
        "analytes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "operator": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "lt",
                      "lte",
                      "gt",
                      "gte",
                      "eq"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "limit": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "raw": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "value",
              "operator",
              "unit",
              "limit",
              "raw"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "tested",
        "verdict",
        "value",
        "operator",
        "unit",
        "raw"
      ],
      "additionalProperties": false
    },
    "productForm": {
      "type": "string"
    },
    "labVerificationStatus": {
      "type": "string"
    },
    "mirrorUploadCount": {
      "type": "number"
    },
    "verificationCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "verificationUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "firstSeenAt": {
      "type": "string"
    },
    "lastSeenAt": {
      "type": "string"
    },
    "vendor": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "slug": {
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "slug",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "lab": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "slug": {
              "type": [
                "string",
                "null"
              ]
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "slug",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "heavyMetals": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ]
    },
    "signers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "severity",
          "detail"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "id",
    "fileUrl",
    "sourceUrl",
    "fileFormat",
    "publicationStatus",
    "ingestionSource",
    "peptideSlug",
    "peptideName",
    "labClaimed",
    "lotNumber",
    "reportNumber",
    "testedDate",
    "reportedDate",
    "updatedAt",
    "purityPercent",
    "nmrContentPercent",
    "netPeptideContentMg",
    "labeledMg",
    "components",
    "componentsBasis",
    "hasMassSpec",
    "hasFTIR",
    "hasNmr",
    "hasHplcIdentity",
    "hasEndotoxin",
    "endotoxinResult",
    "endotoxinValueEUmg",
    "hasSterility",
    "sterilityResult",
    "sterilityMethod",
    "sterilityMethodClass",
    "hasMicrobial",
    "microbialResult",
    "hasResidualSolvents",
    "residualSolventsResult",
    "hasHeavyMetals",
    "heavyMetalsResult",
    "endotoxin",
    "sterility",
    "microbial",
    "residualSolvents",
    "productForm",
    "labVerificationStatus",
    "mirrorUploadCount",
    "verificationCode",
    "verificationUrl",
    "firstSeenAt",
    "lastSeenAt",
    "vendor",
    "lab",
    "heavyMetals",
    "signers",
    "flags"
  ],
  "additionalProperties": false
}