generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 455
Closed
Labels
feature_flagsFeature Flags utilityFeature Flags utility
Description
Expected Behaviour
Enum should be serilizeable to dict like it was.
Now it is a breaking change
Current Behaviour
Enum breaks when sent not as a value
Code snippet
HOUR_MIN_SEPARATOR = ":"
class RuleAction(Enum): # This should be "class RuleAction(str, Enum):"
EQUALS = "EQUALS"
NOT_EQUALS = "NOT_EQUALS"
KEY_GREATER_THAN_VALUE = "KEY_GREATER_THAN_VALUE"Possible Solution
class RuleAction(str, Enum):
EQUALS = "EQUALS"
NOT_EQUALS = "NOT_EQUALS"
KEY_GREATER_THAN_VALUE = "KEY_GREATER_THAN_VALUE"
Steps to Reproduce
N/A
AWS Lambda Powertools for Python version
latest
AWS Lambda function runtime
3.6
Packaging format used
Lambda Layers
Debugging logs
No response
Metadata
Metadata
Assignees
Labels
feature_flagsFeature Flags utilityFeature Flags utility