{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loadsmart/json-schema/loadsmart-create-field-dto-schema.json",
  "title": "CreateFieldDto",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loadsmart-custom-forms-fields-api-openapi.yml#/components/schemas/CreateFieldDto",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object"
    },
    "label": {
      "type": "string"
    },
    "type": {
      "$ref": "#/$defs/CustomFieldType"
    },
    "description": {
      "type": "string"
    },
    "placeholder": {
      "type": "string"
    },
    "extraFields": {
      "allOf": [
        {
          "$ref": "#/$defs/FieldExtraFields"
        }
      ]
    }
  },
  "required": [
    "label",
    "type",
    "description",
    "placeholder"
  ],
  "$defs": {
    "CustomFieldType": {
      "type": "string",
      "description": "The type of the field used at the moment of the data submission, used to render the field in the UI and validate the data on the API level",
      "enum": [
        "str",
        "bigstr",
        "date",
        "bool",
        "doc",
        "multidoc",
        "int",
        "email",
        "phone",
        "dropdown",
        "dropdownmultiselect",
        "combobox",
        "timestamp",
        "action"
      ]
    },
    "FieldExtraFields": {
      "type": "object",
      "properties": {}
    }
  }
}