{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feranor-com/json-schema/feranor-com-version-report-schema.json",
  "title": "VersionReport",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feranor-com-sidecar-openapi.json#/components/schemas/VersionReport",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "product",
    "version",
    "profile",
    "platform",
    "deployment",
    "license"
  ],
  "properties": {
    "product": {
      "type": "string",
      "const": "Feranor PQC Sidecar"
    },
    "version": {
      "type": "string",
      "description": "1.0.0+<commit> for a release."
    },
    "profile": {
      "type": "string"
    },
    "platform": {
      "type": "string",
      "description": ".NET, the operating system and OpenSSL, as fpqc info prints them."
    },
    "deployment": {
      "type": "string",
      "enum": [
        "Default",
        "Regulated"
      ]
    },
    "license": {
      "$ref": "#/$defs/LicenseReport"
    }
  },
  "$defs": {
    "LicenseReport": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "status",
        "expiresSoon"
      ],
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "Valid",
            "Missing",
            "Invalid",
            "Expired",
            "NotVerifiable"
          ]
        },
        "message": {
          "type": "string"
        },
        "licenseId": {
          "type": "string"
        },
        "licensee": {
          "type": "string"
        },
        "edition": {
          "type": "string"
        },
        "expiresOn": {
          "type": "string",
          "format": "date"
        },
        "expiresSoon": {
          "type": "boolean"
        },
        "daysLeft": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}