Skip to content

Commit

Permalink
FIX: Set file.checksum_md5 non optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tnatt committed Oct 9, 2024
1 parent 96d57e4 commit f843619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions schema/definitions/0.8.0/schema/fmu_results.json
Original file line number Diff line number Diff line change
Expand Up @@ -2859,18 +2859,11 @@
"title": "Absolute Path Symlink"
},
"checksum_md5": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"examples": [
"kjhsdfvsdlfk23knerknvk23"
],
"title": "Checksum Md5"
"title": "Checksum Md5",
"type": "string"
},
"relative_path": {
"examples": [
Expand Down
2 changes: 1 addition & 1 deletion src/fmu/dataio/_model/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class File(BaseModel):
)
"""The path of a file relative to the case root."""

checksum_md5: Optional[str] = Field(examples=["kjhsdfvsdlfk23knerknvk23"])
checksum_md5: str = Field(examples=["kjhsdfvsdlfk23knerknvk23"])
"""A valid MD5 checksum of the file."""

size_bytes: Optional[int] = Field(default=None)
Expand Down

0 comments on commit f843619

Please sign in to comment.