Skip to content

Commit

Permalink
cr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
itelo committed Aug 18, 2023
1 parent 3fd8c7a commit 8e96b2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function transformPathToFernSdkGroupName(path: string) {

function getFernSdkMetadata(
path: string,
sdkReturnValue?: string
sdkReturnValue?: string | string[]
):
| {
"x-fern-ignore": true
Expand Down Expand Up @@ -53,7 +53,7 @@ export async function mapMethodsToFernSdkMetadata({
}: {
methods: RouteSpec["methods"]
path: string
sdkReturnValue?: string
sdkReturnValue?: string | string[]
}) {
const fernSdkMetadata = getFernSdkMetadata(path, sdkReturnValue)
if (methods.length === 1) {
Expand Down
5 changes: 4 additions & 1 deletion packages/nextlove/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export interface RouteSpec<
middlewares?: Middlewares
jsonResponse?: JsonResponse
formData?: FormData
sdkReturnValue?: string
/**
* add x-fern-sdk-return-value to the openapi spec, useful when you want to return only a subset of the response
*/
sdkReturnValue?: string | string[]
}

export type MiddlewareChainOutput<
Expand Down

0 comments on commit 8e96b2e

Please sign in to comment.