--- Log opened Fri May 27 00:00:35 2022 00:47 -!- befalou_ [~befalou@gateway/tor-sasl/befalou] has quit [Remote host closed the connection] 00:48 -!- befalou_ [~befalou@gateway/tor-sasl/befalou] has joined #c-lightning 01:04 -!- befalou__ [~befalou@gateway/tor-sasl/befalou] has joined #c-lightning 01:05 -!- befalou_ [~befalou@gateway/tor-sasl/befalou] has quit [Remote host closed the connection] 01:24 -!- befalou__ is now known as befalou 02:03 -!- kexkey [~kexkey@178.249.214.10] has quit [Ping timeout: 246 seconds] 02:06 -!- kexkey [~kexkey@178.249.214.25] has joined #c-lightning 03:06 -!- opsec_x122 [~opsec_x12@44-25-143-42.ip.hamwan.net] has joined #c-lightning 03:09 -!- opsec_x12 [~opsec_x12@44-25-143-42.ip.hamwan.net] has quit [Ping timeout: 246 seconds] 03:11 -!- stonefox [~stonefox@user/stonefox] has quit [Quit: The Lounge - https://thelounge.chat] 03:12 -!- bfsfhkacjzgcytf9 [~bfsfhkacj@user/bfsfhkacjzgcytf] has joined #c-lightning 03:12 -!- stonefox4 [~stonefox@user/stonefox] has joined #c-lightning 04:02 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has joined #c-lightning 04:55 -!- jonatack [~jonatack@user/jonatack] has quit [Ping timeout: 255 seconds] 05:06 -!- sr_gi[m] [~srgimatri@2001:470:69fc:105::1:c14c] has joined #c-lightning 05:09 -!- endothermicdev_ [~endotherm@99-98-58-43.lightspeed.tulsok.sbcglobal.net] has quit [Quit: Leaving] 05:26 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 240 seconds] 05:39 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 05:44 < AdityaSharma[m]> Is their any reason why it is assumed in `fromschema.py` It is assumed that if the len(toplevel) == 1 and type is "array",(line 255) the items must be an object? 05:44 < AdityaSharma[m]> I am trying to parse... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/70c38a12e14932ea6d07ef5146f6370c3592293f) 05:45 < AdityaSharma[m]> *"type": "hex" 05:51 * AdityaSharma[m] uploaded an image: (52KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/hiPKTMvIcHcyjELyQEkDgrMK/Screenshot%20from%202022-05-27%2018-20-50.png > 06:00 < openoms[m]> "Screenshot from 2022-05-27 18-20..." <- how about using the -H option to skip the JSON format 06:02 < AdityaSharma[m]> I am not trying to parse this response, I am just writing a man page which scrapes the json.schema of the response using the file `fromschema.py`.. 06:20 < vincenzopalazzo> Aditya Sharma: what is your error? 06:20 < vincenzopalazzo> Can you paste it here 06:20 < vincenzopalazzo> ? 06:32 < AdityaSharma[m]> fromschema doc/lightning-staticbackup.7.md... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/7e03e3357dbb58593050c51466c5f902d00f8ece) 06:33 < AdityaSharma[m]> > <@1aditya:matrix.org> I am trying to parse... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/7b62738342a703927ce8cad6c4c5252515541bf8) 06:55 < vincenzopalazzo> this looks like a python error `KeyError: 'properties'` that tell that your json is without `properties` key 06:55 < vincenzopalazzo> the schema looks good 06:57 < AdityaSharma[m]> It actually assumes that if there is one property and it is an array then the item must be an array.. 06:59 < AdityaSharma[m]> elif len(toplevels) == 1 and props[toplevels[0]]['type'] == 'array':... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/062e9f61c7c37be7843704f95b4742a2b3dd7fb4) 06:59 < AdityaSharma[m]> `... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/2be853996848d7ae8e25cba18a4f3c8d93d777ab) 07:02 < AdityaSharma[m]> I've manually entered the return-type in man page, hope that's not a problem.. 07:05 < vincenzopalazzo> "It actually assumes that if..." <- mh but the array can be empty, how the listpeers schema works in this case? have you check it? 07:10 < AdityaSharma[m]> this is just for writing the man-page, i don't think this has anything to do with the actual command-result, listpeer's JSON mentions array-item as object.. 07:13 < vincenzopalazzo> AdityaSharma[m]: oh! now I understand! 07:13 < vincenzopalazzo> Yes you catch the bug in the fromschema :) 07:14 < vincenzopalazzo> maybe you can cherrypick the commit to add this fix, and make a new PR? 07:15 < AdityaSharma[m]> Yes, Right now I am working on the SCB PR (Hopefully will be completed by today). I'll do this after that. 10:36 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has joined #c-lightning 10:55 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 240 seconds] 11:05 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has joined #c-lightning 11:25 -!- jarthur [~jarthur@user/jarthur] has quit [Quit: jarthur] 11:28 -!- jonatack [~jonatack@user/jonatack] has joined #c-lightning 11:55 -!- jarthur [~jarthur@user/jarthur] has joined #c-lightning 12:56 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 240 seconds] 13:49 -!- DeanGuss [~dean@user/deanguss] has quit [Quit: buhbye] 14:03 -!- DeanGuss [~dean@nonplayercharacter.me] has joined #c-lightning 14:03 -!- DeanGuss [~dean@nonplayercharacter.me] has quit [Changing host] 14:03 -!- DeanGuss [~dean@user/deanguss] has joined #c-lightning 14:52 -!- bilthon [~bilthon@38.25.13.2] has joined #c-lightning 15:22 -!- bilthon [~bilthon@38.25.13.2] has quit [Ping timeout: 252 seconds] 16:35 -!- bfsfhkacjzgcytf9 [~bfsfhkacj@user/bfsfhkacjzgcytf] has quit [Quit: The Lounge - https://thelounge.chat] 16:35 -!- stonefox4 [~stonefox@user/stonefox] has quit [Quit: The Lounge - https://thelounge.chat] 16:50 -!- stonefox4 [~stonefox@user/stonefox] has joined #c-lightning 16:50 -!- bfsfhkacjzgcytf9 [~bfsfhkacj@user/bfsfhkacjzgcytf] has joined #c-lightning 19:28 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has joined #c-lightning 19:34 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 240 seconds] 19:48 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has joined #c-lightning 19:54 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 240 seconds] 20:07 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has joined #c-lightning 20:15 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 240 seconds] 20:32 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has joined #c-lightning 21:15 -!- jarthur [~jarthur@user/jarthur] has quit [Quit: jarthur] 23:57 -!- evanlinjin_ [~evanlinji@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 240 seconds] --- Log closed Sat May 28 00:00:36 2022