Skip to content

Commit c7d5b9c

Browse files
committed
capitalize jsonType
1 parent 6e4b41b commit c7d5b9c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/lib/layout/api-endpoint.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
mapBlueprintPropertyToRouteProperty,
1414
normalizePropertyFormatForDocs,
1515
} from './api-route.js'
16+
import { capitalCase } from 'change-case'
1617

1718
const supportedSdks: SdkName[] = [
1819
'javascript',
@@ -63,7 +64,7 @@ interface ApiEndpointParameter {
6364
itemFormat?: string
6465
itemEnumValues?: string[]
6566
objectParameters?: ApiEndpointParameter[]
66-
jsonType: Parameter['jsonType']
67+
jsonType: string
6768
}
6869

6970
interface CodeSampleContext {
@@ -176,7 +177,7 @@ const mapBlueprintParamToEndpointParam = (
176177
format: normalizePropertyFormatForDocs(param.format),
177178
isDeprecated: param.isDeprecated,
178179
deprecationMessage: param.deprecationMessage,
179-
jsonType: param.jsonType,
180+
jsonType: capitalCase(param.jsonType),
180181

181182
...(param.format === 'enum' && {
182183
enumValues: param.values.map(({ name }) => name),

0 commit comments

Comments
 (0)