Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemaSpec is undefined for .when() inside ObjectType #73

Open
femi-lynx-fh opened this issue Aug 21, 2023 · 0 comments
Open

schemaSpec is undefined for .when() inside ObjectType #73

femi-lynx-fh opened this issue Aug 21, 2023 · 0 comments

Comments

@femi-lynx-fh
Copy link

femi-lynx-fh commented 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

@femi-lynx-fh femi-lynx-fh changed the title schemaSpec is 'undefined' for when method inside ObjectType schemaSpec is undefined for .when() inside ObjectType Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant