Open ZmnSCPxj-jr opened 7 months ago
https://nullprogram.com/blog/2019/12/28/
LSPS0 Common Schemas describes "Client rejected" as 001 https://github.com/BitcoinAndLightningLayerSpecs/lsp/blob/main/LSPS0/common-schemas.md#001-client-rejected however JSON does not support numbers with leading 0s. I suggest rewriting it as 1 instead to prevent misleading implementations into actually writing an actual 001 in the actual JSON.
001
1
Ack. I think this reasoning is stronger than "error codes should always have at least 3 digits for it to be recognizable".
https://nullprogram.com/blog/2019/12/28/
LSPS0 Common Schemas describes "Client rejected" as
001
https://github.com/BitcoinAndLightningLayerSpecs/lsp/blob/main/LSPS0/common-schemas.md#001-client-rejected however JSON does not support numbers with leading 0s. I suggest rewriting it as1
instead to prevent misleading implementations into actually writing an actual001
in the actual JSON.