{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/merlonix-com/json-schema/merlonix-com-ssl-check-schema.json",
  "title": "SslCheck",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/merlonix-com-openapi.yml#/components/schemas/SslCheck",
  "type": "object",
  "required": [
    "kind",
    "id",
    "tenant_id",
    "asset_id",
    "checked_at",
    "status",
    "not_before",
    "not_after",
    "days_until_expiry",
    "issuer",
    "subject",
    "response_ms",
    "tls_version",
    "cipher_suite",
    "cipher_strength",
    "chain_length",
    "chain_complete",
    "chain_issues",
    "posture_observed",
    "posture_unobserved_reason"
  ],
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "ssl"
      ]
    },
    "id": {
      "type": "integer"
    },
    "tenant_id": {
      "type": "string",
      "format": "uuid"
    },
    "asset_id": {
      "type": "string",
      "format": "uuid"
    },
    "checked_at": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "enum": [
        "valid",
        "expiring_soon",
        "expired",
        "invalid",
        "unreachable",
        "error",
        "inconclusive"
      ]
    },
    "not_before": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "not_after": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "days_until_expiry": {
      "type": [
        "integer",
        "null"
      ]
    },
    "issuer": {
      "type": [
        "string",
        "null"
      ]
    },
    "subject": {
      "type": [
        "string",
        "null"
      ]
    },
    "response_ms": {
      "type": [
        "integer",
        "null"
      ]
    },
    "tls_version": {
      "type": [
        "string",
        "null"
      ]
    },
    "cipher_suite": {
      "type": [
        "string",
        "null"
      ]
    },
    "cipher_strength": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "strong",
        "acceptable",
        "weak",
        null
      ]
    },
    "chain_length": {
      "type": [
        "integer",
        "null"
      ]
    },
    "chain_complete": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "chain_issues": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "posture_observed": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "posture_unobserved_reason": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}