{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/softsync-ai/json-schema/softsync-ai-formula-check-dto-schema.json",
  "title": "FormulaCheckDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/softsync-ai-objects-api-openapi.yml#/components/schemas/FormulaCheckDto",
  "type": "object",
  "properties": {
    "expression": {
      "type": "string",
      "description": "The formula, with {Field} names or stored ids"
    },
    "field": {
      "$ref": "#/$defs/FormulaCheckFieldDto"
    },
    "recordIds": {
      "description": "Records to preview; the newest ones you can see when left out",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "expression",
    "field"
  ],
  "$defs": {
    "FieldKind": {
      "type": "string",
      "enum": [
        "text",
        "number",
        "date",
        "select",
        "multi_select",
        "relation",
        "user",
        "file"
      ]
    },
    "FormulaCheckFieldDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of a saved field"
        },
        "apiName": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "kind": {
          "allOf": [
            {
              "$ref": "#/$defs/FieldKind"
            }
          ]
        },
        "options": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "required": [
        "kind"
      ]
    }
  }
}