Skip to content

Commit

Permalink
Add CodeLanguage test code generator
Browse files Browse the repository at this point in the history
  • Loading branch information
lf94 committed Oct 11, 2024
1 parent 7ad9827 commit 9406e31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/apiGen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ export default async function apiGen(lookup: any) {
inputParamsExamples.push(
`${name}: '${'31337'}'`,
);
} else if (
reffedSchema.type === 'string' &&
refName == 'CodeLanguage'
) {
inputParamsExamples.push(
`${name}: '${'node'}'`,
);
}
} else {
if (schema.type === 'number' || schema.type === 'integer') {
Expand Down

0 comments on commit 9406e31

Please sign in to comment.