# resolveOpenApiSchemasFromDir

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/schema-resolver.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/schema-resolver.ts#L628)

Resolve schemas for endpoints against a repo directory. Scopes the ts-morph project to the
endpoints' controller files + their imports (memory-bounded); falls back to a whole-dir glob
only when no file paths are available.

## Signature

```ts
function resolveOpenApiSchemasFromDir(rootDir: string, endpoints: EndpointInput[], knownModels: Iterable<string> | Record<string, Record<string, unknown>>): OpenApiFragment
```

## Parameters

| Name | Type |
|---|---|
| `rootDir` | `string` |
| `endpoints` | `EndpointInput[]` |
| `knownModels` | `Iterable<string> | Record<string, Record<string, unknown>>` |

**Returns:** `OpenApiFragment`
