# Function: checkActionInput()

```ts
function checkActionInput(action, input): string | null;
```

Defined in: [packages/actions/src/index.ts:1086](https://github.com/leifriksheim/minca/blob/main/actions/src/index.ts#L1086)

Why an input does not fit an action's schema, or null when it does.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `action` | [`NodeAction`](https://minca.dev/api/actions/interfaces/NodeAction.md) |
| `input` | `unknown` |

## Returns

`string` \| `null`
