balena-io-modules / jellyschema

JellySchema - data validation, UI form generation
Apache License 2.0
4 stars 2 forks source link

Remove support for compound types completely #78

Closed cyplo closed 5 years ago

cyplo commented 5 years ago

It turns out that these are confusing and implementation is error-prone.

Changed the underlying Rust type to not allow a Vec<ObjectType> but just ObjectType and basically relied on the compiler to tell me what to fix.

Checked that the array type cases are unaffected - see tests in tests/data/arrays.

cyplo commented 5 years ago

That's a good point :) I will add it to the cleanup PR later :)