Unable to add error_map coordinate for properties of nested objects #151
-
I have a simple object with a basic property, the schema looks like this:
I am able to add an error message to 'test' using: but when trying to set an error on the nested property, nothing shows. I am doing it like this: Another question, does the coordinate system handle keys with spaces inside of them? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So the valid coordinate would be We've got a
Yes. |
Beta Was this translation helpful? Give feedback.
'test-testProp'
is not a valid coordinate. We don't use hyphens (-
) to join nested coordinates. Instead, we use the section sign (§
). This is due to #69.So the valid coordinate would be
'test§testProp'
.We've got a
join_coords
utility function to chain the coordinates. You should use that and it will take care of using the appropriate symbol to use for joining.Yes.