# A2uiArraySchema

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/schema/A2uiArraySchema.kt+class:androidx.a2ui.model.schema.A2uiArraySchema) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
class A2uiArraySchema : A2uiSchema
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.a2ui.model.schema.A2uiSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema) ||
|   | ↳ | [androidx.a2ui.model.schema.A2uiArraySchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema) |

*** ** * ** ***

Schema representing an array where all items conform to a specific schema.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#INSTANCE()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#A2uiArraySchema(androidx.a2ui.model.schema.A2uiSchema,kotlin.String,kotlin.Int,kotlin.Int,kotlin.collections.List)( items: https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema?, description: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, minItems: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, maxItems: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, keywords: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>>> )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#hashCode()()` |
| `open https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#toJsonElement()()` Returns the `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/index.html` hierarchy representing this schema. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#toString()()` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#description()` semantic description of the schema |
| `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema?` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#items()` schema that every element in this array must conform to, or null if any schema is allowed. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchemaKeyword<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html>>>` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#keywords()` JSON Schema keywords applied to this schema node |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#maxItems()` maximum number of items allowed in the array (unconstrained if -1) |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiArraySchema#minItems()` minimum number of items required in the array (unconstrained if -1) |

### Inherited functions

From [androidx.a2ui.model.schema.A2uiSchema](https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/a2ui/model/schema/A2uiSchema#toJsonSchema()()`

Serializes this schema to a JSON Schema string representation.

## Public companion properties

### INSTANCE

```
val INSTANCE: A2uiArraySchema
```

## Public constructors

### A2uiArraySchema

```
A2uiArraySchema(
    items: A2uiSchema? = null,
    description: String? = null,
    minItems: Int = -1,
    maxItems: Int = -1,
    keywords: List<A2uiSchemaKeyword<List<Any>>> = emptyList()
)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toJsonElement

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
open fun toJsonElement(): JsonElement
```

Returns the `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/index.html` hierarchy representing this schema.

| Returns |
|---|---|
| `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/index.html` | the `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/index.html` hierarchy representing this schema |

### toString

```
open fun toString(): String
```

## Public properties

### description

```
open val description: String?
```

semantic description of the schema

### items

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
val items: A2uiSchema?
```

schema that every element in this array must conform to, or null if any schema is allowed.

### keywords

```
open val keywords: List<A2uiSchemaKeyword<List<Any>>>
```

JSON Schema keywords applied to this schema node

### maxItems

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
val maxItems: Int
```

maximum number of items allowed in the array (unconstrained if -1)

### minItems

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
val minItems: Int
```

minimum number of items required in the array (unconstrained if -1)