The new Search API (Athos) returns variant data in a different format than expected in the Snap API. This needs to be normalized to line up with expected mappings in Snap. This will require that variants typing is added to the Snap Search API response (separate task).
Response from Search API:
variants: {
data: [
{
core: {...},
"options": {
"optionName": {
"value": "optionValue"
}
}
}
]
}
Snap API:
variants: {
data: [
{
"mappings": {
"core": { ... }
},
"attributes": { ... },
"options": {
"optionName": {
"value": "optionValue"
}
}
},
],
"preferences": {
"preferenceName": ["preference1", "preference2"]
}
}