Skip to content

Commit b4ca2cd

Browse files
Update changelogs from fern repo (#4263)
Co-authored-by: patrickthornton <70873350+patrickthornton@users.noreply.github.com>
1 parent c4998f8 commit b4ca2cd

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

fern/products/cli-api-reference/cli-changelog/2026-03-13.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
## 4.28.0
2+
**`(feat):`** Add `coerce-consts-to` setting for controlling how OpenAPI/AsyncAPI
3+
`const` values are represented. Set to `literals` to convert them directly
4+
to literals with defaults; set to `enums` (the default, current behavior)
5+
to convert them to single-valued and therefore extensible enums.
6+
7+
When `coerce-consts-to` is `enums`, the `coerce-enums-to-literals` setting
8+
will not transitively apply to const-originated enums, keeping the two
9+
concepts independent.
10+
11+
Usage:
12+
```yaml
13+
api:
14+
specs:
15+
- asyncapi: ./asyncapi.yaml
16+
settings:
17+
coerce-consts-to: literals
18+
```
19+
20+
121
## 4.27.0
222
**`(feat):`** Log detected .fernignore paths when copying generated files. When a
323
.fernignore file is present in the output directory, the CLI now emits

0 commit comments

Comments
 (0)