{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/intely/main/json-schema/intely-rosetta-comparison-schema.json",
  "title": "RosettaComparison",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intely-api-openapi.yml#/components/schemas/RosettaComparison",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "organizationId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "inputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "dataTypeId": {
            "type": "string"
          },
          "entryOffset": {
            "type": "integer"
          }
        }
      }
    },
    "comparisons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "from": {
            "type": "object",
            "properties": {
              "inputId": {
                "type": "string"
              },
              "inputPath": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "dataTypeFieldId": {
                      "type": "string"
                    },
                    "occurrenceIndex": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "to": {
            "type": "object",
            "properties": {
              "inputId": {
                "type": "string"
              },
              "inputPath": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "dataTypeFieldId": {
                      "type": "string"
                    },
                    "occurrenceIndex": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "entryComparisonType": {
            "type": "string",
            "enum": [
              "any",
              "same"
            ]
          },
          "isCaseSensitive": {
            "type": "boolean"
          }
        }
      }
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "createdBy": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "modifiedBy": {
      "type": "string"
    },
    "deletedAt": {
      "type": "string",
      "format": "date-time"
    },
    "deletedBy": {
      "type": "string"
    }
  }
}