I have a project using micro services, front end communicate with back end with multiple Rest API calls.
Both side (Front or Back) have validation. Is there a good way to sync back end and front end validation together.
For example, if there's way to create an validation file (JSON Yaml etc.), which front end and back end could read and understand it perfectly. Only managing validation file, then I can control validation on both end. Instead, to change validation, I need notify both front and back end, it is not efficient.
Please leave your notes if any thoughts across you.