{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/4chems-com/json-schema/4chems-com-consent-out-schema.json",
  "title": "ConsentOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/4chems-com-consents-api-openapi.yml#/components/schemas/ConsentOut",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "subject_sub": {
      "type": "string",
      "title": "Subject Sub"
    },
    "tenant_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tenant Id"
    },
    "document_code": {
      "type": "string",
      "title": "Document Code"
    },
    "document_version": {
      "type": "string",
      "title": "Document Version"
    },
    "granted_at": {
      "type": "string",
      "format": "date-time",
      "title": "Granted At"
    },
    "source": {
      "type": "string",
      "title": "Source"
    }
  },
  "type": "object",
  "required": [
    "id",
    "subject_sub",
    "document_code",
    "document_version",
    "granted_at",
    "source"
  ]
}