mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
black formation
This commit is contained in:
parent
a1e46dd7bb
commit
af5b759c16
2 changed files with 7 additions and 2 deletions
|
@ -83,7 +83,9 @@ class SelectorValue(BaseValue):
|
||||||
raise ValueError(AnswerError.TOO_MANY_SELECTED.value)
|
raise ValueError(AnswerError.TOO_MANY_SELECTED.value)
|
||||||
|
|
||||||
|
|
||||||
Value = Annotated[Union[SelectorValue, TextValue, ScaleValue], Field(discriminator='question_type')]
|
Value = Annotated[
|
||||||
|
Union[SelectorValue, TextValue, ScaleValue], Field(discriminator="question_type")
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class AnswerData(BaseModel):
|
class AnswerData(BaseModel):
|
||||||
|
|
|
@ -131,7 +131,10 @@ class SelectorQuestion(BaseQuestion):
|
||||||
return v
|
return v
|
||||||
|
|
||||||
|
|
||||||
Question = Annotated[Union[SelectorQuestion, TextQuestion, ScaleQuestion], Field(discriminator='question_type')]
|
Question = Annotated[
|
||||||
|
Union[SelectorQuestion, TextQuestion, ScaleQuestion],
|
||||||
|
Field(discriminator="question_type"),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class Page(BaseModel):
|
class Page(BaseModel):
|
||||||
|
|
Loading…
Reference in a new issue