Skip to content

Commit

Permalink
RequestConfig updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lapaniku committed Sep 19, 2023
1 parent 6956895 commit d771f55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions basemodels/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,15 @@ class RequestConfig(Model):
multiple_choice_min_choices = IntType(default=1)
overlap_threshold = FloatType(required=False)
answer_type = StringType(choices=["int", "float", "str"], default="str")
ignore_case = BooleanType()
max_value = FloatType()
min_value = FloatType()
max_length = IntType()
min_length = IntType()
sig_figs = IntType()
keep_answers_order = BooleanType(default=False)
ignore_case = BooleanType(default=False)



class InternalConfig(Model):
Expand Down
8 changes: 8 additions & 0 deletions basemodels/pydantic/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,15 @@ 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"
ignore_case: Optional[bool]
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

0 comments on commit d771f55

Please sign in to comment.