Skip to content

Commit

Permalink
fix: correct validation patt for harness api key
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Apr 8, 2024
1 parent 9fc786a commit 2c13bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdf/core/feature_flag/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HarnessFlagProvider(BaseFlagProvider, extra="allow"):

api_key: str = pydantic.Field(
description="The harness API key. Get it from your user settings.",
pattern=r"^pat\.[a-zA-Z0-9_\-]+$",
pattern=r"^pat\.[a-zA-Z0-9_\-]+\.[a-fA-F0-9]+\.[a-zA-Z0-9_\-]+$",
)
sdk_key: pydantic.UUID4 = pydantic.Field(
description="The harness SDK key. Get it from the environment management page of the FF module.",
Expand Down

0 comments on commit 2c13bf3

Please sign in to comment.