{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "cluster": {
          "properties": {
            "name": {
              "default": "",
              "type": "string"
            }
          },
          "type": "object",
          "x-kubernetes-map-type": "atomic"
        },
        "dbname": {
          "type": "string",
          "x-kubernetes-validations": [
            {
              "message": "dbname is immutable",
              "rule": "self == oldSelf"
            }
          ]
        },
        "externalClusterName": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "x-kubernetes-validations": [
            {
              "message": "name is immutable",
              "rule": "self == oldSelf"
            }
          ]
        },
        "parameters": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "publicationDBName": {
          "type": "string"
        },
        "publicationName": {
          "type": "string"
        },
        "subscriptionReclaimPolicy": {
          "default": "retain",
          "enum": [
            "delete",
            "retain"
          ],
          "type": "string"
        }
      },
      "required": [
        "cluster",
        "dbname",
        "externalClusterName",
        "name",
        "publicationName"
      ],
      "type": "object"
    },
    "status": {
      "properties": {
        "applied": {
          "type": "boolean"
        },
        "message": {
          "type": "string"
        },
        "observedGeneration": {
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
