enhancement: SanityFile
sven5 opened this issue · comments
Hi,
it seems that the file asset type is currently missing.
(https://www.sanity.io/docs/file-type)
the Json representation would be like the following:
"file1": {
"_type": "file",
"asset": {
"_ref": "file-05baff86caee1cda017d525ace439158effbecf2-pdf",
"_type": "reference"
}
},
Solution is simple:
public class SanityFile : SanityObject
{
public SanityFile() : base()
{
SanityType = "file";
}
public SanityReference<SanityFileAsset> Asset { get; set; }
}
Thanks for your suggestions @sven5!
@rvanoord Could you please release a new nuget package? Thanks!