Skip to content

Commit

Permalink
fix: code format failing on void, and object
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewuu committed Sep 25, 2024
1 parent af4fad1 commit 86623e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/code-sample/create-json-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const createJsonResponse = (
context: Context,
): string => {
const { endpoint } = context
if (endpoint.response.responseType === 'void') return 'void'
if (endpoint.response.responseType === 'void') return '// void'
const { responseKey } = endpoint.response
const data = response?.body?.[responseKey]
if (data == null) {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/code-sample/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const createCodeSample = async (
request: createJavascriptRequest(codeSampleDefinition, context),
response: createJavascriptResponse(codeSampleDefinition, context),
request_syntax: 'javascript',
response_syntax: 'javascript',
response_syntax: 'json',
},
python: {
title: 'Python',
Expand Down

0 comments on commit 86623e3

Please sign in to comment.