{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-decompile-operation-success-response-schema.json",
  "title": "DecompileOperationSuccessResponse",
  "description": "The response of the decompileBicep operation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-decompileoperationgroup-api-openapi.yml#/components/schemas/DecompileOperationSuccessResponse",
  "type": "object",
  "properties": {
    "files": {
      "type": "array",
      "description": "An array of key-value pairs containing the entryPoint string as the key for the Bicep file decompiled from the ARM json template",
      "items": {
        "$ref": "#/$defs/FileDefinition"
      },
      "x-ms-identifiers": [
        "path"
      ]
    },
    "entryPoint": {
      "type": "string",
      "description": "The file path to the main Bicep file generated from the decompiled ARM json template."
    }
  },
  "required": [
    "files",
    "entryPoint"
  ],
  "$defs": {
    "FileDefinition": {
      "type": "object",
      "description": "The definition of a file along with its contents",
      "properties": {
        "path": {
          "type": "string",
          "description": "The file path of the Bicep file."
        },
        "contents": {
          "type": "string",
          "description": "The contents of the Bicep file."
        }
      }
    }
  }
}