metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`animation_url` field discrepancy with docs and `JsonMetadata` type

nicholas-ewasiuk opened this issue · comments

commented

Token Metadata standard documentation https://docs.metaplex.com/programs/token-metadata/token-standard shows an animation_url field. The JsonMetadata type is missing the animation_url field. https://github.com/metaplex-foundation/js/blob/main/packages/js/src/plugins/nftModule/models/JsonMetadata.ts

Which is the correct info? Should the animation_url be included in that JsonMetadata type?

Hi there, animation_url is a valid optional attribute of the JSON metadata. It is just missing from the JsonMetadata type.

commented

Okay, thanks for the response Loris. Can I submit a PR to add it to the JsonMetadata type?

Yes, that would be helpful thank you!

Fixed by #502