Skip to content

Commit

Permalink
Use language metadata for ClientName (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
joheredi authored Jun 23, 2020
1 parent 12ae094 commit 37f744b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transforms/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ export async function transformCodeModel(
codeModel: CodeModel,
host: Host
): Promise<ClientDetails> {
const { name: clientName } = getLanguageMetadata(codeModel.language);
const className = normalizeName(
codeModel.info.title,
clientName,
NameType.Class,
true /** shouldGuard */
);

normalizeModelWithExtensions(codeModel);

const [uberParents, operationGroups] = await Promise.all([
Expand Down

0 comments on commit 37f744b

Please sign in to comment.