Skip to content

Commit

Permalink
fix(oas-to-snippet): use correct val for registry identifier (#861)
Browse files Browse the repository at this point in the history
oops lol (my fault too, i should have looked more closely at the
snapshots)
  • Loading branch information
kanadgupta authored Apr 11, 2024
1 parent 2b3d339 commit c6177e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/oas-to-snippet/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function oasToSnippet(
}
});

const install = getClientInstallationInstructions(languages, lang, opts?.openapi?.variableName) || false;
const install = getClientInstallationInstructions(languages, lang, opts?.openapi?.registryIdentifier) || false;

try {
const code = snippet.convert(language, target, targetOpts);
Expand Down
4 changes: 2 additions & 2 deletions packages/oas-to-snippet/test/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ developers.loginUser({username: 'woof', password: 'barkbarkbark'})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));",
"highlightMode": "javascript",
"install": "npx api install developers",
"install": "npx api install @developers/v2.0#17273l2glm9fq4l5",
}
`;
Expand All @@ -511,7 +511,7 @@ sdk.loginUser({username: 'woof', password: 'barkbarkbark'})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));",
"highlightMode": "javascript",
"install": "npx api install {packageName}",
"install": "npx api install @developers/v2.0#17273l2glm9fq4l5",
}
`;
Expand Down

0 comments on commit c6177e2

Please sign in to comment.