Skip to content

Commit

Permalink
RequestConfig updates (#99)
Browse files Browse the repository at this point in the history
* RequestConfig updates

* Small fix

* Extra line removed

* Duplicate removed

* Bump version

* Bump version in Poetry
  • Loading branch information
lapaniku committed Sep 20, 2023
1 parent 6956895 commit 12925d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions basemodels/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
7 changes: 7 additions & 0 deletions basemodels/pydantic/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hmt-basemodels"
version = "0.1.31"
version = "0.1.32"
description = ""
authors = ["Intuition Machines, Inc <support@hcaptcha.com>"]
packages = [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 12925d4

Please sign in to comment.