Skip to content

Commit 26c8969

Browse files
Update changelogs from fern repo (#461)
Co-authored-by: Swimburger <[email protected]>
1 parent 7a155ed commit 26c8969

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

fern/products/cli-api-reference/cli-changelog/2025-08-11.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
**`(fix):`** Allow 'securityScheme.scheme' to be case-insensitive.
33

44
## 0.66.1
5-
**`(fix):`** Add 'vendor' to set of reservved keywords for go.
5+
**`(fix):`** Add 'vendor' to set of reserved keywords for go.
66

77
## 0.66.01
88
**`(chore):`** Improved plumbing of the --runner arg for local SDK generation.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
## 0.66.15
2+
**`(feat):`** Split OpenAPI endpoints with multiple request bodies into multiple endpoints using `x-fern-sdk-method-name`.
3+
For example, take the following OpenAPI spec:
4+
```yml
5+
paths:
6+
/documents/upload:
7+
post:
8+
summary: Upload document metadata (JSON) or document file
9+
operationId: uploadDocument
10+
requestBody:
11+
content:
12+
application/json:
13+
x-fern-sdk-method-name: uploadJsonDocument
14+
schema:
15+
type: object
16+
properties:
17+
title:
18+
type: string
19+
author:
20+
type: string
21+
tags:
22+
type: array
23+
items:
24+
type: string
25+
application/pdf:
26+
x-fern-sdk-method-name: uploadPdfDocument
27+
schema:
28+
type: string
29+
format: binary
30+
```
31+
32+
The OpenAPI spec becomes the following Fern Definition:
33+
34+
```yml
35+
service:
36+
endpoints:
37+
uploadJsonDocument:
38+
method: POST
39+
path: /documents/upload
40+
request:
41+
body:
42+
properties:
43+
author: optional<string>
44+
tags: optional<list<string>>
45+
title: optional<string>
46+
content-type: application/json
47+
name: UploadDocumentRequest
48+
...
49+
uploadPdfDocument:
50+
method: POST
51+
path: /documents/upload
52+
request:
53+
body: bytes
54+
content-type: application/pdf
55+
...
56+
```
57+
58+

0 commit comments

Comments
 (0)