---
url: "https://vueda.dev/v3/reference/api/py/vueda.core.fields.form/BaseArrayField.md"
title: "BaseArrayField"
---

# BaseArrayField

## Overview

Base field for validating native arrays. Value validation is performed by
secondary base classes.

This is related to JSON DRF handling allowing for native arrays to be
validated and serialized.

ex::
    class IntegerArrayField(BaseArrayField, filters.IntegerField):
        pass

## `__init__` {#--init--}

### Signature {#--init---signature}

`__init__(args, kwargs)`

#### Parameters {#--init---parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="--init---param-args">args</span> |  | no |  |  |
| <span id="--init---param-kwargs">kwargs</span> |  | no |  |  |

### Source {#--init---source}

`server/vueda/core/fields/form.py:43`

## `clean` {#clean}

Validate the given value and return its "cleaned" value as an
appropriate Python object. Raise ValidationError for any errors.

### Signature {#clean-signature}

`clean(self, value)`

#### Parameters {#clean-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |
| <span id="clean-param-value">value</span> |  | yes |  |  |

### Source {#clean-source}

`server/vueda/core/fields/form.py:63`

## `base_widget_class` {#base_widget_class}

## Source

`server/vueda/core/fields/form.py:27`
