Skip to content

Commit

Permalink
Configure Pydantic model to use enum values when performing a dump.
Browse files Browse the repository at this point in the history
  • Loading branch information
brysontyrrell committed Jul 24, 2024
1 parent a8addb6 commit e037317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jamf_pro_sdk/models/classic/criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ClassicCriterionSearchType(str, Enum):
class ClassicCriterion(BaseModel):
"""Classic API criterion. Used by Smart Groups and Advanced Searches."""

model_config = ConfigDict(extra="allow")
model_config = ConfigDict(extra="allow", use_enum_values=True)

name: str
priority: int
Expand Down

0 comments on commit e037317

Please sign in to comment.