{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/intely/main/json-schema/intely-rosetta-mapping-schema.json",
  "title": "RosettaMapping",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intely-api-openapi.yml#/components/schemas/RosettaMapping",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "organizationId": {
      "type": "string"
    },
    "isPublic": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "isTemplate": {
      "type": "boolean"
    },
    "inputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "dataTypeId": {
            "type": "string"
          }
        }
      }
    },
    "customFields": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "dataType": {
            "type": "string"
          },
          "functionExpression": {
            "type": "string"
          },
          "functionInputReferences": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "userDefinedValue": {
            "type": "string"
          }
        }
      }
    },
    "outputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "dataTypeId": {
            "type": "string"
          },
          "fieldMappings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "_id": {
                  "type": "string"
                },
                "inputId": {
                  "type": "string"
                },
                "customFieldId": {
                  "type": "string"
                },
                "inputPath": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "dataTypeFieldId": {
                        "type": "string"
                      },
                      "occurrenceIndex": {
                        "type": "integer"
                      }
                    }
                  }
                },
                "outputPath": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "dataTypeFieldId": {
                        "type": "string"
                      },
                      "occurrenceIndex": {
                        "type": "integer"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "modifierFirstName": {
      "type": "string"
    },
    "modifierLastName": {
      "type": "string"
    }
  }
}