@@ -18,13 +18,25 @@ StructUtils.@kwarg struct Blobentry
1818 """ Machine friendly and unique within a `Blobstore` identifier of the 'Blob'."""
1919 blobid:: UUID = uuid4 () # was blobId
2020 """ (Optional) crc32c hash value to ensure data consistency which must correspond to the stored hash upon retrieval."""
21- crchash:: Union{UInt32,Nothing} = nothing & (json= (lower= h-> isnothing (h) ? nothing : string (h, base= 16 ), lift= s-> isnothing (s) ? nothing : parse (UInt32, s; base= 16 )))
21+ crchash:: Union{UInt32, Nothing} =
22+ nothing & (
23+ json= (
24+ lower = h-> isnothing (h) ? nothing : string (h, base = 16 ),
25+ lift = s-> isnothing (s) ? nothing : parse (UInt32, s; base = 16 ),
26+ )
27+ )
2228 """ (Optional) sha256 hash value to ensure data consistency which must correspond to the stored hash upon retrieval."""
23- shahash:: Union{Vector{UInt8}, Nothing} = nothing & (json= (lower= h-> isnothing (h) ? nothing : bytes2hex (h), lift= s-> isnothing (s) ? nothing : hex2bytes (s)))
29+ shahash:: Union{Vector{UInt8}, Nothing} =
30+ nothing & (
31+ json= (
32+ lower = h-> isnothing (h) ? nothing : bytes2hex (h),
33+ lift = s-> isnothing (s) ? nothing : hex2bytes (s),
34+ )
35+ )
2436 """ Source system or application where the blob was created (e.g., webapp, sdk, robot)"""
2537 origin:: String = " "
2638 """ Number of bytes in blob serialized as a string"""
27- size:: Int64 = - 1 & (json= (lower= string, lift= x-> parse (Int64, x)))
39+ size:: Int64 = - 1 & (json= (lower = string, lift = x-> parse (Int64, x)))
2840 """ Additional information that can help a different user of the Blob. """
2941 description:: String = " "
3042 """ MIME description describing the format of binary data in the `Blob`, e.g. 'image/png' or 'application/json; _type=CameraModel'. """
@@ -107,4 +119,4 @@ function Base.setproperty!(x::Blobentry, f::Symbol, val)
107119 else
108120 setfield! (x, f, val)
109121 end
110- end
122+ end
0 commit comments