🐛 fix(flow.py): change flow field type from str to Dict to allow for JSON data

✨ feat(flow.py): add validator to ensure flow field is a valid JSON object with required fields
The flow field in the FlowBase model has been changed from a string to a dictionary to allow for JSON data. A validator has been added to ensure that the flow field is a valid JSON object with the required fields. The tests have been updated to reflect these changes.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-05 13:40:14 -03:00
commit ec585b8acc
3 changed files with 126 additions and 38 deletions

View file

@ -108,6 +108,5 @@ def client_fixture(session: Session): #
app.dependency_overrides[get_session] = get_session_override #
client = TestClient(app) #
yield client #
yield TestClient(app)
app.dependency_overrides.clear() #