Problematic behavior: When I add a new representation to a Form or a new Lemma to a Lexeme that already has one and I use the same language code then the edit is accepted and the existing representation/Lemma is replaced.
What I do
{F18489759}
What I get after saving
{F18489760}
What I get after reloading the page
{F18489758}
Expected behavior:
GIVEN I am on the Form part of a Lexeme page
AND There as a representation with the language code "de"
WHEN I add an additional representation with the language code "de"
THEN an error is shown saying "It is not possible to enter two representations with the same language code."
GIVEN I am on the Lexeme part of a Lexeme page
AND There as a Lemma with the language code "de"
WHEN I add an additional Lemma with the language code "de"
THEN an error is shown saying "It is not possible to enter two representations with the same language code."
Note: API should deal with possible "incorrect" JSON input in a similar way it handles similar input e.g. when editing item labels, i.e. take the last representation.