{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/devarmor/json-schema/devarmor-data-flow-create-schema.json",
  "title": "DataFlowCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/devarmor-data-flows-api-openapi.yml#/components/schemas/DataFlowCreate",
  "properties": {
    "symbolic_name": {
      "type": "null",
      "title": "Symbolic Name"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "description": {
      "type": "string",
      "title": "Description"
    },
    "has_sensitive_data": {
      "type": "boolean",
      "title": "Has Sensitive Data",
      "default": false
    },
    "encrypted": {
      "type": "boolean",
      "title": "Encrypted",
      "default": false
    },
    "source_type": {
      "$ref": "#/$defs/DataFlowNodeType"
    },
    "source_id": {
      "type": "integer",
      "title": "Source Id"
    },
    "destination_type": {
      "$ref": "#/$defs/DataFlowNodeType"
    },
    "destination_id": {
      "type": "integer",
      "title": "Destination Id"
    }
  },
  "type": "object",
  "required": [
    "title",
    "description",
    "source_type",
    "source_id",
    "destination_type",
    "destination_id"
  ],
  "$defs": {
    "DataFlowNodeType": {
      "type": "string",
      "enum": [
        "component",
        "data_store",
        "actor"
      ],
      "title": "DataFlowNodeType"
    }
  }
}