You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description=f"The type of entity this response describes. Must always be set to '{RESULT_ENTITY_TYPE}'",
41
+
)
39
42
schema_: str=Field(
40
43
default="ga4gh-beacon-variant-v2.0.0",
41
44
# Alias is required because 'schema' is reserved by Pydantic's BaseModel class,
@@ -67,14 +70,21 @@ class Meta(BaseModel):
67
70
classResponseSummary(BaseModel):
68
71
"""A high-level summary of the results provided in the parent `VlmResponse"""
69
72
70
-
exists: bool
71
-
total: int
73
+
exists: bool=Field(
74
+
..., description="Indicates whether the response contains any results."
75
+
)
76
+
numTotalResults: int=Field(
77
+
..., description="The total number of results found for the given query"
78
+
)
72
79
73
80
74
81
classResultSet(BaseModel):
75
82
"""A set of cohort allele frequency results. The zygosity of the ResultSet is identified in the `id` field"""
76
83
77
-
exists: bool
84
+
exists: Literal[True] =Field(
85
+
default=True,
86
+
description="Indicates whether this ResultSet exists. This must always be `True`, even if `resultsCount` = `0`",
87
+
)
78
88
id: str=Field(
79
89
...,
80
90
description="id should be constructed of the `HandoverType.id` + the ResultSet's zygosity. See `validate_resultset_ids` validator in `VlmResponse` class.",
@@ -89,13 +99,18 @@ class ResultSet(BaseModel):
89
99
resultsCount: int=Field(
90
100
..., description="A count for the zygosity indicated by the ResultSet's `id`"
91
101
)
92
-
setType: str=RESULT_ENTITY_TYPE
102
+
setType: str=Field(
103
+
default=RESULT_ENTITY_TYPE,
104
+
description=f"The type of entity relevant to these results. Must always be set to '{RESULT_ENTITY_TYPE}'",
105
+
)
93
106
94
107
95
108
classResponseField(BaseModel):
96
109
"""A list of ResultSets"""
97
110
98
-
resultSets: list[ResultSet]
111
+
resultSets: list[ResultSet] =Field(
112
+
..., description="A list of ResultSets for the given query."
0 commit comments