{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "commonName": {
          "type": "string"
        },
        "dnsNames": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-kubernetes-list-type": "atomic"
        },
        "duration": {
          "type": "string"
        },
        "ipAddresses": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "x-kubernetes-list-type": "atomic"
        },
        "issuerRef": {
          "properties": {
            "group": {
              "type": "string"
            },
            "kind": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        },
        "profile": {
          "type": "string"
        },
        "request": {
          "format": "byte",
          "type": "string"
        }
      },
      "required": [
        "issuerRef",
        "request"
      ],
      "type": "object"
    },
    "status": {
      "properties": {
        "authorizations": {
          "items": {
            "properties": {
              "challenges": {
                "items": {
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "type",
                    "url"
                  ],
                  "type": "object"
                },
                "type": "array",
                "x-kubernetes-list-type": "atomic"
              },
              "identifier": {
                "type": "string"
              },
              "initialState": {
                "enum": [
                  "valid",
                  "ready",
                  "pending",
                  "processing",
                  "invalid",
                  "expired",
                  "errored"
                ],
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "wildcard": {
                "type": "boolean"
              }
            },
            "required": [
              "url"
            ],
            "type": "object"
          },
          "type": "array",
          "x-kubernetes-list-type": "atomic"
        },
        "certificate": {
          "format": "byte",
          "type": "string"
        },
        "failureTime": {
          "format": "date-time",
          "type": "string"
        },
        "finalizeURL": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "state": {
          "enum": [
            "valid",
            "ready",
            "pending",
            "processing",
            "invalid",
            "expired",
            "errored"
          ],
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
