> This page is for Fern CLI.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 3.97.1

**`(fix):`** Improve error handling for `fern docs preview list`. Previously, all API
errors were reported with a generic "Failed to fetch docs URLs" message.
Now the CLI distinguishes between authorization errors and other failures,
guiding users to run `fern login` or set the FERN_TOKEN environment variable
when authentication is the issue.

## 3.97.0

**`(feat):`** Warn when user-provided examples in OpenAPI specs don't match their schema types.
Previously, if an example value had the wrong type (e.g., a number where a string
was expected, or an invalid enum value), Fern would silently replace it with a
generated fallback. Now, the CLI emits a warning identifying the mismatched field,
the expected type, and the actual value so users can fix their specs.

## 3.96.1

**`(fix):`** Improve the "Misconfigured fern directory" error message to clearly
explain what was expected (an `api` section in `generators.yml` or a
`definition/` directory) instead of showing a generic, misleading
message. Also adds debug-level diagnostics explaining exactly which
checks failed during workspace loading.

## 3.95.7

**`(fix):`** Fix `fern check` not detecting when an OpenAPI spec declares an explicit
header parameter (e.g. `Authorization`) that conflicts with a header
already implied by a security scheme (e.g. Bearer token auth). Previously
`fern check` silently passed and generation would fail with a confusing
error. Now a warning is emitted during validation.

**`(fix):`** Fix incorrect construction of Sets using `new Set(...array)` instead of
`new Set(array)` in three places: the auth-header filter in the v1
OpenAPI parser (`generateIr.ts`), the headers-to-ignore set in
`buildGlobalHeaders.ts`, and enum value comparison in
`isSchemaEqual.ts`. The spread caused Sets to contain individual
characters instead of full strings.