We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c101f0 commit 55aa73aCopy full SHA for 55aa73a
fastapi_jsonapi/atomic/prepared_atomic_operation.py
@@ -38,6 +38,10 @@ def prepare(
38
) -> "OperationBase":
39
view_cls: Type[ViewBase] = jsonapi.detail_view_resource
40
41
+ if hasattr(action, "value"):
42
+ # convert to str if enum
43
+ action = action.value
44
+
45
if action == AtomicOperationAction.add:
46
operation_cls = OperationAdd
47
view_cls = jsonapi.list_view_resource
0 commit comments