Skip to content

Validate metadata input against schema  #73

@psiemens

Description

@psiemens

Freshmint should return helpful errors to the user when they pass metadata values that do not match the defined schema, specifically:

  • A metadata object that is missing one or more fields
  • A metadata object that includes values that do not match the specified field types (e.g. passing a non-integer value for Int)

Right now, incorrect metadata usually causes errors like this when forming the FCL transaction:

Type Error: Expected String for type String

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions