You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're deep in the code and involved in every new feature/change about cardano-cli, than this might not be an issue. But, for developers that are not that involved or that are new to cardano, its sometimes a bit of a pain to do a proper interpretation of certain cardano-cli query outputs.
I am not talking about the basic outputs like a utxo query or a stake-address-info query, those json outputs are well documented with there key naming schema alone imo.
When it comes to outputs like governance action queries, than its going to be more difficult. Let me give you an example:
If you are new to such an output you may wonder "whats the null entry?" or "whats the empty array" or "whats the number behind the keyHash entries"... etc. Btw, that object with denominator and numerator can also change to just a decimal number, if it has a finite number of decimals 😱 So, two different outputs for the same thing. Its not an issue, if documented!
Yes you can read out some basic infos, but there are 3 cascaded arrays. So, which one can actually hold more than one treasury withdrawal request? Can there even be more entries in an array or is it always just one?
As you can see, there are many of those.
This issue is not about changing the output! That is currently out of scope imo, because it would be too many breaking changes for 3rd party tools.
Its ok that the data output looks like it does, saving space and not having key/value pairs on every entry. But it lacks documentation. 😞
So, the intention of this gh issue is to raise awareness to somehow provide better documentation for existing and new developers and users in general.
It would be nice to have such a documentation on a website in a normal text form, or PDF, or similar.
Also it would be nice to have such a documentation like those familiar REST API documentation sites, where you can see all available commands and there outputs (maybe driven by goldentest sources?) via a TRY button or so. Developers are very familiar with such sites and they like them.
The documentation should of course cover every cardano-cli output, not just governance related ones like use in the examples.
Ok, this was just a quick first entry to raise this issue. Looking forwards to the discussions. 😃
The text was updated successfully, but these errors were encountered:
If you're deep in the code and involved in every new feature/change about cardano-cli, than this might not be an issue. But, for developers that are not that involved or that are new to cardano, its sometimes a bit of a pain to do a proper interpretation of certain cardano-cli query outputs.
I am not talking about the basic outputs like a utxo query or a stake-address-info query, those json outputs are well documented with there key naming schema alone imo.
When it comes to outputs like governance action queries, than its going to be more difficult. Let me give you an example:
If you are new to such an output you may wonder "whats the
null
entry?" or "whats the empty array" or "whats the number behind the keyHash entries"... etc. Btw, that object with denominator and numerator can also change to just a decimal number, if it has a finite number of decimals 😱 So, two different outputs for the same thing. Its not an issue, if documented!Or for example:
Yes you can read out some basic infos, but there are 3 cascaded arrays. So, which one can actually hold more than one treasury withdrawal request? Can there even be more entries in an array or is it always just one?
As you can see, there are many of those.
This issue is not about changing the output! That is currently out of scope imo, because it would be too many breaking changes for 3rd party tools.
Its ok that the data output looks like it does, saving space and not having key/value pairs on every entry. But it lacks documentation. 😞
So, the intention of this gh issue is to raise awareness to somehow provide better documentation for existing and new developers and users in general.
It would be nice to have such a documentation on a website in a normal text form, or PDF, or similar.
Also it would be nice to have such a documentation like those familiar REST API documentation sites, where you can see all available commands and there outputs (maybe driven by goldentest sources?) via a TRY button or so. Developers are very familiar with such sites and they like them.
The documentation should of course cover every cardano-cli output, not just governance related ones like use in the examples.
Ok, this was just a quick first entry to raise this issue. Looking forwards to the discussions. 😃
The text was updated successfully, but these errors were encountered: