{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/azure-container-registry/refs/heads/main/json-schema/azure-container-registry-import-source-schema.json",
  "title": "ImportSource",
  "description": "ImportSource schema from Azure Container Registry API",
  "type": "object",
  "properties": {
    "credentials": {
      "$ref": "#/definitions/ImportSourceCredentials",
      "description": "Credentials used when importing from a registry uri."
    },
    "registryUri": {
      "description": "The address of the source registry (e.g. 'mcr.microsoft.com').",
      "type": "string"
    },
    "resourceId": {
      "description": "The resource identifier of the source Azure Container Registry.",
      "type": "string"
    },
    "sourceImage": {
      "description": "Repository name of the source image.\r\nSpecify an image by repository ('hello-world'). This will use the 'latest' tag.\r\nSpecify an image by tag ('hello-world:latest').\r\nSpecify an image by sha256-based manifest digest ('hello-world@sha256:abc123').",
      "type": "string"
    }
  },
  "required": [
    "sourceImage"
  ]
}