Skip to content

Commit f8dfb4c

Browse files
committed
showParticipantNumber true by default in API.
1 parent 31962da commit f8dfb4c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/assets/api/schemas.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,6 +1452,7 @@
14521452
]
14531453
},
14541454
"showParticipantNumber": {
1455+
"default": true,
14551456
"type": "boolean"
14561457
}
14571458
}

scripts/deliberate_lab/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ class ProfileStageConfig(BaseModel):
391391
descriptions: StageTextConfig
392392
progress: StageProgressConfig
393393
profileType: ProfileType
394-
showParticipantNumber: bool | None = None
394+
showParticipantNumber: bool | None = True
395395

396396

397397
class Strategy(StrEnum):

utils/src/stages/profile_stage.validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const ProfileStageConfigData = Type.Composite(
2323
Type.Literal(ProfileType.ANONYMOUS_ANIMAL),
2424
Type.Literal(ProfileType.ANONYMOUS_PARTICIPANT),
2525
]),
26-
showParticipantNumber: Type.Optional(Type.Boolean()),
26+
showParticipantNumber: Type.Optional(Type.Boolean({default: true})),
2727
},
2828
strict,
2929
),

0 commit comments

Comments
 (0)