# pickValueAndTitle

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/param-source-inference.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/param-source-inference.ts#L131)

Pick the value and label properties. The value is the item's own identifier — preferring a
plain `id` over a foreign key like `projectId`, which would submit the wrong entity.

## Signature

```ts
function pickValueAndTitle(item: SchemaLike, paramName: string): { itemValuePath: string; itemTitlePath: string } | null
```

## Parameters

| Name | Type |
|---|---|
| `item` | `SchemaLike` |
| `paramName` | `string` |

**Returns:** `{ itemValuePath: string; itemTitlePath: string } | null`
