{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/insuremo-com/json-schema/insuremo-com-search-condition-request-schema.json",
  "title": "SearchConditionRequest",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/insuremo-com-party-openapi.yml#/components/schemas/SearchConditionRequest",
  "type": "object",
  "properties": {
    "AggConditions": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "GroupField": {
      "type": "string"
    },
    "GroupMethod": {
      "type": "string"
    },
    "IncludeFields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "Index": {
      "type": "string"
    },
    "Module": {
      "type": "string"
    },
    "PageNo": {
      "type": "integer",
      "format": "int32"
    },
    "PageSize": {
      "type": "integer",
      "format": "int32"
    },
    "QueryCondition": {
      "$ref": "#/$defs/QueryCondition"
    },
    "SortField": {
      "type": "string"
    },
    "SortFieldTypeList": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    "SortFieldsAndTypes": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "deprecated": true
      },
      "deprecated": true
    },
    "SortType": {
      "type": "string"
    },
    "WithCodeDesc": {
      "type": "boolean"
    },
    "WithExactHitCount": {
      "type": "boolean"
    }
  },
  "$defs": {
    "QueryCondition": {
      "type": "object",
      "properties": {
        "AndSearchConditionsList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QueryCondition"
          }
        },
        "Conditions": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "ExistFieldsConditions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "FuzzyConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "GtRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "GteRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "GteltRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "GtelteRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "GtltRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "GtlteRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "InConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "InFuzzyConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "LtRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "LteRangeConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "NotExistFieldsConditions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "NotInConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "NotInFuzzyConditions": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "NotSearchConditionsList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QueryCondition"
          }
        },
        "OrSearchConditionsList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QueryCondition"
          }
        }
      }
    }
  }
}