Open femi-lynx-fh opened 1 year ago
2.1.3
If using the "when" method within an ObjectType, the schemaSpec variable that is passed to the method is undefined.
schemaSpec that is passed to the when method should be populated with the schema of the model.
Working example without ObjectType: https://stackblitz.com/edit/typescript-jkedsj?file=index.ts Bug example: https://stackblitz.com/edit/typescript-yv9jop?file=index.ts
What version of schema-typed are you using?
2.1.3
Describe the Bug
If using the "when" method within an ObjectType, the schemaSpec variable that is passed to the method is undefined.
Expected Behavior
schemaSpec that is passed to the when method should be populated with the schema of the model.
To Reproduce
Working example without ObjectType: https://stackblitz.com/edit/typescript-jkedsj?file=index.ts Bug example: https://stackblitz.com/edit/typescript-yv9jop?file=index.ts