{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-update-data-source-request-schema.json",
  "title": "UpdateDataSourceRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-data-sources-api-openapi.yml#/components/schemas/UpdateDataSourceRequest",
  "properties": {
    "display_name": {
      "anyOf": [
        {
          "$ref": "#/$defs/NameString"
        },
        {
          "type": "null"
        }
      ]
    },
    "connection_config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Connection Config"
    },
    "entity_types": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "type": "array",
          "maxItems": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Entity Types"
    },
    "field_mappings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Field Mappings"
    },
    "sync_strategy": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "manual",
            "scheduled",
            "webhook",
            "continuous"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Sync Strategy"
    },
    "sync_schedule": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "type": "null"
        }
      ],
      "title": "Sync Schedule"
    },
    "is_active": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Active"
    }
  },
  "type": "object",
  "$defs": {
    "NameString": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1
    }
  }
}