koinos / koinos-types

The Rosetta Stone of the Koinos ecosystem. Allows for the interpretation of Koinos data structures in a multitude of languages. Useful in the development of microservices, clients, and smart contracts.
MIT License
12 stars 3 forks source link

Empty cases #23

Closed theoreticalbts closed 4 years ago

theoreticalbts commented 4 years ago

When converting to JSON, empty things should be treated as follows:

   //
   // Empty vector<T>        should be []
   // Empty set<T>           should be []
   // Empty array< T, N >    should be []
   // Empty optional         should be null
   // Empty multihash_vector should be []
   // Empty struct           should be {}
   //
sgerbino commented 4 years ago

Resolved by #24.