Concordium / concordium-contracts-common

Common functionality used by smart contracts and the host environment on the Concordium blockchain.
Mozilla Public License 2.0
10 stars 10 forks source link

Implement Display Trait for SchemaType #97

Closed DOBEN closed 1 year ago

DOBEN commented 1 year ago

Purpose

addresses #96

Changes

Add Display trait for the Schema Type to display a template for the JSON to be used with the schema

limemloh commented 1 year ago

Sorry for being pedantic, but this is not displaying the Schema in a human readable format, this is displaying a template for the JSON to use with the schema. If this is not the goal, then we need to encode all the information of the schema in the JSON.