{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-transformation-step-association-schema.json",
  "title": "transformationStepAssociation",
  "description": "Transformation/step association record.",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-mod-inventory-update-inventory-import-1-0-openapi.yml#/components/schemas/transformationStepAssociation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the association."
    },
    "transformationId": {
      "type": "string",
      "format": "uuid",
      "description": "UUID referencing a transformation pipeline."
    },
    "stepId": {
      "type": "string",
      "format": "uuid",
      "description": "UUID referencing a transformation step."
    },
    "stepName": {
      "type": "string",
      "description": "optional, read-only name of the step",
      "readOnly": true
    },
    "position": {
      "type": "string",
      "description": "The position of the step amongst other steps in the pipeline."
    },
    "metadata": {
      "$ref": "#/$defs/metadata"
    }
  },
  "required": [
    "stepId",
    "transformationId",
    "position"
  ],
  "additionalProperties": false,
  "$defs": {
    "metadata": {
      "type": "object",
      "description": "For tagging records with current time and user ID on create or update.",
      "properties": {
        "createdDate": {
          "type": "string",
          "description": "Time stamp for the records creation.",
          "readOnly": true
        },
        "createdByUserId": {
          "type": "string",
          "format": "uuid",
          "description": "ID of the user creating the record.",
          "readOnly": true
        },
        "updatedDate": {
          "type": "string",
          "description": "Time stamp for the most recent update of the record.",
          "readOnly": true
        },
        "updatedByUserId": {
          "type": "string",
          "format": "uuid",
          "description": "The ID of the user who most recently updated the record.",
          "readOnly": true
        }
      }
    }
  }
}