# Property kinds

AI agent getting started? Read [Agents: start here](https://docs.openeng.io/agents/start-here.md) first.

Kinds accepted by the schema language.

Source: https://docs.openeng.io/reference/property-kinds/

A property declaration defines the values an object can hold. Choose a kind for the value you need, then add it to a [type definition](https://docs.openeng.io/configure/types.md).

## How to read this page

Choose a kind by what you need to store. Each link opens its declaration example below. The version is the minimum schema-language version for that example. Arrays and objects can require a later version when their nested properties do. Required object fields are declared separately from their kinds.

| Kind | Use for | Minimum version |
| --- | --- | --- |
| [null](#null) | An explicitly empty value | 1 |
| [boolean](#boolean) | A yes/no choice | 1 |
| [string](#string) | Text, identifiers and descriptions | 1 |
| [number](#number) | Measurements, including fractions | 1 |
| [integer](#integer) | Whole-number counts | 1 |
| [person](#person) | A person assigned to a record | 1 |
| [enum](#enum) | One choice from declared options | 1 |
| [array](#array) | An ordered list of values | 1 |
| [object](#object) | A group of named properties | 1 |
| [datetime](#datetime) | A date and time | 2 |
| [attachment](#attachment) | A file, such as a drawing or report | 3 |
| [bound](#bound) | A numeric limit or acceptable range, with units | 4 |

## null

```json
{
  "kind": "null"
}
```

## boolean

```json
{
  "kind": "boolean"
}
```

## string

```json
{
  "kind": "string"
}
```

## number

```json
{
  "kind": "number"
}
```

## integer

```json
{
  "kind": "integer"
}
```

## person

```json
{
  "kind": "person"
}
```

## enum

```json
{
  "kind": "enum",
  "members": [
    "open",
    "closed"
  ]
}
```

## array

```json
{
  "kind": "array",
  "items": {
    "kind": "string"
  },
  "maxItems": 10
}
```

## object

```json
{
  "kind": "object",
  "properties": {
    "name": {
      "kind": "string"
    }
  },
  "required": [
    "name"
  ]
}
```

## datetime

```json
{
  "kind": "datetime"
}
```

## attachment

```json
{
  "typeCategory": "object",
  "typeKey": "drawing_record",
  "version": 1,
  "displayName": "Drawing record",
  "description": null,
  "schemaLanguageVersion": "3",
  "propertyDefinitions": {
    "drawing": {
      "kind": "attachment",
      "accept": [
        "image",
        "pdf",
        "step",
        "mesh",
        "text"
      ]
    }
  },
  "requiredPropertyKeys": []
}
```

## bound

```json
{
  "kind": "bound"
}
```
