oav icon indicating copy to clipboard operation
oav copied to clipboard

Unexpected error when resolving object parameter

Open scbedd opened this issue 1 year ago • 0 comments

This PR is facing ModelValidation errors. One failure code in two methods:

As far as I can tell for both cases, the examples actually implement this properly. This tells me it's an oav failure.

  • INVALID_TYPE -> Expected type object but found array
    • We are improperly retrieving metadata, causing us to throw when we shouldn't.
  • INVALID_TYPE -> Expected type object but found type string
    • Indicates that we aren't mapping the target schema property. However, all of the examples failing this check, we have added the type property to the originating schema, and we are providing a full object within the examples. There is a lookup failing for some reason.

In both cases, it is to do with the fact that we are not property mapping the schema type.

scbedd avatar May 22 '23 22:05 scbedd