How to validate state_name and city_name in store (sucursal) creation #390
Unanswered
harrisonford
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm automatizing for my users the e2e of store and pos creation. But state_name and city_name need some sort validation otherwise we get a wrong city or state name error, example:
"Región de Valparaíso" -> invalid
"Valparaíso" -> valid
"Región Metropolitana" -> invalid
"Metropolitana (RM)" -> valid
"Las condes" -> invalid
"Las Condes" -> valid
I need to find the exact validation you use, because I won't find them all through trial and error in tests for all Chile, thus I can't get this into production.
Searching the SDK there's no info on the public face of the repo nor documentation on how these values must be extracted/sanitized/validated/etc. It would help me if you told me the repo where you get the chilean localities or anything.
Beta Was this translation helpful? Give feedback.
All reactions