-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gov.tools generated JSON - metadata errors #2082
Comments
CC @spannercode |
Since the language support is not yet there on GovTool, we can default to English for now. {
"@context": {
"@language": "en",
"CIP100": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#",
"CIP119": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0119/README.md#",
...
}
...
} |
Regarding the first issue, CIP-100 states that |
Regarding the second issue, CIP-119 defines additional types for reference: |
And about the issue with drep name not being shown in Adastat, if I understand correctly they use data from dbSync, which will not include any metadata if it's not validated correctly. So the above mentioned issues are the reason why it's not showing. |
This issue is connected to #1856 |
@spannercode wisely suggested to add the That however, still doesn't fix errors for already created DReps. And since on GovTool their metadata will be displayed correctly, those users might not be aware of the problems on other tooling. So maybe we should also display some kind of a prompt instructing the user to regenerate the jsonld file through editing the DRep? cc @m-i-k-e |
It seems to me that this is a terminology issue with the CIP. 'Should' can also mean 'must'. That's how it's been interpreted. I think we 'should' add the language property, but also that adastat should allow for registrations that don't have it, and assume they're English. I'm not a fan of asking people to re-register at this point. Do we know how many DReps are affected? |
I just wanted to point out this is not AdaStat warning, but DB-Sync one. I.e. all the tools (explorers and other) that use DB-Sync are affected by the issue |
I have found two metadata errors when registering as a DRep through gov.tools. The errors are shown when checking your DRep profile on Adastat.net Cardano Explorer.
I have reached to them via intersect working group DReps and they confirmed that the issue is not on their side; at least the first one (screenshot below):
ISSUE 1
Metadata error shown in adastat:
Error Offchain Voting Anchor: JSON decode error from when fetching metadata from Just https://raw.githubusercontent.com/kostaspanagias/drep/refs/heads/main/Kostas%20Panagias.jsonld resulted in : "Error in $['@context']: key \"@language\" not found,
Feedback I found about the error:
According to CIP-0100 the @language property should be included under the @context. However, the automatically generated JSON from gov.tools does not include this property (tested twice).
CIP-0100
Link: https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md
Image:
gov.tools output:
Link (my DRep json): https://raw.githubusercontent.com/kostaspanagias/drep/refs/heads/main/Kostas%20Panagias.jsonld
Image:
ISSUE 2
Metadata Error Shown in adastat:
CIP-100:Error in $.body.references[0]: reference type should be one of [\"Other\",\"GovernanceMetadata\"] but it's Link
Feedback I found about the error:
I couldn't actually map the error shown in my JSON files. Unfortunately, I don't have any further feedback on this one.
The text was updated successfully, but these errors were encountered: