From 12925d49ea81e6a99ef89d533c3e2d0c186d7f29 Mon Sep 17 00:00:00 2001 From: Andrei Lapanik Date: Wed, 20 Sep 2023 11:59:43 +0200 Subject: [PATCH] RequestConfig updates (#99) * RequestConfig updates * Small fix * Extra line removed * Duplicate removed * Bump version * Bump version in Poetry --- basemodels/manifest/manifest.py | 1 + basemodels/pydantic/manifest/manifest.py | 7 +++++++ pyproject.toml | 2 +- setup.py | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/basemodels/manifest/manifest.py b/basemodels/manifest/manifest.py index 9967273..fdd8214 100644 --- a/basemodels/manifest/manifest.py +++ b/basemodels/manifest/manifest.py @@ -115,6 +115,7 @@ class RequestConfig(Model): min_length = IntType() sig_figs = IntType() keep_answers_order = BooleanType(default=False) + ignore_case = BooleanType(default=False) class InternalConfig(Model): diff --git a/basemodels/pydantic/manifest/manifest.py b/basemodels/pydantic/manifest/manifest.py index bfae7c6..e8cb4ae 100644 --- a/basemodels/pydantic/manifest/manifest.py +++ b/basemodels/pydantic/manifest/manifest.py @@ -126,7 +126,14 @@ class RequestConfig(Model): multiple_choice_max_choices: Optional[int] = 1 multiple_choice_min_choices: Optional[int] = 1 overlap_threshold: Optional[float] + answer_type: Optional[str] = "str" + max_value: Optional[float] + min_value: Optional[float] + max_length: Optional[int] + min_length: Optional[int] + sig_figs: Optional[int] keep_answers_order: Optional[bool] + ignore_case: Optional[bool] = False class InternalConfig(Model): diff --git a/pyproject.toml b/pyproject.toml index be663c5..0707744 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "hmt-basemodels" -version = "0.1.31" +version = "0.1.32" description = "" authors = ["Intuition Machines, Inc "] packages = [ diff --git a/setup.py b/setup.py index 7873178..b53cde5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setuptools.setup( name="hmt-basemodels", - version="0.1.31", + version="0.1.32", author="HUMAN Protocol", description="Common data models shared by various components of the Human Protocol stack", url="https://github.com/hCaptcha/hmt-basemodels",