Bad message when actual result is an object but an array was expected
Closed this issue ยท 1 comments
tamj0rd2 commented
Summary
What are you trying to do?
I have a configuration set up where I'm expecting the property criteria
to be an object. The response that I get back from the real API is actually an array of objects
Example schema:
export type MyType = {
criteria: {
hello: string
}
}
Example API response:
{
"criteria": [{ "hello": "world" }]
}
What do you expect to happen?
I expect a message like: <root>.criteria should be array but got object
What's actually happening?
The message: <root>.criteria should be object but got object
tamj0rd2 commented
๐ This issue has been resolved in version 0.11.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐