{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-create-data-input-schema.json",
  "title": "createDataInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-data-api-openapi.yml#/components/schemas/createDataInput",
  "properties": {
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time.",
      "readOnly": true
    },
    "allowed_by": {
      "type": "object",
      "description": "For dependent dropdowns, the parent-field values this option is available for, as a JSON array of identifiers (option ids or enum names). Empty when always available."
    },
    "calc_value": {
      "type": "number",
      "format": "double",
      "description": "Numeric value associated with the option, used in calculation formulas (e.g. score of a dropdown option)."
    },
    "data_set_id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the data set this option belongs to. Shared by all options of a dropdown / radio / multiselect field.",
      "readOnly": true
    },
    "option_name": {
      "type": "string",
      "description": "Name of the entity and its default text representation."
    },
    "sort_order": {
      "type": "integer",
      "format": "int32",
      "description": "Position of the option within its data set; lower values appear first."
    },
    "is_published": {
      "type": "boolean",
      "description": "True when the entity configuration is published; false while it exists only as an unpublished draft.",
      "readOnly": true
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "option_name_translations": {
      "type": "string",
      "format": "binary",
      "description": "Map of locale codes to translated option names (e.g. {\"en-US\": \"Hot\", \"de-DE\": \"Heiß\"}). Empty when no translations are defined."
    }
  },
  "required": [
    "data_set_id",
    "option_name",
    "sort_order",
    "option_name_translations"
  ]
}