Ashe-Oro-Accelerator / hedera-nft-utilities

Hedera NFT Utilities SDK for JavaScript
Apache License 2.0
0 stars 1 forks source link

[SDK] Hip412Validator format field fix #51

Closed michalrozekariane closed 5 months ago

michalrozekariane commented 5 months ago

There's an issue in our Hip412Validator class related to how certain validation methods incorrectly handle the format field. These methods were using the wrong schema, leading to validation errors in our SDK. Specifically, the presence of the format field was mistakenly identified as unnecessary, resulting in "redundant keys detected: format" errors.

This misunderstanding contradicts the specifications laid out in the Hedera documentation, which states:

creator, creator DID, format, attributes, files, properties and localization are optional and do not need to be included in the metadata.

Expected Outcome: