Skip to content

Commit

Permalink
🎨 add sorting to set, so that the order of these state enum values do…
Browse files Browse the repository at this point in the history
… not vary every time spec is regenerated

Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Apr 17, 2024
1 parent adeb319 commit 3c074b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aries_cloudagent/protocols/connections/v1_0/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class ConnectionsListQueryStringSchema(OpenAPISchema):
state = fields.Str(
required=False,
validate=validate.OneOf(
{label for state in ConnRecord.State for label in state.value}
sorted({label for state in ConnRecord.State for label in state.value})
),
metadata={"description": "Connection state"},
)
Expand Down

0 comments on commit 3c074b9

Please sign in to comment.