{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "controlPlane": {
          "properties": {
            "machineInfrastructure": {
              "properties": {
                "ref": {
                  "properties": {
                    "apiVersion": {
                      "type": "string"
                    },
                    "fieldPath": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "namespace": {
                      "type": "string"
                    },
                    "resourceVersion": {
                      "type": "string"
                    },
                    "uid": {
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-kubernetes-map-type": "atomic"
                }
              },
              "required": [
                "ref"
              ],
              "type": "object"
            },
            "metadata": {
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "ref": {
              "properties": {
                "apiVersion": {
                  "type": "string"
                },
                "fieldPath": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "namespace": {
                  "type": "string"
                },
                "resourceVersion": {
                  "type": "string"
                },
                "uid": {
                  "type": "string"
                }
              },
              "type": "object",
              "x-kubernetes-map-type": "atomic"
            }
          },
          "required": [
            "ref"
          ],
          "type": "object"
        },
        "infrastructure": {
          "properties": {
            "ref": {
              "properties": {
                "apiVersion": {
                  "type": "string"
                },
                "fieldPath": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "namespace": {
                  "type": "string"
                },
                "resourceVersion": {
                  "type": "string"
                },
                "uid": {
                  "type": "string"
                }
              },
              "type": "object",
              "x-kubernetes-map-type": "atomic"
            }
          },
          "required": [
            "ref"
          ],
          "type": "object"
        },
        "workers": {
          "properties": {
            "machineDeployments": {
              "items": {
                "properties": {
                  "class": {
                    "type": "string"
                  },
                  "template": {
                    "properties": {
                      "bootstrap": {
                        "properties": {
                          "ref": {
                            "properties": {
                              "apiVersion": {
                                "type": "string"
                              },
                              "fieldPath": {
                                "type": "string"
                              },
                              "kind": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "namespace": {
                                "type": "string"
                              },
                              "resourceVersion": {
                                "type": "string"
                              },
                              "uid": {
                                "type": "string"
                              }
                            },
                            "type": "object",
                            "x-kubernetes-map-type": "atomic"
                          }
                        },
                        "required": [
                          "ref"
                        ],
                        "type": "object"
                      },
                      "infrastructure": {
                        "properties": {
                          "ref": {
                            "properties": {
                              "apiVersion": {
                                "type": "string"
                              },
                              "fieldPath": {
                                "type": "string"
                              },
                              "kind": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "namespace": {
                                "type": "string"
                              },
                              "resourceVersion": {
                                "type": "string"
                              },
                              "uid": {
                                "type": "string"
                              }
                            },
                            "type": "object",
                            "x-kubernetes-map-type": "atomic"
                          }
                        },
                        "required": [
                          "ref"
                        ],
                        "type": "object"
                      },
                      "metadata": {
                        "properties": {
                          "annotations": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "type": "object"
                          },
                          "labels": {
                            "additionalProperties": {
                              "type": "string"
                            },
                            "type": "object"
                          }
                        },
                        "type": "object"
                      }
                    },
                    "required": [
                      "bootstrap",
                      "infrastructure"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "class",
                  "template"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
