Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
live1206 committed Jul 30, 2024
1 parent c532e9c commit dbbc42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typespec-autorest/src/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ export async function getOpenAPIForService(
const encodedName = resolveEncodedName(program, type, "application/json");
// Pick the value set via `encodedName` or default back to the legacy projection otherwise.
// `resolveEncodedName` will return the original name if no @encodedName so we have to do that check
return encodedName === type.name ? viaProjection ?? type.name : encodedName;
return encodedName === type.name ? (viaProjection ?? type.name) : encodedName;
}

function emitEndpointParameters(methodParams: HttpOperationParameters, visibility: Visibility) {
Expand Down

0 comments on commit dbbc42d

Please sign in to comment.