@@ -183,8 +183,8 @@ class UpdateUploadBoxRequest(BaseModel):
183183class GrantAccessRequest (BaseModel ):
184184 """Request model for granting upload access to a user."""
185185
186- valid_from : UTCDatetime = Field (default = ..., description = "Start date of validity" )
187- valid_until : UTCDatetime = Field (default = ..., description = "End date of validity" )
186+ valid_from : UTCDatetime = Field (..., description = "Start date of validity" )
187+ valid_until : UTCDatetime = Field (..., description = "End date of validity" )
188188 user_id : UUID4 = Field (..., description = "ID of the user to grant access to" )
189189 iva_id : UUID4 = Field (..., description = "ID of the IVA verification" )
190190 box_id : UUID4 = Field (..., description = "ID of the upload box" )
@@ -203,7 +203,7 @@ class UploadGrant(BaseModel):
203203 """An upload access grant."""
204204
205205 id : UUID4 = Field (..., description = "Internal grant ID (same as claim ID)" )
206- user_id : UUID4 = Field (default = ..., description = "Internal user ID" )
206+ user_id : UUID4 = Field (..., description = "Internal user ID" )
207207 iva_id : UUID4 | None = Field (
208208 default = None , description = "ID of an IVA associated with this grant"
209209 )
@@ -213,10 +213,10 @@ class UploadGrant(BaseModel):
213213 created : UTCDatetime = Field (
214214 default = ..., description = "Date of creation of this grant"
215215 )
216- valid_from : UTCDatetime = Field (default = ..., description = "Start date of validity" )
217- valid_until : UTCDatetime = Field (default = ..., description = "End date of validity" )
216+ valid_from : UTCDatetime = Field (..., description = "Start date of validity" )
217+ valid_until : UTCDatetime = Field (..., description = "End date of validity" )
218218
219- user_name : str = Field (default = ..., description = "Full name of the user" )
219+ user_name : str = Field (..., description = "Full name of the user" )
220220 user_email : EmailStr = Field (
221221 default = ...,
222222 description = "The email address of the user" ,
0 commit comments