Activity

PartDraftv1.0.0-rc.2

An activity: work that happens over time, such as construction, drilling or operation. Its allocations say where and when it happens and which operating states it uses.

https://opendevelopmentstandards.org/schema/1.0.0-rc.2/core/Activity.json

Fields

  • id
    textnot empty

    The record's id: unique within the document.

  • nameRequired
    text

    The name people use for the record.

  • description
    text

    What the record is, in words.

  • type

    What sort of work it is, such as drilling or operation.

  • interval

    When the activity happens.

  • allocations

    Where the activity happens.

Links

Examples

An id that another example defines opens that record.

Example 2

{
  "id": "activity-operation",
  "name": "Operation",
  "type": "operation",
  "interval": {
    "start": "2026-09-01T00:00:00-06:00"
  },
  "allocations": [
    {
      "feature": "feature-wellsite",
      "states": [
        {
          "state": "state-loaded"
        }
      ]
    }
  ]
}
Show 1 more example

Example 1

{
  "id": "activity-1",
  "name": "Operation"
}

Changes and file

Changes

  1. 0.1.0 First version.

Schema file

Show the JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://opendevelopmentstandards.org/schema/1.0.0-rc.2/core/Activity.json",
  "title": "Activity",
  "description": "An activity: work that happens over time, such as construction, drilling or operation. Its allocations say where and when it happens and which operating states it uses.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "description": "The record's id: unique within the document."
    },
    "name": {
      "type": "string",
      "description": "The name people use for the record."
    },
    "description": {
      "type": "string",
      "description": "What the record is, in words."
    },
    "type": {
      "type": "string",
      "pattern": "^[a-z0-9]+(_[a-z0-9]+)*(\\.[a-z0-9]+(_[a-z0-9]+)*)*$",
      "x-ods-vocabulary": "core/activity_types",
      "description": "What sort of work it is, such as `drilling` or `operation`."
    },
    "interval": {
      "$ref": "Interval.json",
      "description": "When the activity happens."
    },
    "allocations": {
      "type": "array",
      "items": {
        "$ref": "Allocation.json"
      },
      "description": "Where the activity happens."
    }
  },
  "required": [
    "name"
  ],
  "patternProperties": {
    "^x-": {}
  },
  "unevaluatedProperties": false,
  "examples": [
    {
      "id": "activity-1",
      "name": "Operation"
    },
    {
      "id": "activity-operation",
      "name": "Operation",
      "type": "operation",
      "interval": {
        "start": "2026-09-01T00:00:00-06:00"
      },
      "allocations": [
        {
          "feature": "feature-wellsite",
          "states": [
            {
              "state": "state-loaded"
            }
          ]
        }
      ]
    }
  ],
  "x-ods-status": "draft",
  "x-ods-kind": "part",
  "x-ods-module": "core",
  "x-ods-changes": {
    "0.1.0": "First version."
  }
}