{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-planning/json-schema/oracle-planning-report-schema.json",
  "title": "Report",
  "description": "Management Reporting Report and Report Snapshot",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-planning-narrative-reporting-openapi.yml#/components/schemas/Report",
  "type": "object",
  "properties": {
    "reportId": {
      "type": "string",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "readOnly": true
    },
    "description": {
      "type": "string",
      "readOnly": true
    },
    "createdBy": {
      "type": "string",
      "readOnly": true
    },
    "creationDate": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modifiedDate": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "lastAccessed": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "instanceType": {
      "type": "string",
      "description": "The Report instance type.",
      "readOnly": true,
      "enum": [
        "editor",
        "result",
        "snapshot"
      ]
    },
    "executedReport": {
      "type": "array",
      "description": "A link to the Report or Report Snapshot's generated report output.",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/Link"
      }
    },
    "datasourceNames": {
      "type": "array",
      "description": "The list of datasources referenced by this Report or Report Snapshot instance.",
      "readOnly": true,
      "items": {
        "type": "string"
      }
    },
    "globalPov": {
      "$ref": "#/$defs/ItemCollectionPOVDimension"
    },
    "prompts": {
      "$ref": "#/$defs/ItemCollectionPrompt"
    },
    "invalidFields": {
      "type": "array",
      "description": "The invalid fields found in the Report. The validation errors associated with these fields will be included in the Report's validation messages.",
      "readOnly": true,
      "items": {
        "type": "string"
      }
    },
    "validationMessages": {
      "type": "array",
      "description": "The errors found when trying to validate the Report.",
      "readOnly": true,
      "items": {
        "type": "string"
      }
    },
    "links": {
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "$defs": {
    "ItemCollectionPOVDimension": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/POVDimension"
          }
        },
        "offset": {
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "count": {
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "hasMore": {
          "type": "boolean",
          "readOnly": true
        },
        "totalResults": {
          "type": "integer",
          "format": "int32"
        },
        "links": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "ItemCollectionPrompt": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Prompt"
          }
        },
        "offset": {
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "count": {
          "type": "integer",
          "format": "int32",
          "readOnly": true
        },
        "hasMore": {
          "type": "boolean",
          "readOnly": true
        },
        "totalResults": {
          "type": "integer",
          "format": "int32"
        },
        "links": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "Link": {
      "type": "object",
      "properties": {
        "rel": {
          "type": "string",
          "enum": [
            "self",
            "next",
            "prev",
            "first",
            "canonical",
            "parent"
          ]
        },
        "href": {
          "type": "string"
        }
      }
    },
    "POVDimension": {
      "type": "object",
      "properties": {
        "dimensionId": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true
        },
        "suggestedMembers": {
          "type": "array",
          "description": "The dimension's members suggested for use when executing the Report.",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/POVMember"
          }
        },
        "links": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Link"
          }
        },
        "hidden": {
          "type": "boolean",
          "readOnly": true
        },
        "fixedSelection": {
          "type": "boolean",
          "readOnly": true
        }
      },
      "description": "A Dimension that has a set of members to select from for Report execution."
    },
    "POVMember": {
      "type": "object",
      "properties": {
        "memberId": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "readOnly": true
        },
        "alias": {
          "type": "string",
          "readOnly": true
        },
        "links": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      },
      "description": "A member that can be selected as part of the point of view or as the value for a Report prompt."
    },
    "Prompt": {
      "type": "object",
      "properties": {
        "promptId": {
          "type": "string",
          "readOnly": true
        },
        "label": {
          "type": "string",
          "readOnly": true
        },
        "dimensionName": {
          "type": "string",
          "readOnly": true
        },
        "allowMultipleSelections": {
          "type": "boolean",
          "readOnly": true
        },
        "sourceElement": {
          "type": "string",
          "readOnly": true
        },
        "sourceType": {
          "type": "string",
          "readOnly": true
        },
        "suggestedMembers": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/POVMember"
          }
        },
        "defaultSelection": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/POVMember"
          }
        },
        "links": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      },
      "description": "A Report's user selectable member values used to generate the report output. A member selction must be provided for each prompt during report execution."
    }
  }
}