We have a mobile app that accepts input into some fields, formalises them as a JSON document and then sends it to the back-end for processing.
We want to agree on a schema for this document that can be validated and referenced indirectly in both the back-end and the front-end.
One of the motivations is that the input can change depending on the language, so in a different language, although the structure will be the same, the JSON entries will have different values and so we cannot have those hardcoded at either end (but especially at the back-end).
I'm primarily concerned with how such a schema can be represented and how it can be validated at the back-end. Shall I define an interface for it? If so, is there something standardised already that accomplishes this painlessly?
The target back-end language is Python on Django, we're happy to go with any package as long as it does the job.