Skip to content

Instantly share code, notes, and snippets.

@byaruhaf
Created September 30, 2023 20:15
Show Gist options
  • Save byaruhaf/d37f3618dc8b827fb91cec1e1cc0d89e to your computer and use it in GitHub Desktop.
Save byaruhaf/d37f3618dc8b827fb91cec1e1cc0d89e to your computer and use it in GitHub Desktop.
lint collection.json
❯ redocly lint collection.json [23:11:38]
No configurations were provided -- using built in recommended configuration by default.
validating collection.json...
[1] collection.json:1778:9 at #/paths/~1v2_0~1invoice~1{referenceId}
The path already exists which differs only by path parameter name(s): `/v2_0/invoice/{x-referenceId}` and `/v2_0/invoice/{referenceId}`.
1776 | }
1777 | },
1778 | "/v2_0/invoice/{referenceId}": {
1779 | "delete": {
1780 | "summary": "CancelInvoice",
Error was generated by the no-identical-paths rule.
[2] collection.json:2238:9 at #/paths/~1oauth2~1token~1
`/oauth2/token/` should not have a trailing slash.
2236 | }
2237 | },
2238 | "/oauth2/token/": {
2239 | "post": {
2240 | "summary": "CreateOauth2Token",
Error was generated by the no-path-trailing-slash rule.
[3] collection.json:2370:9 at #/paths/~1token~1
`/token/` should not have a trailing slash.
2368 | }
2369 | },
2370 | "/token/": {
2371 | "post": {
2372 | "summary": "CreateAccessToken",
Error was generated by the no-path-trailing-slash rule.
[4] collection.json:3:5 at #/info
Info object should contain `license` field.
1 | {
2 | "openapi": "3.0.1",
3 | "info": {
4 | "title": "Collection",
5 | "description": "Enable remote collection of bills, fees or taxes",
Warning was generated by the info-license rule.
[5] collection.json:1778:9 at #/paths/~1v2_0~1invoice~1{referenceId}
Paths should resolve unambiguously. Found two ambiguous paths: `/v2_0/invoice/{x-referenceId}` and `/v2_0/invoice/{referenceId}`.
1776 | }
1777 | },
1778 | "/v2_0/invoice/{referenceId}": {
1779 | "delete": {
1780 | "summary": "CancelInvoice",
Warning was generated by the no-ambiguous-paths rule.
[6] collection.json:58:50 at #/paths/~1v1_0~1account~1balance/get/responses/200/content/Incorrect target environment/examples/default/value
Example value must conform to the schema: type must be object.
56 | "examples": {
57 | "default": {
58 | "value": null
59 | }
60 | }
referenced from collection.json:52:61 at #/paths/~1v1_0~1account~1balance/get/responses/200/content/Incorrect target environment
Warning was generated by the no-invalid-media-type-examples rule.
[7] collection.json:276:50 at #/paths/~1v1_0~1requesttopay/post/responses/409/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
274 | "examples": {
275 | "default": {
276 | "value": null
277 | }
278 | }
referenced from collection.json:270:59 at #/paths/~1v1_0~1requesttopay/post/responses/409/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[8] collection.json:309:50 at #/paths/~1v1_0~1requesttopay/post/responses/500/content/ReferenceId already in use/examples/default/value
Example value must conform to the schema: type must be object.
307 | "examples": {
308 | "default": {
309 | "value": null
310 | }
311 | }
referenced from collection.json:303:59 at #/paths/~1v1_0~1requesttopay/post/responses/500/content/ReferenceId already in use
Warning was generated by the no-invalid-media-type-examples rule.
[9] collection.json:361:47 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay/example/amount
Example value must conform to the schema: `amount` property type must be string.
359 | },
360 | "example": {
361 | "amount": 100,
362 | "currency": "UGX",
363 | "financialTransactionId": 23503452,
referenced from collection.json:356:58 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[10] collection.json:363:63 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay/example/financialTransactionId
Example value must conform to the schema: `financialTransactionId` property type must be string.
361 | "amount": 100,
362 | "currency": "UGX",
363 | "financialTransactionId": 23503452,
364 | "externalId": 947354,
365 | "payer": {
referenced from collection.json:356:58 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[11] collection.json:364:51 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay/example/externalId
Example value must conform to the schema: `externalId` property type must be string.
362 | "currency": "UGX",
363 | "financialTransactionId": 23503452,
364 | "externalId": 947354,
365 | "payer": {
366 | "partyIdType": "MSISDN",
referenced from collection.json:356:58 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[12] collection.json:367:52 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay/example/payer/partyId
Example value must conform to the schema: `partyId` property type must be string.
365 | "payer": {
366 | "partyIdType": "MSISDN",
367 | "partyId": 4656473839
368 | },
369 | "status": "SUCCESSFUL"
referenced from collection.json:356:58 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[13] collection.json:377:47 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Payer not found/example/amount
Example value must conform to the schema: `amount` property type must be string.
375 | },
376 | "example": {
377 | "amount": 100,
378 | "currency": "UGX",
379 | "externalId": 947354,
referenced from collection.json:372:48 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[14] collection.json:379:51 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Payer not found/example/externalId
Example value must conform to the schema: `externalId` property type must be string.
377 | "amount": 100,
378 | "currency": "UGX",
379 | "externalId": 947354,
380 | "payer": {
381 | "partyIdType": "MSISDN",
referenced from collection.json:372:48 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[15] collection.json:382:52 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Payer not found/example/payer/partyId
Example value must conform to the schema: `partyId` property type must be string.
380 | "payer": {
381 | "partyIdType": "MSISDN",
382 | "partyId": 4656473839
383 | },
384 | "status": "FAILED",
referenced from collection.json:372:48 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[16] collection.json:419:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Request to pay not found/examples/default/value
Example value must conform to the schema: type must be object.
417 | "examples": {
418 | "default": {
419 | "value": null
420 | }
421 | }
referenced from collection.json:413:57 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Request to pay not found
Warning was generated by the no-invalid-media-type-examples rule.
[17] collection.json:429:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
427 | "examples": {
428 | "default": {
429 | "value": null
430 | }
431 | }
referenced from collection.json:423:59 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/200/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[18] collection.json:463:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/404/content/Successful request to pay/examples/default/value
Example value must conform to the schema: type must be object.
461 | "examples": {
462 | "default": {
463 | "value": null
464 | }
465 | }
referenced from collection.json:457:58 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/404/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[19] collection.json:473:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/404/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
471 | "examples": {
472 | "default": {
473 | "value": null
474 | }
475 | }
referenced from collection.json:467:48 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/404/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[20] collection.json:492:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/404/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
490 | "examples": {
491 | "default": {
492 | "value": null
493 | }
494 | }
referenced from collection.json:486:59 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/404/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[21] collection.json:516:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/500/content/Successful request to pay/examples/default/value
Example value must conform to the schema: type must be object.
514 | "examples": {
515 | "default": {
516 | "value": null
517 | }
518 | }
referenced from collection.json:510:58 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/500/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[22] collection.json:526:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/500/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
524 | "examples": {
525 | "default": {
526 | "value": null
527 | }
528 | }
referenced from collection.json:520:48 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/500/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[23] collection.json:545:50 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/500/content/Request to pay not found/examples/default/value
Example value must conform to the schema: type must be object.
543 | "examples": {
544 | "default": {
545 | "value": null
546 | }
547 | }
referenced from collection.json:539:57 at #/paths/~1v1_0~1requesttopay~1{referenceId}/get/responses/500/content/Request to pay not found
Warning was generated by the no-invalid-media-type-examples rule.
[24] collection.json:594:17 at #/paths/~1v1_0~1bc-authorize/post/responses
Operation must have at least one `4XX` response.
592 | }
593 | },
594 | "responses": {
595 | "200": {
596 | "description": "OK",
Warning was generated by the operation-4xx-response rule.
[25] collection.json:850:50 at #/paths/~1v1_0~1account~1balance~1{currency}/get/responses/200/content/Incorrect target environment/examples/default/value
Example value must conform to the schema: type must be object.
848 | "examples": {
849 | "default": {
850 | "value": null
851 | }
852 | }
referenced from collection.json:844:61 at #/paths/~1v1_0~1account~1balance~1{currency}/get/responses/200/content/Incorrect target environment
Warning was generated by the no-invalid-media-type-examples rule.
[26] collection.json:995:50 at #/paths/~1v1_0~1requesttowithdraw/post/responses/409/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
993 | "examples": {
994 | "default": {
995 | "value": null
996 | }
997 | }
referenced from collection.json:989:59 at #/paths/~1v1_0~1requesttowithdraw/post/responses/409/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[27] collection.json:1028:50 at #/paths/~1v1_0~1requesttowithdraw/post/responses/500/content/ReferenceId already in use/examples/default/value
Example value must conform to the schema: type must be object.
1026 | "examples": {
1027 | "default": {
1028 | "value": null
1029 | }
1030 | }
referenced from collection.json:1022:59 at #/paths/~1v1_0~1requesttowithdraw/post/responses/500/content/ReferenceId already in use
Warning was generated by the no-invalid-media-type-examples rule.
[28] collection.json:1143:50 at #/paths/~1v2_0~1requesttowithdraw/post/responses/409/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
1141 | "examples": {
1142 | "default": {
1143 | "value": null
1144 | }
1145 | }
referenced from collection.json:1137:59 at #/paths/~1v2_0~1requesttowithdraw/post/responses/409/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[29] collection.json:1176:50 at #/paths/~1v2_0~1requesttowithdraw/post/responses/500/content/ReferenceId already in use/examples/default/value
Example value must conform to the schema: type must be object.
1174 | "examples": {
1175 | "default": {
1176 | "value": null
1177 | }
1178 | }
referenced from collection.json:1170:59 at #/paths/~1v2_0~1requesttowithdraw/post/responses/500/content/ReferenceId already in use
Warning was generated by the no-invalid-media-type-examples rule.
[30] collection.json:1228:47 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay/example/amount
Example value must conform to the schema: `amount` property type must be string.
1226 | },
1227 | "example": {
1228 | "amount": 100,
1229 | "currency": "UGX",
1230 | "financialTransactionId": 23503452,
referenced from collection.json:1223:58 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[31] collection.json:1230:63 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay/example/financialTransactionId
Example value must conform to the schema: `financialTransactionId` property type must be string.
1228 | "amount": 100,
1229 | "currency": "UGX",
1230 | "financialTransactionId": 23503452,
1231 | "externalId": 947354,
1232 | "payer": {
referenced from collection.json:1223:58 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[32] collection.json:1231:51 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay/example/externalId
Example value must conform to the schema: `externalId` property type must be string.
1229 | "currency": "UGX",
1230 | "financialTransactionId": 23503452,
1231 | "externalId": 947354,
1232 | "payer": {
1233 | "partyIdType": "MSISDN",
referenced from collection.json:1223:58 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[33] collection.json:1234:52 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay/example/payer/partyId
Example value must conform to the schema: `partyId` property type must be string.
1232 | "payer": {
1233 | "partyIdType": "MSISDN",
1234 | "partyId": 4656473839
1235 | },
1236 | "status": "SUCCESSFUL"
referenced from collection.json:1223:58 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[34] collection.json:1244:47 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Payer not found/example/amount
Example value must conform to the schema: `amount` property type must be string.
1242 | },
1243 | "example": {
1244 | "amount": 100,
1245 | "currency": "UGX",
1246 | "externalId": 947354,
referenced from collection.json:1239:48 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[35] collection.json:1246:51 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Payer not found/example/externalId
Example value must conform to the schema: `externalId` property type must be string.
1244 | "amount": 100,
1245 | "currency": "UGX",
1246 | "externalId": 947354,
1247 | "payer": {
1248 | "partyIdType": "MSISDN",
referenced from collection.json:1239:48 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[36] collection.json:1249:52 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Payer not found/example/payer/partyId
Example value must conform to the schema: `partyId` property type must be string.
1247 | "payer": {
1248 | "partyIdType": "MSISDN",
1249 | "partyId": 4656473839
1250 | },
1251 | "status": "FAILED",
referenced from collection.json:1239:48 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[37] collection.json:1286:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Request to pay not found/examples/default/value
Example value must conform to the schema: type must be object.
1284 | "examples": {
1285 | "default": {
1286 | "value": null
1287 | }
1288 | }
referenced from collection.json:1280:57 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Request to pay not found
Warning was generated by the no-invalid-media-type-examples rule.
[38] collection.json:1296:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
1294 | "examples": {
1295 | "default": {
1296 | "value": null
1297 | }
1298 | }
referenced from collection.json:1290:59 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/200/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[39] collection.json:1330:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/404/content/Successful request to pay/examples/default/value
Example value must conform to the schema: type must be object.
1328 | "examples": {
1329 | "default": {
1330 | "value": null
1331 | }
1332 | }
referenced from collection.json:1324:58 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/404/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[40] collection.json:1340:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/404/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
1338 | "examples": {
1339 | "default": {
1340 | "value": null
1341 | }
1342 | }
referenced from collection.json:1334:48 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/404/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[41] collection.json:1359:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/404/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
1357 | "examples": {
1358 | "default": {
1359 | "value": null
1360 | }
1361 | }
referenced from collection.json:1353:59 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/404/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[42] collection.json:1383:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/500/content/Successful request to pay/examples/default/value
Example value must conform to the schema: type must be object.
1381 | "examples": {
1382 | "default": {
1383 | "value": null
1384 | }
1385 | }
referenced from collection.json:1377:58 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/500/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[43] collection.json:1393:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/500/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
1391 | "examples": {
1392 | "default": {
1393 | "value": null
1394 | }
1395 | }
referenced from collection.json:1387:48 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/500/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[44] collection.json:1412:50 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/500/content/Request to pay not found/examples/default/value
Example value must conform to the schema: type must be object.
1410 | "examples": {
1411 | "default": {
1412 | "value": null
1413 | }
1414 | }
referenced from collection.json:1406:57 at #/paths/~1v1_0~1requesttowithdraw~1{referenceId}/get/responses/500/content/Request to pay not found
Warning was generated by the no-invalid-media-type-examples rule.
[45] collection.json:1531:50 at #/paths/~1v2_0~1invoice/post/responses/409/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
1529 | "examples": {
1530 | "default": {
1531 | "value": null
1532 | }
1533 | }
referenced from collection.json:1525:59 at #/paths/~1v2_0~1invoice/post/responses/409/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[46] collection.json:1564:50 at #/paths/~1v2_0~1invoice/post/responses/500/content/ReferenceId already in use/examples/default/value
Example value must conform to the schema: type must be object.
1562 | "examples": {
1563 | "default": {
1564 | "value": null
1565 | }
1566 | }
referenced from collection.json:1558:59 at #/paths/~1v2_0~1invoice/post/responses/500/content/ReferenceId already in use
Warning was generated by the no-invalid-media-type-examples rule.
[47] collection.json:1617:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Successful Invoice Created/examples/default/value
Example value must conform to the schema: type must be object.
1615 | "examples": {
1616 | "default": {
1617 | "value": null
1618 | }
1619 | }
referenced from collection.json:1611:59 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Successful Invoice Created
Warning was generated by the no-invalid-media-type-examples rule.
[48] collection.json:1627:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
1625 | "examples": {
1626 | "default": {
1627 | "value": null
1628 | }
1629 | }
referenced from collection.json:1621:48 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[49] collection.json:1663:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Request to pay not found/examples/default/value
Example value must conform to the schema: type must be object.
1661 | "examples": {
1662 | "default": {
1663 | "value": null
1664 | }
1665 | }
referenced from collection.json:1657:57 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Request to pay not found
Warning was generated by the no-invalid-media-type-examples rule.
[50] collection.json:1673:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
1671 | "examples": {
1672 | "default": {
1673 | "value": null
1674 | }
1675 | }
referenced from collection.json:1667:59 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/200/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[51] collection.json:1707:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/404/content/Successful request to pay/examples/default/value
Example value must conform to the schema: type must be object.
1705 | "examples": {
1706 | "default": {
1707 | "value": null
1708 | }
1709 | }
referenced from collection.json:1701:58 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/404/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[52] collection.json:1717:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/404/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
1715 | "examples": {
1716 | "default": {
1717 | "value": null
1718 | }
1719 | }
referenced from collection.json:1711:48 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/404/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[53] collection.json:1736:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/404/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
1734 | "examples": {
1735 | "default": {
1736 | "value": null
1737 | }
1738 | }
referenced from collection.json:1730:59 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/404/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[54] collection.json:1769:50 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/500/content/Request to pay not found/examples/default/value
Example value must conform to the schema: type must be object.
1767 | "examples": {
1768 | "default": {
1769 | "value": null
1770 | }
1771 | }
referenced from collection.json:1763:57 at #/paths/~1v2_0~1invoice~1{x-referenceId}/get/responses/500/content/Request to pay not found
Warning was generated by the no-invalid-media-type-examples rule.
[55] collection.json:1876:50 at #/paths/~1v2_0~1invoice~1{referenceId}/delete/responses/200/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
1874 | "examples": {
1875 | "default": {
1876 | "value": null
1877 | }
1878 | }
referenced from collection.json:1870:48 at #/paths/~1v2_0~1invoice~1{referenceId}/delete/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[56] collection.json:1930:50 at #/paths/~1v2_0~1invoice~1{referenceId}/delete/responses/404/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
1928 | "examples": {
1929 | "default": {
1930 | "value": null
1931 | }
1932 | }
referenced from collection.json:1924:59 at #/paths/~1v2_0~1invoice~1{referenceId}/delete/responses/404/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[57] collection.json:2017:49 at #/paths/~1v2_0~1preapproval/post/requestBody/content/application~1json/example/validityTime
Example value must conform to the schema: `validityTime` property type must be integer.
2015 | "payerCurrency": "string(The currency code of the sending account. Amount to be paid.)",
2016 | "payerMessage": "string (Message to the end user.)",
2017 | "validityTime": "integer (The time duration in seconds that the pre-approval is valid once it is accepted.)"
2018 | }
2019 | }
referenced from collection.json:2006:45 at #/paths/~1v2_0~1preapproval/post/requestBody/content/application~1json
Warning was generated by the no-invalid-media-type-examples rule.
[58] collection.json:2072:50 at #/paths/~1v2_0~1preapproval/post/responses/409/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
2070 | "examples": {
2071 | "default": {
2072 | "value": null
2073 | }
2074 | }
referenced from collection.json:2066:59 at #/paths/~1v2_0~1preapproval/post/responses/409/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[59] collection.json:2139:50 at #/paths/~1v2_0~1preapproval~1{referenceId}/get/responses/200/content/Successful Invoice Created/examples/default/value
Example value must conform to the schema: type must be object.
2137 | "examples": {
2138 | "default": {
2139 | "value": null
2140 | }
2141 | }
referenced from collection.json:2133:59 at #/paths/~1v2_0~1preapproval~1{referenceId}/get/responses/200/content/Successful Invoice Created
Warning was generated by the no-invalid-media-type-examples rule.
[60] collection.json:2149:50 at #/paths/~1v2_0~1preapproval~1{referenceId}/get/responses/200/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
2147 | "examples": {
2148 | "default": {
2149 | "value": null
2150 | }
2151 | }
referenced from collection.json:2143:48 at #/paths/~1v2_0~1preapproval~1{referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[61] collection.json:2206:50 at #/paths/~1v2_0~1preapproval~1{referenceId}/get/responses/404/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
2204 | "examples": {
2205 | "default": {
2206 | "value": null
2207 | }
2208 | }
referenced from collection.json:2200:59 at #/paths/~1v2_0~1preapproval~1{referenceId}/get/responses/404/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[62] collection.json:2283:17 at #/paths/~1oauth2~1token~1/post/responses
Operation must have at least one `4XX` response.
2281 | }
2282 | },
2283 | "responses": {
2284 | "200": {
2285 | "description": "OK",
Warning was generated by the operation-4xx-response rule.
[63] collection.json:2330:17 at #/paths/~1oauth2~1v1_0~1userinfo/get/responses
Operation must have at least one `4XX` response.
2328 | }
2329 | ],
2330 | "responses": {
2331 | "200": {
2332 | "description": "OK",
Warning was generated by the operation-4xx-response rule.
[64] collection.json:2528:50 at #/paths/~1v2_0~1payment/post/responses/409/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
2526 | "examples": {
2527 | "default": {
2528 | "value": null
2529 | }
2530 | }
referenced from collection.json:2522:59 at #/paths/~1v2_0~1payment/post/responses/409/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[65] collection.json:2561:50 at #/paths/~1v2_0~1payment/post/responses/500/content/ReferenceId already in use/examples/default/value
Example value must conform to the schema: type must be object.
2559 | "examples": {
2560 | "default": {
2561 | "value": null
2562 | }
2563 | }
referenced from collection.json:2555:59 at #/paths/~1v2_0~1payment/post/responses/500/content/ReferenceId already in use
Warning was generated by the no-invalid-media-type-examples rule.
[66] collection.json:2614:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Successful Payment Created/examples/default/value
Example value must conform to the schema: type must be object.
2612 | "examples": {
2613 | "default": {
2614 | "value": null
2615 | }
2616 | }
referenced from collection.json:2608:59 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Successful Payment Created
Warning was generated by the no-invalid-media-type-examples rule.
[67] collection.json:2624:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
2622 | "examples": {
2623 | "default": {
2624 | "value": null
2625 | }
2626 | }
referenced from collection.json:2618:48 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[68] collection.json:2647:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Payment not found/examples/default/value
Example value must conform to the schema: type must be object.
2645 | "examples": {
2646 | "default": {
2647 | "value": null
2648 | }
2649 | }
referenced from collection.json:2641:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Payment not found
Warning was generated by the no-invalid-media-type-examples rule.
[69] collection.json:2657:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
2655 | "examples": {
2656 | "default": {
2657 | "value": null
2658 | }
2659 | }
referenced from collection.json:2651:59 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/200/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[70] collection.json:2691:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/404/content/Successful request to pay/examples/default/value
Example value must conform to the schema: type must be object.
2689 | "examples": {
2690 | "default": {
2691 | "value": null
2692 | }
2693 | }
referenced from collection.json:2685:58 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/404/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[71] collection.json:2701:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/404/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
2699 | "examples": {
2700 | "default": {
2701 | "value": null
2702 | }
2703 | }
referenced from collection.json:2695:48 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/404/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[72] collection.json:2720:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/404/content/Unspecified internal error/examples/default/value
Example value must conform to the schema: type must be object.
2718 | "examples": {
2719 | "default": {
2720 | "value": null
2721 | }
2722 | }
referenced from collection.json:2714:59 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/404/content/Unspecified internal error
Warning was generated by the no-invalid-media-type-examples rule.
[73] collection.json:2744:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/500/content/Successful request to pay/examples/default/value
Example value must conform to the schema: type must be object.
2742 | "examples": {
2743 | "default": {
2744 | "value": null
2745 | }
2746 | }
referenced from collection.json:2738:58 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/500/content/Successful request to pay
Warning was generated by the no-invalid-media-type-examples rule.
[74] collection.json:2754:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/500/content/Payer not found/examples/default/value
Example value must conform to the schema: type must be object.
2752 | "examples": {
2753 | "default": {
2754 | "value": null
2755 | }
2756 | }
referenced from collection.json:2748:48 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/500/content/Payer not found
Warning was generated by the no-invalid-media-type-examples rule.
[75] collection.json:2773:50 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/500/content/Request to pay not found/examples/default/value
Example value must conform to the schema: type must be object.
2771 | "examples": {
2772 | "default": {
2773 | "value": null
2774 | }
2775 | }
referenced from collection.json:2767:57 at #/paths/~1v2_0~1payment~1{x-referenceId}/get/responses/500/content/Request to pay not found
Warning was generated by the no-invalid-media-type-examples rule.
[76] collection.json:2814:13 at #/components/schemas/bcauthorize
Component: "bcauthorize" is never used.
2812 | }
2813 | },
2814 | "bcauthorize": {
2815 | "type": "object",
2816 | "properties": {
Warning was generated by the no-unused-components rule.
[77] collection.json:2881:13 at #/components/schemas/oauth2TokenRequest
Component: "oauth2TokenRequest" is never used.
2879 | }
2880 | },
2881 | "oauth2TokenRequest": {
2882 | "type": "object",
2883 | "properties": {
Warning was generated by the no-unused-components rule.
[78] collection.json:3028:13 at #/components/schemas/address
Component: "address" is never used.
3026 | }
3027 | },
3028 | "address": {
3029 | "type": "object",
3030 | "properties": {
Warning was generated by the no-unused-components rule.
[79] collection.json:3168:13 at #/components/schemas/Transfer
Component: "Transfer" is never used.
3166 | }
3167 | },
3168 | "Transfer": {
3169 | "type": "object",
3170 | "properties": {
Warning was generated by the no-unused-components rule.
[80] collection.json:3196:13 at #/components/schemas/TransferResult
Component: "TransferResult" is never used.
3194 | }
3195 | },
3196 | "TransferResult": {
3197 | "type": "object",
3198 | "properties": {
Warning was generated by the no-unused-components rule.
[81] collection.json:3505:13 at #/components/schemas/BooleanResult
Component: "BooleanResult" is never used.
3503 | }
3504 | },
3505 | "BooleanResult": {
3506 | "type": "object",
3507 | "properties": {
Warning was generated by the no-unused-components rule.
collection.json: validated in 458ms
❌ Validation failed with 3 errors and 78 warnings.
run `redocly lint --generate-ignore-file` to add all problems to the ignore file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment