From b5388d360c956f69e4b49923acdb6ebc9c772716 Mon Sep 17 00:00:00 2001 From: bmc-msft <41130664+bmc-msft@users.noreply.github.com> Date: Fri, 25 Jun 2021 14:04:25 -0400 Subject: [PATCH] add min_length specifications to Github Issue Template configs (#1019) --- src/pytypes/onefuzztypes/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pytypes/onefuzztypes/models.py b/src/pytypes/onefuzztypes/models.py index ecd9a718bd..663fcc988a 100644 --- a/src/pytypes/onefuzztypes/models.py +++ b/src/pytypes/onefuzztypes/models.py @@ -493,15 +493,15 @@ class GithubIssueSearch(BaseModel): class GithubAuth(BaseModel): - user: str - personal_access_token: str + user: str = Field(min_length=1) + personal_access_token: str = Field(min_length=1) class GithubIssueTemplate(BaseModel): auth: SecretData[GithubAuth] - organization: str - repository: str - title: str + organization: str = Field(min_length=1) + repository: str = Field(min_length=1) + title: str = Field(min_length=1) body: str unique_search: GithubIssueSearch assignees: List[str]