You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
femi-lynx-fh
changed the title
schemaSpec is 'undefined' for when method inside ObjectType
schemaSpec is undefined for .when() inside ObjectType
Aug 21, 2023
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
The text was updated successfully, but these errors were encountered: