{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-planning/json-schema/oracle-planning-artifact-schema.json",
  "title": "Artifact",
  "description": "Narrative Reporting Library Artifact",
  "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/Artifact",
  "type": "object",
  "properties": {
    "artifactId": {
      "type": "string",
      "readOnly": true
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "typeID": {
      "type": "string",
      "readOnly": true
    },
    "typeLabel": {
      "type": "string",
      "readOnly": true
    },
    "pathName": {
      "type": "string"
    },
    "systemPath": {
      "type": "string"
    },
    "createdBy": {
      "type": "string",
      "readOnly": true
    },
    "creationDate": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modifiedBy": {
      "type": "string",
      "readOnly": true
    },
    "modifiedDate": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "lastAccessed": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "favorite": {
      "type": "boolean",
      "readOnly": true
    },
    "mimeType": {
      "type": "string",
      "readOnly": true
    },
    "artifactImage": {
      "type": "string",
      "readOnly": true
    },
    "ordinal": {
      "type": "integer",
      "description": "An artifact's ordinal represents the artifact's display position to the other artifacts in the given folder (e.g. favorites). The position is set by the end user. If the ordinal is -1, there is no position set by the end user.",
      "format": "int32",
      "readOnly": true
    },
    "children": {
      "$ref": "#/$defs/ItemCollectionArtifact"
    },
    "links": {
      "type": "array",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "$defs": {
    "Artifact": {
      "type": "object",
      "properties": {
        "artifactId": {
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "typeID": {
          "type": "string",
          "readOnly": true
        },
        "typeLabel": {
          "type": "string",
          "readOnly": true
        },
        "pathName": {
          "type": "string"
        },
        "systemPath": {
          "type": "string"
        },
        "createdBy": {
          "type": "string",
          "readOnly": true
        },
        "creationDate": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "modifiedBy": {
          "type": "string",
          "readOnly": true
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "lastAccessed": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "favorite": {
          "type": "boolean",
          "readOnly": true
        },
        "mimeType": {
          "type": "string",
          "readOnly": true
        },
        "artifactImage": {
          "type": "string",
          "readOnly": true
        },
        "ordinal": {
          "type": "integer",
          "description": "An artifact's ordinal represents the artifact's display position to the other artifacts in the given folder (e.g. favorites). The position is set by the end user. If the ordinal is -1, there is no position set by the end user.",
          "format": "int32",
          "readOnly": true
        },
        "children": {
          "$ref": "#/$defs/ItemCollectionArtifact"
        },
        "links": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      },
      "description": "Narrative Reporting Library Artifact"
    },
    "ItemCollectionArtifact": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Artifact"
          }
        },
        "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"
        }
      }
    }
  }
}