Skip to content
Advertisement

Joi Nested schema

I am trying to create nested schema in joi and it is throwing error

[Error: Object schema cannot be a joi schema]

JavaScript

How should i define nested schema in joi?

Advertisement

Answer

You could use object.keys API

JavaScript
Advertisement