Skip to content

Governance metadata is not validated #906

Open
IntersectMBO/cardano-api
#713
@saratomaz

Description

@saratomaz

Description

There is no metadata validation for the governance metadata. Right now is possible to submit a governance action with wrong metadata/missing required fields and the only time we can see an error is when dbsync try to catch the data.

Steps to Reproduce

e.g.

  1. run cardano-cli conway governance drep metadata-hash --drep-metadata-file drep_metadata.json
    drep_metadata.json -> missing givenName that is marked as Compulsory in cip-0119
  2. No error is returned

Additional Context

CIPs related to governance metadata:
https://github.com/cardano-foundation/CIPs/tree/master/CIP-0100
https://github.com/cardano-foundation/CIPs/tree/master/CIP-0108
https://github.com/cardano-foundation/CIPs/tree/master/CIP-0119

Metadata

Metadata

Assignees

Labels

enhancementFor improvements or extensions to existing functionality.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions