{
  "$ref": "#/definitions/well-known",
  "definitions": {
    "well-known": {
      "type": "object",
      "properties": {
        "ocp": {
          "type": "object",
          "properties": {
            "version": {
              "type": "string",
              "pattern": "^\\d+\\.\\d+$"
            }
          },
          "required": [
            "version"
          ],
          "additionalProperties": false
        },
        "issuer": {
          "type": "string",
          "format": "uri"
        },
        "jwks_uri": {
          "type": "string",
          "format": "uri"
        },
        "ws_endpoint": {
          "type": "string",
          "format": "uri"
        },
        "profiles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "enum": [
                  "core",
                  "embed",
                  "companion",
                  "provider"
                ]
              },
              "version": {
                "type": "string",
                "pattern": "^\\d+\\.\\d+$"
              }
            },
            "required": [
              "name",
              "version"
            ],
            "additionalProperties": false
          },
          "minItems": 1
        }
      },
      "required": [
        "ocp",
        "issuer",
        "jwks_uri",
        "ws_endpoint",
        "profiles"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://schwaizer.ch/ocp/schemas/1.0/well-known.json"
}
