A broken schema on the backend server expects get_movement() to return none if there is no movement with a given name. The problem is that get_movement throws an error instead. There are two parts to this issue:
Firstly, make get_movement() only take the id of the movement and make sure it throws an exception if it doesn't exist.
Secondly, create a new function, movement_name_exists(), which can be used in the schema to check if a name is available.
A broken schema on the backend server expects
get_movement()
to return none if there is no movement with a given name. The problem is that get_movement throws an error instead. There are two parts to this issue: Firstly, makeget_movement()
only take the id of the movement and make sure it throws an exception if it doesn't exist. Secondly, create a new function,movement_name_exists()
, which can be used in the schema to check if a name is available.