Closed jaymeklein closed 3 months ago
I've fixed this now, so if you merge from main the changes should be applied. The error was because in the function which turns a dictionary with sub items to a flat dictionary to check each value in turn using regex to see if you have passed it the right values, dictionary items which were lists weren't being handled by the function. Thanks for creating the two issues!
Hey @jacob-macleod, thanks for fixing this issue. I'm glad you managed to solve this, and i hope it was well documented so you don't struggle trying to reproduce it.
When testing the
create_flashcard
endpoint using example data, during thecheck_request_json
function, i got aTypeError: unhashable type: 'list'
:In
re.match(expected_value, request_values[i]):
the values are:expected_value
request_values[i]
Dummy data
The above test results in: