microsoft-graph-devx-api icon indicating copy to clipboard operation
microsoft-graph-devx-api copied to clipboard

back checks not single quotes for code snippets

Open jthake opened this issue 4 years ago • 1 comments

In trying to copy and paste code snippets. For instance const options = { authProvider, };

const client = Client.init(options);

let res = await client.api('/me/events/AAMkADY2Yzk0ZmJmLThmMjEtNDQ0YS05YWZhLTMyMzM3MzMyYTcyOQBGAAAAAAAOX8rHsxkYRqZEHoOnr2fZBwC7c8_JSsv-RKz0f16Ax1PeAAAAAAENAAC7c8_JSsv-RKz0f16Ax1PeAAAAZVggAAA=') .get();

If I then want to use something like this. return await getClient() .api(me/calendar/events/${id}) .get();

I have to change the single quotes to back checks for this to work. Can we have back checks by default in javascript? AB#6025

jthake avatar May 18 '20 17:05 jthake

To add to this: the current generator is inconsistent. It uses both single-quotes and double-quotes. This would make things consistent :D.

jasonjoh avatar Feb 23 '21 20:02 jasonjoh