Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Key & Value Together #41

Open
kpkamalpundir opened this issue May 8, 2020 · 1 comment
Open

Dynamic Key & Value Together #41

kpkamalpundir opened this issue May 8, 2020 · 1 comment

Comments

@kpkamalpundir
Copy link

Hi,
I am facing the issue if i want key to me dyanmic then in value is not getting evaluated.
For Example:
"occupancy_pricing": {
"{{meals[0].meal[0].id}}": {
"nightly": [
[
{
"type": "sales_tax",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
},
{
"type": "base_rate",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
}
]
]

results in

"occupancy_pricing": {
"AA": {
"nightly": [
[
{
"type": "sales_tax",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
},
{
"type": "base_rate",
"value": "0",
"currency": "{{ meals[0].meal[0].prices[0].price[0].attribute_value.currency}}"
}
]
],

where as with static key it works fine.

@ponsoc
Copy link

ponsoc commented Dec 14, 2021

We face the same issue, any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants