Skip to content

Commit

Permalink
Stream property for UI.MediaResourceType and UI.ImageType (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl authored Sep 28, 2023
1 parent a24d4e1 commit ae0f216
Show file tree
Hide file tree
Showing 3 changed files with 492 additions and 449 deletions.
20 changes: 19 additions & 1 deletion vocabularies/UI.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,24 @@
"$Type": "UI.MediaResourceType",
"$AppliesTo": ["EntityType"],
"@UI.ThingPerspective": true,
"@Core.Description": "Properties that describe a media resource"
"@Core.Description": "Properties that describe a media resource",
"@Core.LongDescription": "Either `Url` or `Stream` MUST be present, and never both."
},
"MediaResourceType": {
"$Kind": "ComplexType",
"Url": {
"$Nullable": true,
"@Core.Description": "URL of media resource",
"@Core.IsURL": true,
"@Validation.ApplicableTerms": ["HTML5.LinkTarget"]
},
"Stream": {
"$Type": "Edm.Stream",
"$Nullable": true,
"@Common.Experimental": true,
"@Core.Description": "Stream of media resource",
"@Validation.ApplicableTerms": ["HTML5.LinkTarget"]
},
"ContentType": {
"$Nullable": true,
"@Core.Description": "Content type, such as application/pdf, video/x-flv, image/jpeg",
Expand All @@ -253,7 +262,16 @@
},
"ImageType": {
"$Kind": "ComplexType",
"@Core.Description": "Properties that describe an image",
"@Core.LongDescription": "Either `Url` or `Stream` MUST be present, and never both.",
"Url": { "@Core.Description": "URL of image", "@Core.IsURL": true },
"Stream": {
"$Type": "Edm.Stream",
"$Nullable": true,
"@Common.Experimental": true,
"@Core.Description": "Stream of image",
"@Validation.ApplicableTerms": ["HTML5.LinkTarget"]
},
"Width": { "$Nullable": true, "@Core.Description": "Width of image" },
"Height": { "$Nullable": true, "@Core.Description": "Height of image" }
},
Expand Down
Loading

0 comments on commit ae0f216

Please sign in to comment.