{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/disclosedlabs-com/json-schema/disclosedlabs-com-lab-schema.json",
  "title": "Lab",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/disclosedlabs-com-openapi.json#/components/schemas/Lab",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "website": {
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "iso17025": {
      "type": "boolean"
    },
    "accreditations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "isThirdParty": {
      "type": "boolean"
    },
    "verificationUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "logoUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "scores": {
      "type": "object",
      "properties": {
        "credibilityScore": {
          "type": [
            "number",
            "null"
          ]
        },
        "credibilityGrade": {
          "type": [
            "string",
            "null"
          ]
        },
        "graded": {
          "type": "boolean"
        },
        "trending": {
          "type": "object",
          "properties": {
            "score": {
              "type": [
                "number",
                "null"
              ]
            },
            "grade": {
              "type": [
                "string",
                "null"
              ]
            },
            "delta": {
              "type": [
                "number",
                "null"
              ]
            },
            "direction": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "score",
            "grade",
            "delta",
            "direction"
          ],
          "additionalProperties": false
        },
        "coaCount": {
          "type": "number"
        },
        "lastComputedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "credibilityScore",
        "credibilityGrade",
        "graded",
        "trending",
        "coaCount",
        "lastComputedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "id",
    "slug",
    "name",
    "aliases",
    "website",
    "domain",
    "country",
    "iso17025",
    "accreditations",
    "isThirdParty",
    "verificationUrl",
    "logoUrl",
    "scores"
  ],
  "additionalProperties": false
}