{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oyster-hr/json-schema/oyster-hr-operation-schema.json",
  "title": "operation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oyster-hr-operations-api-openapi.yml#/components/schemas/operation",
  "type": "object",
  "properties": {
    "request": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "queryParams": {
          "type": "object",
          "required": [
            "apiVersion"
          ]
        },
        "responseCode": {
          "type": "integer"
        }
      },
      "required": [
        "method",
        "path",
        "queryParams",
        "responseCode"
      ]
    },
    "data": {
      "type": "object"
    },
    "meta": {
      "type": "object",
      "properties": {
        "completed": {
          "type": "boolean"
        },
        "success": {
          "type": "boolean"
        },
        "idempotencyKey": {
          "type": "string",
          "description": "The idempotency key this operation claimed."
        }
      }
    }
  },
  "required": [
    "request",
    "data",
    "meta"
  ]
}