v0.5.0
Pre-release
Pre-release
-
Forbid circular references with fixed lists
The following schema is now correctly rejected:
struct Person { bestFriends: [2]Person }
-
Allow enum type and aliased types for map key type
The following schema is now valid:
enum Gender { FLUID MALE FEMALE } type GenderNames map[Gender] string
-
Allow unsorted tags for unions and enums
The following schemas was previously rejected because of unsorted tags.
enum Gender { FLUID = 1 MALE = 0 ^ error was reported here FEMALE = 2 }
type UnsignedInt (u8 = 1 | u16 = 0 | u32 = 2 | u64 = 3) ^ error was reported here
These schemas are now allowed.
They are still rejected in pedantic mode (option --pedantic)