You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
I expected the model to be like below when you type something in the field
{
...,
"documents": [
{
"translations": {
"zh-hk": {
"url": "whatever i type here"
}
}
}
]
}
I get this instead
{
...,
documents: [
{
"translations[zh-hk]": {
"url": "whatever i type here"
}
}
]
}
This cause the validation not work and the model object not to what we expect.
Do you see any work around how we can handle unfriendly json keys like zh-hk
The text was updated successfully, but these errors were encountered:
neumerance
changed the title
Model fails when a nested attributes has a key
Model fails when a nested attributes has a key unfriendly string keys
Sep 2, 2020
Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
I have a nested attributes model.
I have the field schema below
I expected the model to be like below when you type something in the field
I get this instead
This cause the validation not work and the model object not to what we expect.
Do you see any work around how we can handle unfriendly json keys like
zh-hk
The text was updated successfully, but these errors were encountered: