-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Description
Summary
When a nested entry inside a response contained multiple possible types, we were only ever returning the first one. For example:
{
"fields" => [
{
"id" => "country_code",
"options" => [
{
"id" => "us",
"label" => "United States"
},
{
"id" => "ca",
"label" => "Canada"
}
]
},
{
"id" => "region_id",
"options" => [
{
"id" => 1,
"label" => "New York"
},
{
"id" => 2,
"label" => "California"
}
]
}
]
}For this, the id in options was being marked as type: string, when it should have been oneOf: string | number
I have already raised a PR to fix this
Metadata
Metadata
Assignees
Labels
No labels