Most Yup examples use the shape method, but I find the documentation a little hard to understand why this is the case, and exactly what the method does.
Can someone please explain the difference between a schema defined with Yup.object({...})
and Yup.object().shape({...})
?