{
  "description": "ClusterSbomReport summarizes components and dependencies found in container image",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "report": {
      "description": "Report is the actual sbom report data.",
      "properties": {
        "artifact": {
          "description": "Artifact represents a standalone, executable package of software that includes everything needed to\nrun an application.",
          "properties": {
            "digest": {
              "description": "Digest is a unique and immutable identifier of an Artifact.",
              "type": "string"
            },
            "mimeType": {
              "description": "MimeType represents a type and format of an Artifact.",
              "type": "string"
            },
            "repository": {
              "description": "Repository is the name of the repository in the Artifact registry.",
              "type": "string"
            },
            "tag": {
              "description": "Tag is a mutable, human-readable string used to identify an Artifact.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "components": {
          "description": "Bom is artifact bill of materials.",
          "properties": {
            "bomFormat": {
              "type": "string"
            },
            "components": {
              "items": {
                "properties": {
                  "bom-ref": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  },
                  "hashes": {
                    "items": {
                      "properties": {
                        "alg": {
                          "type": "string"
                        },
                        "content": {
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "licenses": {
                    "items": {
                      "properties": {
                        "expression": {
                          "type": "string"
                        },
                        "license": {
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "additionalProperties": false
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "name": {
                    "type": "string"
                  },
                  "properties": {
                    "items": {
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": "array"
                  },
                  "purl": {
                    "type": "string"
                  },
                  "supplier": {
                    "properties": {
                      "contact": {
                        "items": {
                          "properties": {
                            "email": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "phone": {
                              "type": "string"
                            }
                          },
                          "type": "object",
                          "additionalProperties": false
                        },
                        "type": "array"
                      },
                      "name": {
                        "type": "string"
                      },
                      "url": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "type": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  },
                  "additionalProperties": false
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "dependencies": {
              "items": {
                "properties": {
                  "dependsOn": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "ref": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            },
            "metadata": {
              "properties": {
                "component": {
                  "properties": {
                    "bom-ref": {
                      "type": "string"
                    },
                    "group": {
                      "type": "string"
                    },
                    "hashes": {
                      "items": {
                        "properties": {
                          "alg": {
                            "type": "string"
                          },
                          "content": {
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    },
                    "licenses": {
                      "items": {
                        "properties": {
                          "expression": {
                            "type": "string"
                          },
                          "license": {
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              }
                            },
                            "type": "object",
                            "additionalProperties": false
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    },
                    "name": {
                      "type": "string"
                    },
                    "properties": {
                      "items": {
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    },
                    "purl": {
                      "type": "string"
                    },
                    "supplier": {
                      "properties": {
                        "contact": {
                          "items": {
                            "properties": {
                              "email": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "phone": {
                                "type": "string"
                              }
                            },
                            "type": "object",
                            "additionalProperties": false
                          },
                          "type": "array"
                        },
                        "name": {
                          "type": "string"
                        },
                        "url": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "type": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "additionalProperties": false
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "timestamp": {
                  "type": "string"
                },
                "tools": {
                  "properties": {
                    "components": {
                      "items": {
                        "properties": {
                          "bom-ref": {
                            "type": "string"
                          },
                          "group": {
                            "type": "string"
                          },
                          "hashes": {
                            "items": {
                              "properties": {
                                "alg": {
                                  "type": "string"
                                },
                                "content": {
                                  "type": "string"
                                }
                              },
                              "type": "object",
                              "additionalProperties": false
                            },
                            "type": "array"
                          },
                          "licenses": {
                            "items": {
                              "properties": {
                                "expression": {
                                  "type": "string"
                                },
                                "license": {
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "url": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object",
                                  "additionalProperties": false
                                }
                              },
                              "type": "object",
                              "additionalProperties": false
                            },
                            "type": "array"
                          },
                          "name": {
                            "type": "string"
                          },
                          "properties": {
                            "items": {
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "type": "object",
                              "additionalProperties": false
                            },
                            "type": "array"
                          },
                          "purl": {
                            "type": "string"
                          },
                          "supplier": {
                            "properties": {
                              "contact": {
                                "items": {
                                  "properties": {
                                    "email": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "phone": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object",
                                  "additionalProperties": false
                                },
                                "type": "array"
                              },
                              "name": {
                                "type": "string"
                              },
                              "url": {
                                "items": {
                                  "type": "string"
                                },
                                "type": "array"
                              }
                            },
                            "type": "object",
                            "additionalProperties": false
                          },
                          "type": {
                            "type": "string"
                          },
                          "version": {
                            "type": "string"
                          },
                          "additionalProperties": false
                        },
                        "type": "object",
                        "additionalProperties": false
                      },
                      "type": "array"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "serialNumber": {
              "type": "string"
            },
            "specVersion": {
              "type": "string"
            },
            "version": {
              "type": "integer"
            }
          },
          "required": [
            "bomFormat",
            "specVersion"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "registry": {
          "description": "Registry is the registry the Artifact was pulled from.",
          "properties": {
            "server": {
              "description": "Server the FQDN of registry server.",
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "scanner": {
          "description": "Scanner is the scanner that generated this report.",
          "properties": {
            "name": {
              "description": "Name the name of the scanner.",
              "type": "string"
            },
            "vendor": {
              "description": "Vendor the name of the vendor providing the scanner.",
              "type": "string"
            },
            "version": {
              "description": "Version the version of the scanner.",
              "type": "string"
            }
          },
          "required": [
            "name",
            "vendor",
            "version"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "summary": {
          "description": "Summary is a summary of sbom report.",
          "properties": {
            "componentsCount": {
              "description": "ComponentsCount is the number of components in bom.",
              "minimum": 0,
              "type": "integer"
            },
            "dependenciesCount": {
              "description": "DependenciesCount is the number of dependencies in bom.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "componentsCount",
            "dependenciesCount"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "updateTimestamp": {
          "description": "UpdateTimestamp is a timestamp representing the server time in UTC when this report was updated.",
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "artifact",
        "components",
        "scanner",
        "summary",
        "updateTimestamp"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "report"
  ],
  "type": "object"
}
