Skip to content

Commit 9d5c9e0

Browse files
committed
Add version
1 parent 55559d5 commit 9d5c9e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/DataBlobs/entities/BlobEntry.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ StructUtils.@kwarg struct Blobentry
3939
size::Int64 = -1 & (json=(lower = string, lift = x->parse(Int64, x)))
4040
""" Additional information that can help a different user of the Blob. """
4141
description::String = ""
42-
""" MIME description describing the format of binary data in the `Blob`, e.g. 'image/png' or 'application/json; _type=CameraModel'. """
42+
""" MIME description describing the format of binary data in the `Blob`, e.g. 'image/png' or 'application/json'. """
4343
mimetype::String = "application/octet-stream" #FIXME ::MIME = MIME("application/octet-stream")
4444
""" Storage for a couple of bytes directly in the graph. Use with caution and keep it small and simple."""
4545
metadata::JSONText = JSONText("")
4646
""" When the Blob itself was first created. Serialized as an ISO 8601 string."""
4747
timestamp::ZonedDateTime = now(localzone())
4848
""" Type version of this Blobentry."""
49-
version::VersionNumber = _getDFGVersion()
49+
version::VersionNumber = version(Blobentry)
5050
end
51+
version(::Type{Blobentry}) = v"0.1.0"
52+
version(node) = node.version
5153

5254
function Blobentry(label::Symbol, blobstore = :default; kwargs...)
5355
return Blobentry(; label, blobstore, kwargs...)

0 commit comments

Comments
 (0)