File tree Expand file tree Collapse file tree 2 files changed +59
-1
lines changed
fern/products/cli-api-reference/cli-changelog Expand file tree Collapse file tree 2 files changed +59
-1
lines changed Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments