{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/folio/main/json-schema/folio-step-schema.json",
  "title": "step",
  "description": "Transformation step configuration.",
  "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/step",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier for the transformation step."
    },
    "name": {
      "type": "string",
      "description": "A unique name assigned to the transformation step."
    },
    "description": {
      "type": "string",
      "description": "Free text details about the step."
    },
    "type": {
      "type": "string",
      "description": "The type of transformation step.",
      "enum": [
        "XmlTransformStep"
      ]
    },
    "script": {
      "type": "string",
      "description": "The transformation script (XSLT) of the step."
    },
    "metadata": {
      "$ref": "#/$defs/metadata"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": true,
  "$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
        }
      }
    }
  }
}