fairDataSociety / beeson

blockchain-verifiable, extensible encapsulation for schema-based object notation in Swarm
5 stars 3 forks source link

Support not defined length arrays #9

Open nugaon opened 2 years ago

nugaon commented 2 years ago

In the next 0.1.1 BeeSon serialization version, there should be a container type that can define the structure of all its elements without limiting how many elements can be presented.

In the 0.1.0 version all array elements have to be listed in the TypeSpecification of an array one-by-one, which sets at least a maximum limit how many elements the array can have (in case of non-nullable array, the element number is always a fix number).

it gives more freedom for the data implementation of one BeeSon schema at arrays which's elements are only in one type (e.g. number[]).