@@ -219,7 +219,7 @@ func TestParser_ParseGeneralApiInfo(t *testing.T) {
219
219
"authorizationUrl": "https://example.com/oauth/authorize",
220
220
"tokenUrl": "https://example.com/oauth/token",
221
221
"scopes": {
222
- "admin": " Grants read and write access to administrative information"
222
+ "admin": "Grants read and write access to administrative information"
223
223
},
224
224
"x-tokenname": "id_token"
225
225
},
@@ -228,17 +228,17 @@ func TestParser_ParseGeneralApiInfo(t *testing.T) {
228
228
"flow": "application",
229
229
"tokenUrl": "https://example.com/oauth/token",
230
230
"scopes": {
231
- "admin": " Grants read and write access to administrative information",
232
- "write": " Grants write access"
231
+ "admin": "Grants read and write access to administrative information",
232
+ "write": "Grants write access"
233
233
}
234
234
},
235
235
"OAuth2Implicit": {
236
236
"type": "oauth2",
237
237
"flow": "implicit",
238
238
"authorizationUrl": "https://example.com/oauth/authorize",
239
239
"scopes": {
240
- "admin": " Grants read and write access to administrative information",
241
- "write": " Grants write access"
240
+ "admin": "Grants read and write access to administrative information",
241
+ "write": "Grants write access"
242
242
},
243
243
"x-google-audiences": "some_audience.google.com"
244
244
},
@@ -247,9 +247,9 @@ func TestParser_ParseGeneralApiInfo(t *testing.T) {
247
247
"flow": "password",
248
248
"tokenUrl": "https://example.com/oauth/token",
249
249
"scopes": {
250
- "admin": " Grants read and write access to administrative information",
251
- "read": " Grants read access",
252
- "write": " Grants write access"
250
+ "admin": "Grants read and write access to administrative information",
251
+ "read": "Grants read access",
252
+ "write": "Grants write access"
253
253
}
254
254
}
255
255
},
@@ -310,35 +310,35 @@ func TestParser_ParseGeneralApiInfoTemplated(t *testing.T) {
310
310
"authorizationUrl": "https://example.com/oauth/authorize",
311
311
"tokenUrl": "https://example.com/oauth/token",
312
312
"scopes": {
313
- "admin": " Grants read and write access to administrative information"
313
+ "admin": "Grants read and write access to administrative information"
314
314
}
315
315
},
316
316
"OAuth2Application": {
317
317
"type": "oauth2",
318
318
"flow": "application",
319
319
"tokenUrl": "https://example.com/oauth/token",
320
320
"scopes": {
321
- "admin": " Grants read and write access to administrative information",
322
- "write": " Grants write access"
321
+ "admin": "Grants read and write access to administrative information",
322
+ "write": "Grants write access"
323
323
}
324
324
},
325
325
"OAuth2Implicit": {
326
326
"type": "oauth2",
327
327
"flow": "implicit",
328
328
"authorizationUrl": "https://example.com/oauth/authorize",
329
329
"scopes": {
330
- "admin": " Grants read and write access to administrative information",
331
- "write": " Grants write access"
330
+ "admin": "Grants read and write access to administrative information",
331
+ "write": "Grants write access"
332
332
}
333
333
},
334
334
"OAuth2Password": {
335
335
"type": "oauth2",
336
336
"flow": "password",
337
337
"tokenUrl": "https://example.com/oauth/token",
338
338
"scopes": {
339
- "admin": " Grants read and write access to administrative information",
340
- "read": " Grants read access",
341
- "write": " Grants write access"
339
+ "admin": "Grants read and write access to administrative information",
340
+ "read": "Grants read access",
341
+ "write": "Grants write access"
342
342
}
343
343
}
344
344
},
@@ -635,7 +635,7 @@ func TestParser_ParseGeneralAPISecurity(t *testing.T) {
635
635
"authorizationUrl": "https://example.com/oauth/authorize",
636
636
"tokenUrl": "https://example.com/oauth/token",
637
637
"scopes": {
638
- "admin": " foo"
638
+ "admin": "foo"
639
639
}
640
640
}
641
641
}`
@@ -1336,35 +1336,35 @@ func TestParseSimpleApi_ForSnakecase(t *testing.T) {
1336
1336
"authorizationUrl": "https://example.com/oauth/authorize",
1337
1337
"tokenUrl": "https://example.com/oauth/token",
1338
1338
"scopes": {
1339
- "admin": " Grants read and write access to administrative information"
1339
+ "admin": "Grants read and write access to administrative information"
1340
1340
}
1341
1341
},
1342
1342
"OAuth2Application": {
1343
1343
"type": "oauth2",
1344
1344
"flow": "application",
1345
1345
"tokenUrl": "https://example.com/oauth/token",
1346
1346
"scopes": {
1347
- "admin": " Grants read and write access to administrative information",
1348
- "write": " Grants write access"
1347
+ "admin": "Grants read and write access to administrative information",
1348
+ "write": "Grants write access"
1349
1349
}
1350
1350
},
1351
1351
"OAuth2Implicit": {
1352
1352
"type": "oauth2",
1353
1353
"flow": "implicit",
1354
1354
"authorizationUrl": "https://example.com/oauth/authorize",
1355
1355
"scopes": {
1356
- "admin": " Grants read and write access to administrative information",
1357
- "write": " Grants write access"
1356
+ "admin": "Grants read and write access to administrative information",
1357
+ "write": "Grants write access"
1358
1358
}
1359
1359
},
1360
1360
"OAuth2Password": {
1361
1361
"type": "oauth2",
1362
1362
"flow": "password",
1363
1363
"tokenUrl": "https://example.com/oauth/token",
1364
1364
"scopes": {
1365
- "admin": " Grants read and write access to administrative information",
1366
- "read": " Grants read access",
1367
- "write": " Grants write access"
1365
+ "admin": "Grants read and write access to administrative information",
1366
+ "read": "Grants read access",
1367
+ "write": "Grants write access"
1368
1368
}
1369
1369
}
1370
1370
}
@@ -1792,35 +1792,35 @@ func TestParseSimpleApi_ForLowerCamelcase(t *testing.T) {
1792
1792
"authorizationUrl": "https://example.com/oauth/authorize",
1793
1793
"tokenUrl": "https://example.com/oauth/token",
1794
1794
"scopes": {
1795
- "admin": " Grants read and write access to administrative information"
1795
+ "admin": "Grants read and write access to administrative information"
1796
1796
}
1797
1797
},
1798
1798
"OAuth2Application": {
1799
1799
"type": "oauth2",
1800
1800
"flow": "application",
1801
1801
"tokenUrl": "https://example.com/oauth/token",
1802
1802
"scopes": {
1803
- "admin": " Grants read and write access to administrative information",
1804
- "write": " Grants write access"
1803
+ "admin": "Grants read and write access to administrative information",
1804
+ "write": "Grants write access"
1805
1805
}
1806
1806
},
1807
1807
"OAuth2Implicit": {
1808
1808
"type": "oauth2",
1809
1809
"flow": "implicit",
1810
1810
"authorizationUrl": "https://example.com/oauth/authorize",
1811
1811
"scopes": {
1812
- "admin": " Grants read and write access to administrative information",
1813
- "write": " Grants write access"
1812
+ "admin": "Grants read and write access to administrative information",
1813
+ "write": "Grants write access"
1814
1814
}
1815
1815
},
1816
1816
"OAuth2Password": {
1817
1817
"type": "oauth2",
1818
1818
"flow": "password",
1819
1819
"tokenUrl": "https://example.com/oauth/token",
1820
1820
"scopes": {
1821
- "admin": " Grants read and write access to administrative information",
1822
- "read": " Grants read access",
1823
- "write": " Grants write access"
1821
+ "admin": "Grants read and write access to administrative information",
1822
+ "read": "Grants read access",
1823
+ "write": "Grants write access"
1824
1824
}
1825
1825
}
1826
1826
}
0 commit comments