Describe the bug
Array of custom objects or simple types(string,number etc) throws type error after update to 1.3.2 from 0.32.11
Type 'ObjectSchema<{ items1: any; }, AnyObject, { items1: any; }, "">' is not assignable to type 'ObjectSchema<test1, AnyObject, any, "">'. The types of 'default(...).__outputType' are incompatible between these types. Property 'items1' is missing in type '{ [x: string]: any; }' but required in type '{ items1: string[]; }'.ts(2322)
Expected behavior
Its expected to work like before, there is no mentions of breaking changes in the changelog or anything. I guess I'll have to postpone the update for now.
Platform (please complete the following information):
the error is accurate and correct. You are saying that items1 is required in your interface, but the schema default for fields is that they are optional.
Describe the bug Array of custom objects or simple types(string,number etc) throws type error after update to 1.3.2 from 0.32.11
Type 'ObjectSchema<{ items1: any; }, AnyObject, { items1: any; }, "">' is not assignable to type 'ObjectSchema<test1, AnyObject, any, "">'. The types of 'default(...).__outputType' are incompatible between these types. Property 'items1' is missing in type '{ [x: string]: any; }' but required in type '{ items1: string[]; }'.ts(2322)
To Reproduce
Expected behavior Its expected to work like before, there is no mentions of breaking changes in the changelog or anything. I guess I'll have to postpone the update for now.
Platform (please complete the following information):