Azure / Azure/oav

Unexpected error when resolving object parameter

Open
#977 0 comments 0 reactions 1 assignee Claimed by @scbedd View on GitHub
Dominant language
TypeScript
Stars
104
Forks
62
Avg merge
2d 12h
Merged PRs (30d)
5

Description

[This PR](https://github.com/Azure/azure-rest-api-specs-pr/pull/11802/files) 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.