-
Notifications
You must be signed in to change notification settings - Fork 37
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
Swagger failed to load after using joi lazy(fn) #36
Comments
Specifically the schema in question looks like this: const Person = Joi.object({
firstName: Joi.string().required(),
lastName: Joi.string().required(),
children: Joi.array().items(Joi.lazy(() => Person).description('Person schema'))
}); The relevant part of the stack trace is this:
ArangoDB is using joi 9.2.0 with version 2.3.0 of this library (but AFAICT 3.x also doesn't support |
Yeah all but certain lazy was not a thing when we wrote the initial version. I will take a look but this is an area where we could honestly use some help. |
Hi, any news on this issue ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using JOI validation with lazy(fn) to check recursive validation. In this case swagger failed to load routes even all routes are working. Below are all the generated logs.
i already had opened this issue on github ArangoDB issues
arangodb/arangodb#6132
The text was updated successfully, but these errors were encountered: